为什么我不能 运行 我的应用程序使用像记事本这样的默认文件?
Why cant I run my application with a default file like that of notepad?
为什么我 运行 我的应用程序不能像记事本一样使用默认文件?
AutoIt 示例代码如下:
Example()
Func Example()
; Run Notepad
Run("Notepad.exe " & "C:\Users\judith_francis\Desktop\dd.txt")
Run("C:\Program Files (x86)\abc\abc.exe" & "C:\Users\xyz\Desktop\test_image.tif")
EndFunc
这一行:
Run("C:\Program Files (x86)\abc\abc.exe" & "C:\Users\xyz\Desktop\test_image.tif")
运行命令
C:\Program Files (x86)\abc\abc.exeC:\Users\xyz\Desktop\test_image.tif
其中 Windows 将解释为
C:\Program
试试看
Run('"C:\Program Files (x86)\abc\abc.exe" ' & '"C:\Users\xyz\Desktop\test_image.tif"')
其中添加必要的 space & 引号 & 将被执行为
"C:\Program Files (x86)\abc\abc.exe" "C:\Users\xyz\Desktop\test_image.tif"
为什么我 运行 我的应用程序不能像记事本一样使用默认文件? AutoIt 示例代码如下:
Example()
Func Example()
; Run Notepad
Run("Notepad.exe " & "C:\Users\judith_francis\Desktop\dd.txt")
Run("C:\Program Files (x86)\abc\abc.exe" & "C:\Users\xyz\Desktop\test_image.tif")
EndFunc
这一行:
Run("C:\Program Files (x86)\abc\abc.exe" & "C:\Users\xyz\Desktop\test_image.tif")
运行命令
C:\Program Files (x86)\abc\abc.exeC:\Users\xyz\Desktop\test_image.tif
其中 Windows 将解释为
C:\Program
试试看
Run('"C:\Program Files (x86)\abc\abc.exe" ' & '"C:\Users\xyz\Desktop\test_image.tif"')
其中添加必要的 space & 引号 & 将被执行为
"C:\Program Files (x86)\abc\abc.exe" "C:\Users\xyz\Desktop\test_image.tif"