Sign in to follow this  
Followers 0
chiners_68

@scriptdir

5 posts in this topic

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"')

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Added au3 tags..

And I don't think this is right at all.. What is the command line you want to run?

Edited by Manadar

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

SciTE is the editor of choice for au3 as it supports syntax highliting ;)

Edited by KaFu

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0