找回密码
 加入
搜索
查看: 2446|回复: 8

FileInstall如何包含文件夹下的所有文件

  [复制链接]
发表于 2009-7-27 11:11:30 | 显示全部楼层 |阅读模式
本帖最后由 qq4045728 于 2009-7-27 20:54 编辑

FileInstall("d:\a\","d:\b\")   像这样直接运行可以将a下面的所有文件复制到 b文件夹下。但是编译就出错了。

d:\a\  这里出了问题。     主要问题就是如何用FileInstall 包含a文件夹下的所有文件?
发表于 2009-7-27 11:42:31 | 显示全部楼层
只能一个个 FileInstall 文件,不能直接复制文件夹。 文件超多的话可以试试先rar压缩,然后FileInstall 压缩包自解压,没试过
发表于 2009-7-27 12:36:07 | 显示全部楼层
dirinstall
发表于 2009-7-27 13:00:00 | 显示全部楼层
本帖最后由 afan 于 2009-7-27 13:01 编辑

刚测试了,用 WinRAR 打包一个文件夹为自解压格式文件,然后在AutoIt3里面 FileInstall 这个文件,并 Runwait 这个文件,其它照旧。 很成功~

至于LS说的那个UDF,据说都不成功吧
发表于 2009-7-27 16:01:37 | 显示全部楼层
FileInstall ( "source", "dest" [, flag] )
source
The source path of the file to compile. This must be a literal string; it cannot be a variable. It can be a relative path (using .\ or ..\ in the path).
dest
The destination path of the file with trailing backslash if only the directory is used. This can be a variable.
flag
[optional] this flag determines whether to overwrite files if they already exist:
  0 = (default) do not overwrite existing files
  1 = overwrite existing files

源路径必须为有效的文件,不能使用变量,也不能使用文件夹名称。
发表于 2011-1-26 15:08:56 | 显示全部楼层
牛人,学习了!
发表于 2011-2-17 19:51:39 | 显示全部楼层
还得用其他软件配合下。
发表于 2011-7-8 18:41:15 | 显示全部楼层
呵呵,学习了解了。。
发表于 2011-11-20 09:25:44 | 显示全部楼层
xzcxzhjhgj
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-10-1 07:34 , Processed in 0.129132 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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