Reputation: 9
I want to call an autoit script from a vbs file while providing a variable for pathname of autoit script but it is not working..I have provided the code below.I am calling an autoit script called call.au3 which is in the same folder as the autoit script.Please tell me the changes I should do for the same.Thanks in advance :)
set WshShell = WScript.CreateObject("WScript.Shell")
logger= Left(WScript.scriptfullname,(Len(WScript.scriptfullname)-Len(WScript.scriptname)))
WshShell.run "AutoIt3.exe logger & "\call.au3""
Upvotes: 0
Views: 1100
Reputation: 38745
.GetParentFolderName(WScript.ScriptFullName)
returnsUpvotes: 2