Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CScript not working???

Status
Not open for further replies.

ECCOGuy

IS-IT--Management
Aug 31, 2006
33
US
I don't do much with scripting, so I'm sure this is an easy question. I have a script that I can run just fine on my workstation, but when I take it over to my SBS 2003 server running exchange, it won't run. It won't do anything (no output or error), it just sits there until I kill the process. In fact, if I just type in CScript.exe I should usually get the usage, RIGHT??? I don't even get that. It just says:

Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

And goes back to the command prompt with CScript process running in the processes. What am I missing?

Thanks for the help!

Spencer
MCSE2k, MCSA2k, Net+, A+
 
Try downloading wsh from MS and installing it. It should say
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Usage: CScript scriptname.extension [option...] [arguments...]

Options:
//B Batch mode: Suppresses script errors and prompts from displaying
//D Enable Active Debugging
//E:engine Use engine for executing script
//H:CScript Changes the default script host to CScript.exe
//H:WScript Changes the default script host to WScript.exe (default)
//I Interactive mode (default, opposite of //B)
//Job:xxxx Execute a WSF job
//Logo Display logo (default)
//Nologo Prevent logo display: No banner will be shown at execution time
//S Save current command line options for this user
//T:nn Time out in seconds: Maximum time a script is permitted to run
//X Execute script in debugger
//U Use Unicode for redirected I/O from the console
 
Are you running it by command-line? Try running cscript and wscript from a cmd prompt.
 
xwb had the right idea. I guess my wsh install had gotten corrupt. After downloading and installing it from MS it worked again.

Thanks for the help...

Spencer
MCSE2k, MCSA2k, Net+, A+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top