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.Shel l")
Set FTP_output = shell.Exec(command)
I need to use Exec instead of Run because I need to capture the StdOut.
Here is the relavant part of my script:
Set shell = CreateObject("WScript.Shel
Set FTP_output = shell.Exec(command)
I need to use Exec instead of Run because I need to capture the StdOut.
No I think iam wrong sorry
ASKER
I solved the problem. I downloaded the newest version of the Windows Scripting Host for Windows 2000 and the problem was solved
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
Moderator, my recommended disposition is:
Refund points and save as a 0-pt PAQ.
DanRollins -- EE database cleanup volunteer
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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..