Link to home
Start Free TrialLog in
Avatar of mkohel
mkohel

asked on

VB script using Exec

I have the following .vbs file that works on my Windows XP box, but when I try to execute it from a Windows 2000 Server I get an error stating: "the object does support the property or method: Exec"

Here is the relavant part of my script:

Set shell = CreateObject("WScript.Shell")
Set FTP_output = shell.Exec(command)


I need to use Exec instead of Run because I need to capture the StdOut.
Avatar of Crazy_king_in
Crazy_king_in

Hi
I think Shell is an inbuilt function in VB try using someother variable name instead of shell
Yes thats true, i've checked it
Good Luck..
No I think iam wrong sorry
Avatar of mkohel

ASKER

I solved the problem.  I downloaded the newest version of the Windows Scripting Host for Windows 2000 and the problem was solved
Avatar of DanRollins
mkohel, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Refund points and save as a 0-pt PAQ.

DanRollins -- EE database cleanup volunteer
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial