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"
Thanks for your reply
I'll give it a try
Know any decent tutorials on all this whs stuff?
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.Code:set $inp="c:\cob\SPOOL\tlushmla.prt" set $outp="c:\cob\SPOOL\tlushmla.htm" system someprogram $inp $outp
There are currently 1 users browsing this thread. (0 members and 1 guests)