"Yas" <yasar1[ at ]gmail.com> wrote in message news:1183058692.353392.248640[ at ]q75g2000hsh.googlegroups.com...
[Quoted Text] > Hello, I have a VBscript that processes data in a file given in a > certain format. Till now I've been hardwiring the file name at the top > of the script BUT... > > How can I change the script so that it expect a filename as an > argument when its initiated eg cscript Script.vbs filename.txt > And to display a simple message on the command prompt if its run > without the file argument. showing the Usage of the script. > > > Many thanks for any help or advise :-) >
See my response in microsoft.public.scripting.vbscript.
-- Richard Mueller Microsoft MVP Scripting and ADSI Hilltop Lab - http://www.rlmueller.net --
|