Computing.Net > Forums > Windows Server 2003 > VBS script files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VBS script files

Reply to Message Icon

Name: roeeko
Date: July 30, 2006 at 02:23:26 Pacific
OS: win2003 server
CPU/Ram: p4 1ghz
Product: intel
Comment:

Does anyone know how to run a VBS script file? i saved the code in a notepad file and saved it as vbs, it doesn't work, is there any other way? (it's a file that suppose to check locked accounts in AD)
thanx



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: July 30, 2006 at 02:34:48 Pacific
Reply:

First, this:

"it doesn't work"

isn't very informative.

Next, it's not a great idea to be running vbs of unknown pedigree.

Finally, the environment will usually have something like:

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

which tells winders what to do with each file type listed. Maybe yours is non-standard.



=====================================
If at first you don't succeed, you're about average.

M2



0

Response Number 2
Name: tonysathre
Date: July 30, 2006 at 14:39:43 Pacific
Reply:

Just double-click the icon.

or

cmd /k cscript C:\path\to\file\script.vbs

UNIX is an operating system, OS/2 is half an operating system, Windows is a shell, and DOS is a boot partition virus.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows Server 2003 Forum Home


Sponsored links

Ads by Google


Results for: VBS script files

VBS script to map shares www.computing.net/answers/windows-2003/vbs-script-to-map-shares/6799.html

Block vb script to run www.computing.net/answers/windows-2003/block-vb-script-to-run/7642.html

Automate windows environment variab www.computing.net/answers/windows-2003/automate-windows-environment-variab/8128.html