Jump to content
Sign in to follow this  
chiners_68

@scriptdir

Recommended Posts

chiners_68

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
jvanegmond

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
KaFu

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
chiners_68

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
KaFu

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.