dos batch file to whs script
I have the following batch file
the above sets the input and output files for a cobol exe file - otshtm10
I succeeded to run the program in windows using the following vbs script
SET WshShell = WScript.CreateObject("WScript.Shell")
Return = WshShell.Run ("c:\cob\otshtm10", 1, true)
My question is what is the format of the 2 set statements
in a vbs script
Thanks for any help
"paddling upstream searching for the source"
Converting old DOS batch scripts
When converting old DOS batch scripts to something new, have you considered biterscripting ? I believe the conversion will be simpler. For example, your script will become
I started using biterscripting recently - and it is easy to learn. (I like vbscript also.) I think they still offer a free download at http://www.biterscripting.com . Do make sure you follow the installation instructions at http://www.biterscripting.com/install.html . That way, you will have all their sample scripts already installed, which will give you a headstart.
system someprogram $inp $outp