Pass parameters to vbscript at run time
Posted on 2011-03-03
I have a vbs that splits a large data file (with multiple days data) into to smaller files by individual dates. My problem is now I have to edit a batch file that calls the vbs with following arguments in that batch file: 1. Name of file to split 2. Store number at beginningof file name generated by vbs & 3. finally "-DA after store number.
Here is the command in the batch file I am manually editing (cscript FT3000Split.vbs RLG110301.E_R BK12345-DA).
Instead of having to constantly edit the batch file for every file I would like some sort of gui that I could enter the name of the file to split (RLG110301.E_R), and the store name (BK12345). The gui code would take these 2 inputs plus add "-DA" at end of store name and then call the FT3000Split.vbs.
Can anyone help me with this?