Autoit 自动运行记事本命令

Autoit 自动运行记事本命令,autoit,Autoit,运行保存的记事本文件需要做什么? 目前的代码是: Run("Notepad.exe", "C:\Users\Caleb Austing\Documents\AutoIT\Alphas\TFRO Hub Welcome Pack\TFRO Hub Update Log.txt") 我还有: Run("notepad.exe", @ScriptDir & "TFRO Hub Update Log.txt") 这些都是: Func StartUpdatelog() Run("not

运行保存的记事本文件需要做什么? 目前的代码是:

Run("Notepad.exe", "C:\Users\Caleb Austing\Documents\AutoIT\Alphas\TFRO Hub Welcome Pack\TFRO Hub Update Log.txt")
我还有:

Run("notepad.exe", @ScriptDir & "TFRO Hub Update Log.txt")
这些都是:

Func StartUpdatelog()
    Run("notepad.exe", @ScriptDir & "TFRO Hub Update Log.txt")

EndFunc
将该文件作为“WorkingDir”参数。这就是问题所在

必须使用-函数中的程序指定该文件

Run("notepad.exe C:\Users\Caleb Austing\Documents\AutoIT\Alphas\TFRO Hub Welcome Pack\TFRO Hub Update Log.txt")

或者你可以使用

在文件名之前添加反斜杠,因为变量@ScriptDir包含没有终止反斜杠的路径。

将文件作为“WorkingDir”参数。这就是问题所在

必须使用-函数中的程序指定该文件

Run("notepad.exe C:\Users\Caleb Austing\Documents\AutoIT\Alphas\TFRO Hub Welcome Pack\TFRO Hub Update Log.txt")

或者你可以使用


在文件名前添加反斜杠,因为变量@ Script PTDIR包含没有终止反斜杠的路径。< /P>@ TGBFPASTIT-请考虑通过单击复选标记接受此答案(✅) 这样,其他用户知道这个问题有一个可接受的答案。谢谢!(有用链接:)tgbfStudio -请考虑通过点击复选标记接受这个答案(✅) 旁边。这样其他用户就知道这个问题的答案是可以接受的。谢谢!(有用的链接:)

ShellExecute("notepad.exe", @ScriptDir & "\TFRO Hub Update Log.txt")