我想从vbs文件中调用autoit脚本,同时为autoit脚本的路径名提供一个变量,但它不能正常工作..我提供了下面的代码。我正在调用一个名为call.au3的自动脚本与autoit脚本相同的文件夹。请告诉我我应该为此做的更改。提前谢谢:)
set WshShell = WScript.CreateObject("WScript.Shell")
logger= Left(WScript.scriptfullname,(Len(WScript.scriptfullname)-Len(WScript.scriptname)))
WshShell.run "AutoIt3.exe logger & "\call.au3""
答案 0 :(得分:2)
.GetParentFolderName(WScript.ScriptFullName)
返回的内容