找回密码
 加入
搜索
查看: 1645|回复: 7

Run遇到了头疼的问题。大家帮助我。

[复制链接]
发表于 2009-6-16 21:46:02 | 显示全部楼层 |阅读模式
本帖最后由 crazy715 于 2009-6-16 21:47 编辑

刚刚在编写的时候,想打开在桌面建立好的文本 1.txt
我用了 Run("C:\Documents and Settings\USER\桌面\1.txt") 打不开
于是我又用了Run("C:\Documents and Settings\USER\桌面\1.txt","C:\Documents and Settings\USER\桌面\" )还是打不开
我把这个文本放到了D盘下,情况还是这样。。我还用了fileopen,情况依然。。
请高手指教。。。
感谢万分。。。。
发表于 2009-6-17 01:07:41 | 显示全部楼层
RUN('NOTEPAD.EXE '&@DesktopDir&"\1.txt")
发表于 2009-6-17 20:42:39 | 显示全部楼层
记事本是用notepad.exe打开的,上面正解。
发表于 2009-6-17 22:21:14 | 显示全部楼层
怎么这贴发到这里了?
发表于 2009-6-18 08:50:32 | 显示全部楼层
太强!顶了!~~~~~~~~~~~~~~
发表于 2009-7-6 21:51:34 | 显示全部楼层
ShellExecute(@DesktopDir&"/test.txt")
发表于 2009-7-8 14:50:39 | 显示全部楼层
楼上才是正道。
发表于 2009-7-17 15:19:42 | 显示全部楼层
学习了 ShellExecute(@DesktopDir&"/test.txt")
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-2 23:06 , Processed in 0.074124 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表