Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: dynamic modification of PIF file
;<------snip--------> %1 %2 %3 %4 %5 %6 %7 %8 %9 pause ;<--------snip---------->You can add the PAUSE line at the end just for debugging, then remove it later!!
Set the PIF with all the settings you like.
***NB: WinBatch needs the following two settings:
RunWait("DOALL.BAT","XYZ.BAT various assorted parameters")Now the xyz.bat file will inherit the pif settings of DOALL.BAT.
Or, if you wanted to run a DOS utility using this batch file, it might look something like:
RunWait("DOALL.BAT","mylogin.exe parameters")
You can copy the DOALL.BAT and DOALL.PIF up on the server to run with your WinBatch script, so that you don't have to have a million BAT and PIF files around.
And for a compiled EXE, you can distribute both the DOALL.BAT and DOALL.PIF with your Winbatch EXE.
(Do this MANUALLY on your computer). Edit the PIF file to remove all path information. Let it default to the current directory. Test to make sure it is not broken (just double click it)
Then I start a DOS window and find the pif file (say xxx.pif)
Then I rename it to xxx.abc
Now I work on the install program. Add the xxx.abc file to the install, and at the last second rename it to xxx.pif
It should go in the same directory as the target applicaiton. THat way you can have exactly the PIF file you want for it.
Article ID: W12906
Filename: The Mother of all PIF Files.txt
File Created: 1999:11:04:10:54:56
Last Updated: 1999:11:04:10:54:56