troubleshooting Question

Windows Shell script in ASP.

Avatar of ezsas
ezsasFlag for Canada asked on
Microsoft IIS Web ServerScripting LanguagesMicrosoft Development
5 Comments1 Solution562 ViewsLast Modified:
Hi,

On our web server, we have an application which was running windows shell commands from ASP page. The syntax we have was
******************************************
Dim WshShell
Set WshShell = Server.CreateObject("WScript.Shell")

ret= WshShell.Run( "c:\windows\system32\find.exe", 1, true)
**************************************************

As the hardware failed on the server, we had to change the physical server. Since then our windows shell commands are not working. We keep getting value for 'ret'=2 with in fraction of second. It looks to me some setting or service needs to be started on the server. If anyone have any clue, why it is not functioning,  please let me know ASAP.

Thanks
Ez
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros