Running VB Script code on WSH using cscript on win NT 
Author Message
 Running VB Script code on WSH using cscript on win NT

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


Mon, 09 Sep 2002 03:00:00 GMT  
 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



Tue, 10 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Running a WSH Script as a service on Win NT

2. Running a WSH Script as a service on Win NT

3. need help writing server monitor script for windows 2000 and win nt 4 using wsh

4. Script won't run with WSCRIPT/CSCRIPT

5. Need a goog WSH book that mainly focuses on Login Scripts for Win 9x, NT/2000

6. running DOS commands on NT using WSH

7. Run WSH logon script before NT shell starts?

8. Using at to run a VB script file

9. Exit code 255 error in Win NT 3.51

10. Nt Domain Logon Script using VBScript/WSH

11. NT Logon Script using WSH / VBScript

12. NT Logon Scripting using WSH

 

 
Powered by phpBB® Forum Software