+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Request: Save script text to file from command line

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Request: Save script text to file from command line

    It would really be nice if it was possible to save the script file as a text file (just as the menu item "File - Save Script Text to file...") from the command line. It could the be used for a custom compare script for TortoiseSVN so you can have a look at what changed in the script over time.

    It is possible to have TortoiseSVN call a special scrip for specific fileextentions. So I was thinking of making a custom script that would extract a text only version of the current script file for a particular revision and have that compared with another. That would also be usefull with beyond compare or the combination of these. But there does not seems to be a option for that in the Command Line Options list in the help file. Are there a hidden funktion that could be used here? Or could I/we have a standalone application that could extract the text version?

  2. #2

    Default Re: Request: Save script text to file from command line

    Anyone from Lindersoft who has a view on this one?

  3. #3
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Request: Save script text to file from command line

    Allan,

    We'll add a new command line switch to handle this scanario. It will be available in the next maintenance build.

    Friedrich

  4. #4

    Default Re: Request: Save script text to file from command line

    Excellent!

  5. #5

    Default Re: Request: Save script text to file from command line

    Hi Friedrich

    I've just checked build 10.0.5204 and the help file does not include this switch. Did it not get into the help file, or has it not made it to the build?

  6. #6
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Request: Save script text to file from command line

    Hi Allan,

    Unfortunately, it did not work as expected and we had to disable the new switch one day before the release. But it's fixed now and will definitely be available in the upcoming new build.

    Sorry for the delay

    Friedrich

  7. #7

    Default Re: Request: Save script text to file from command line

    Hi Friederich.

    Just upgraded to the latest build today but I don't see the fix. Can you help me show how to do this?

    Allan

  8. #8
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Request: Save script text to file from command line

    Hi Allan,

    The command line option is:

    SB10.EXE /SAT "C:\Development\Sample.sbp"

    where:

    SB10.EXE is the path to the SetupBuilder 10 executable

    /SAT is the "save as text" switch

    "C:\Development\Sample.sbp" is the path to the project file you want to save as ASCII text.

    The command line supports a /F filename switch to set the text file name.

    For example: SB10.EXE /SAT "C:\Development\Sample.sbp" /F "C:\MyTxt\test.txt"

    If you do not set the /F argument then it will save Sample.sbp as Sample.txt.

    For example: SB10.EXE /SAT "C:\Development\Sample.sbp" will be saved as "C:\Development\Sample.txt"

    The only <g> problem is that this switch is not officially available in #5368. Am I allowed to send you a new SB10.EXE (build #5369) which is exactly the same as #5368 but supports the new switch?

    Friedrich

  9. #9

    Default Re: Request: Save script text to file from command line

    Awesome! And YES that would be great
    Allan

  10. #10
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Request: Save script text to file from command line

    Hi Allan,

    New SB10.EXE with /SAT switch support sent. Does this work for you?

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •