
Running VB Script code on WSH using cscript on win NT
The windows notepad utility has a default filetype for the save as dialog. "Text Document"
To save a new file, or save_as, just open the save dialog, and change the drop box for "Save As Type" to "All Files (*.*)" rather than Text Document.
Your problem might stem from the default windows setting of "Hide extension of known filetypes" (My Computer, View menu, View Tab) You will find it easier to do scripting, and other development work using the "All Files" option for showing the extension.
Doing this will probably reveal that you saved the script as "something.vbs.txt", instead of "something.vbs"
--
Mark L. Ferguson Please reply in newsgroup
marfers notes for OE5 > http://www.geocities.com/SiliconValley/Bay/6386/IE_ng_notes.htm
Quote:
> How to save a sample file as vbs file using notepad editor.
> I saved one sample .vbs file on local disk.
> I try to run this script using cscript on win NT giving the absolute
> path of the sample file.
> I am getting an error. Saying..failed to load the file.
> Thanks in advance.
> Sanjay