sxade 发表于 2014-8-7 23:17:41

run()函数中如何用系统变量 ---【已解决】

本帖最后由 sxade 于 2014-8-12 11:08 编辑

例如run("notepad.exe @desktop dir&"\test.txt"") 改如何写好呢,

hnfeng 发表于 2014-8-8 08:48:49

没太明白你的要求,是不是想这样:run("notepad.exe test.txt",@DesktopDir)用 记事本打开桌面上的 test.txt

rorn_li 发表于 2014-8-9 01:09:10

run("notepad.exe" & @DesktopDir & "\test.txt")
注意连接符中间的空格

austere 发表于 2014-8-9 16:34:33

ShellExecute(@desktopdir & "\test.txt")

sxade 发表于 2014-8-11 23:20:45

回复 3# rorn_li



不错 ,正解,都是高手啊。

sxade 发表于 2014-8-11 23:21:08

回复 4# austere


很好,谢谢!
页: [1]
查看完整版本: run()函数中如何用系统变量 ---【已解决】