davidm Posted March 3, 2009 Report Posted March 3, 2009 hi I have the following batch file set inp=c:\cob\SPOOL\tlushmla.prt set outp=c:\cob\SPOOL\tlushmla.htm otshtm10 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 David "paddling upstream searching for the source"
davidm Posted March 3, 2009 Author Report Posted March 3, 2009 Thanks for your reply I'll give it a try Know any decent tutorials on all this whs stuff?
Randi11 Posted March 26, 2009 Report Posted March 26, 2009 davidm: 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 set $inp="c:\cob\SPOOL\tlushmla.prt" set $outp="c:\cob\SPOOL\tlushmla.htm" system someprogram $inp $outp 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. Randi
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now