View Full Version : Request: Save script text to file from command line
Allan Greis Eriksen
08-10-2015, 04:49 AM
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?
Allan Greis Eriksen
04-14-2016, 07:42 AM
Anyone from Lindersoft who has a view on this one?
linder
04-15-2016, 04:29 AM
Allan,
We'll add a new command line switch to handle this scanario. It will be available in the next maintenance build.
Friedrich
Allan Greis Eriksen
04-15-2016, 05:49 AM
Excellent! :)
Allan Greis Eriksen
08-17-2016, 03:21 AM
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?
linder
08-20-2016, 11:05 AM
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
Allan Greis Eriksen
12-20-2016, 04:27 AM
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
linder
12-20-2016, 07:43 AM
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
Allan Greis Eriksen
12-21-2016, 02:09 AM
Awesome! And YES that would be great :)
Allan
linder
12-21-2016, 06:35 AM
Hi Allan,
New SB10.EXE with /SAT switch support sent. Does this work for you?
Friedrich
Allan Greis Eriksen
12-21-2016, 07:27 AM
Thanks!
I'll give it at go right away.
Allan Greis Eriksen
12-21-2016, 07:38 AM
YAHOO! It works! :)
linder
12-21-2016, 07:55 AM
Perfect! Thanks so much for the good news :)
FRiedrich
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.