当我使用 filcopy "(省略)\Temporary Internet Files\9.html","c:\9.html" filcopy "(省略)\Temporary Internet Files\9[1].html","c:\9.html"时,都说文件未找到,请高手赐教,万分感谢!
刚才漏打一个字母e了。当我使用 filecopy "(省略)\Temporary Internet Files\9.html","c:\9.html" filecopy "(省略)\Temporary Internet Files\9[1].html","c:\9.html"时,都说文件未找到,请高手赐教,万分感谢!
使用通配符行吗? 或者作个循环 for n=0 to 9 '然后判断文件是否存在 if dir xxx\temp....\9[" & n & "].html"<>"" then '说明文件存在 filecopy "(省略)\Temporary Internet Files\9[" & n & "].html","c:\9.html" end if next
楼主的方法不行呀,明明看见文件是9.html,但是查看文件属性时,却见缓存名称为9[1].html下面这两种调用都说无法找到文件, filecopy "(省略)\Temporary Internet Files\9.html","c:\9.html" filecopy "(省略)\Temporary Internet Files\9[1].html","c:\9.html"顶呀,顶到高手解答出来为止!
作个循环 for n=0 to 9 '然后判断文件是否存在 if dir xxx\temp....\9[" & n & "].html"<>"" then '说明文件存在 filecopy "(省略)\Temporary Internet Files\9[" & n & "].html","c:\9.html" end if next
filcopy "(省略)\Temporary Internet Files\9.html","c:\9.html"
filcopy "(省略)\Temporary Internet Files\9[1].html","c:\9.html"时,都说文件未找到,请高手赐教,万分感谢!
filecopy "(省略)\Temporary Internet Files\9.html","c:\9.html"
filecopy "(省略)\Temporary Internet Files\9[1].html","c:\9.html"时,都说文件未找到,请高手赐教,万分感谢!
或者作个循环
for n=0 to 9
'然后判断文件是否存在
if dir xxx\temp....\9[" & n & "].html"<>"" then '说明文件存在
filecopy "(省略)\Temporary Internet Files\9[" & n & "].html","c:\9.html"
end if
next
filecopy "(省略)\Temporary Internet Files\9.html","c:\9.html"
filecopy "(省略)\Temporary Internet Files\9[1].html","c:\9.html"顶呀,顶到高手解答出来为止!
for n=0 to 9
'然后判断文件是否存在
if dir xxx\temp....\9[" & n & "].html"<>"" then '说明文件存在
filecopy "(省略)\Temporary Internet Files\9[" & n & "].html","c:\9.html"
end if
next