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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wshell problem

Status
Not open for further replies.

vemate

Programmer
Aug 23, 2002
61
US
I can go to Start Run and Paste %SystemRoot%\system32\fpa\aas2.exe and the program will execute.
I try to use the shell I created and get this error.

activex component can't create object "wscript.shell"

<SCRIPT LANGUAGE="VBScript">
Dim wshShell
Set wshShell = CreateObject("WScript.Shell")
wshShell.Run("%SystemRoot%\system32\fpa\aas2.exe")
MsgBox "Ran FPA from System32"
</SCRIPT>

I am no expert with shells.
Thanks
 
I am no expert with shells.
And I'm no expert with VBScript, perhaps you should post this in the appropriate forum: forum329

-kaht

Do the chickens have large talons?
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top