Jump to content

Recommended Posts

Posted

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"

  • 4 weeks later...
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...