Windows Thread, dos batch file to whs script in Technical; 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 ...
-
3rd March 2009, 02:04 PM #1
- Rep Power
- 0
dos batch file to whs script
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"
-
-
IDG Tech News
-
3rd March 2009, 02:56 PM #2 Cobol?
-
-
3rd March 2009, 10:39 PM #3
- Rep Power
- 0
thanks jinnantonics
Thanks for your reply
I'll give it a try
Know any decent tutorials on all this whs stuff?
-
-
26th March 2009, 10:37 PM #4
- Rep Power
- 0
Converting old DOS batch scripts
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
Code:
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
-
SHARE:
Similar Threads
-
By eric.777 in forum Windows
Replies: 0
Last Post: 1st December 2008, 02:52 PM
-
By jussy65 in forum Scripts
Replies: 3
Last Post: 13th August 2008, 07:10 AM
-
By My220x in forum Scripts
Replies: 2
Last Post: 23rd March 2008, 08:48 PM
-
By meastaugh1 in forum Windows
Replies: 2
Last Post: 17th January 2008, 09:02 PM
-
By beeswax in forum Scripts
Replies: 9
Last Post: 3rd March 2006, 08:48 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules