+ Post New Thread
Results 1 to 4 of 4
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 ...
  1. #1

    Join Date
    Mar 2009
    Posts
    2
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Question 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"

  2. #2
    BJG
    BJG is offline
    BJG's Avatar
    Join Date
    May 2008
    Location
    Norwich
    Posts
    465
    Thank Post
    89
    Thanked 35 Times in 25 Posts
    Rep Power
    22
    Cobol?

  3. #3

    Join Date
    Mar 2009
    Posts
    2
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Thumbs up thanks jinnantonics

    Thanks for your reply
    I'll give it a try
    Know any decent tutorials on all this whs stuff?

  4. #4

    Join Date
    Mar 2009
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    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:
+ Post New Thread

Similar Threads

  1. Ms-Dos file conversion in word
    By eric.777 in forum Windows
    Replies: 0
    Last Post: 1st December 2008, 01:52 PM
  2. batch file comman
    By jussy65 in forum Scripts
    Replies: 3
    Last Post: 13th August 2008, 07:10 AM
  3. Batch FTP Script
    By My220x in forum Scripts
    Replies: 2
    Last Post: 23rd March 2008, 07:48 PM
  4. Pass in batch file
    By meastaugh1 in forum Windows
    Replies: 2
    Last Post: 17th January 2008, 08:02 PM
  5. batch file help
    By beeswax in forum Scripts
    Replies: 9
    Last Post: 3rd March 2006, 07: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
  •