找回密码
 加入
搜索
查看: 5972|回复: 6

就一行代码,FileInstall问题,能运行却无法编译!

[复制链接]
发表于 2009-2-24 20:41:29 | 显示全部楼层 |阅读模式
运行环境:Vista 32位,管理员权限
FileInstall (@DesktopDir&"\LOGO.JPG", @TempDir&"\KLU3K.JPG",1)

按F5运行正常,但按F7编译时出现:
---------------------------
Aut2Exe Error
---------------------------
Invalid FileInstall() function:
---------------------------
确定   
---------------------------



晕死,解决了,原因是: 在FileInstall中使用了变量

[ 本帖最后由 KLU3K 于 2009-2-24 20:50 编辑 ]
发表于 2009-2-24 21:09:06 | 显示全部楼层
也包括宏么?
发表于 2009-2-24 21:20:04 | 显示全部楼层
发表于 2009-2-25 01:52:54 | 显示全部楼层
源文件地址 好像要相对或绝对路径,不能用变量
发表于 2009-2-25 08:51:01 | 显示全部楼层
源文件: 要装入到编译程序中的文件的路径。文件名必须是字符串,不能是任何变量。
发表于 2009-3-2 18:31:22 | 显示全部楼层
仔细看帮助就能避免了
发表于 2014-7-30 01:03:06 | 显示全部楼层
Local $bFileInstall = False ; Change to True and ammend the file paths accordingly.

; This will install the file C:\Test.bmp to the script location.
If $bFileInstall Then FileInstall("C:\Test.bmp", @ScriptDir & "\Test.bmp")
文件的内容如上,怎么修改?请高手指教啊,我的还是不能编译
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-28 04:25 , Processed in 0.102750 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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