like the title says, can it run batch files? if so, how?
Professional Software Development Tools
like the title says, can it run batch files? if so, how?
Use the File.Open action.
will that run the batch file or just open it?
It should run it. It does an Open shell verb on it which means run it for a batch file.
what about in SF6? I have both versions, but I have it in 6 right now.... do I need to bring it over into SF7?
In 6.0 use Actions -> Open/Close Programs -> Open Document.
Adam Kapilik
For SUF70:
please correct me if required:
File.Open does not wait for a batch file to complete.
File.Run gives much more control (eg the 'wait' parameter)
I was trying to find a way to make it wait also... I couldn't even find a winwait or anything.... I'm trying to use this as a wrapper and I'm deleteing the files at the end of the installation.... my only other option that I can think of is to just have the files delete at reboot....
ideas?
have a look into the batch command START /WAIT
at a command prompt type START /?
hth
you could also run a .bat or .cmd file at the very end of 'on shutdown' event
but need to cover if a reboot is needed.
also have a look inti the PING /? command
(if set output to null) >nul this can be used to pause a batch file for n seconds)
--maybe NT only for this one though.
have a look here also:
http://www.indigorose.com/forums/showthread.php?t=16965
hth
Last edited by Eagle; 09-14-2006 at 02:13 PM.
the batch file waits... the problem is the package will continue to run and will complete way before the batch file does.... and the end of the package I have it delete all of the files that the batch file is using.
Yep, the trick is to make actions wait untill the .bat has fully exited ..
personally, if you have SUF70 - if practical for you ...
convert Suf6 project-s to SUF70 - opens up many more Possibilities as we know.
you will be able to handle batch files with more power..which it seems is what you need for this one
Last edited by Eagle; 09-14-2006 at 02:25 PM.
Hi,
I'm trying this for hours and I can't get it to work. After my setup installed the files a specific batch file needs to be started from the installation folder. So I set the "On Shutdown" code to this:
File.Open("%AppFolder%\\unpack.bat");
My problem is, that the batch will be started from the Tempfolder instead of the installation folder. How can I get this to work? :(
Try setting the working folder:
File.Open("%AppFolder%\\unpack.bat", SessionVar.Expand("%AppFolder%"));
--[[ Indigo Rose Software Developer ]]