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

wshell error 1

Status
Not open for further replies.

xxentric

Technical User
Oct 14, 2009
35
0
0
US
is there something extra i need for this code? im getting an object required error

Code:
Dim WshShell As String
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "C:\Documents and Settings\chipfab\Desktop\Jared FC Project\Search Script OverwriteVBS.vbs", 1, True
 
Start with:
[tt]Dim WshShell As Object
Set WshShell = CreateObject("WScript.Shell")[/tt]

combo
 
AH! thank you, just needed that and the tripple quotes on the file path and it works great
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top