Jump to content
Sign in to follow this  
Santana

Script error when running in another computer

Recommended Posts

Santana

Hi all,

I have a script that was running fine during testing. I had the files in a Virtual Workstation with windows terminal server (2003). I was testing the script remotely and it was working fine. When I tried to test the script from the server itselfe, it gives the error: The requested action with this object has failed.:

and it points to:

$rpt = $Call & $fileLocation & $mod & $export
$objshell = objcreate("wscript.shell")
$objshell.Run($rpt)  <<<==================  The error is in this line

I dont know where to start looking since it works well in windows 2k and windows XP

Can anyone give me suggestion?

Thanks


Just another special date with a different challenge

Share this post


Link to post
Share on other sites
herewasplato

I have not got a clue - but here is a free bump to the first page while some smarter folks than I are on line :-)


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
Juvigy

Try IsObj($objshell).

It is possible that "wscript" is not installed or corrupted on that system.

Try to reinstall it

Share this post


Link to post
Share on other sites
Santana

Well. It is quite embarrazing but have to say it. The problem was that I am using Monarch to process some text files and was testing in two PCs and only used the production workstation once. Some "smart" person decided to uninstall Monarch from the production machine while I was using the testing one and I never bother to double check. Soooo. I think I didn't investigate enough. ha ha.

Thanks anyways for your answers. I really apreciate it.


Just another special date with a different challenge

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.