Jump to content

Recommended Posts

Posted

hi guys,

not sure how to get @scriptdir working in this line.

Runwait('C:\Windows\SysWOW64\wscript.exe @ScriptDir & "\\Server1\test\Inventory.vbs"')

ive tried but it not worky

Runwait('C:\Windows\SysWOW64\wscript.exe @ScriptDir & "\Inventory.vbs"')
Posted

this worked although dosent like a space in the actual @ScriptDir file path.

Runwait(@WindowsDir & '\SYSWOW64\wscript.exe ' & @ScriptDir & '\Inventory.vbs')

the reason I need to run this is to get a vbs file to write to a database on windows 7 64bit. unless you force it to run against the 32bit wscript in \SYSWOW64\ directory it wont write to the database. no proble on a 32 bit OS.

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
×
×
  • Create New...