开发者

Using Kill command with a network path

I seem to be having a problem using the kill command to delete a file(s) when I use a network path, such as below wont work:

Kill "\\LAPTOP\开发者_如何转开发SH-FOLDER\*.pdf"

If I give the full path name though, fine, no problems. Is there an issue with using network paths?

Thanks in advance for any help.


I don't understand why your Kill command doesn't work. This one works for me with Access 2003:

Kill "\\CMPQ\Access\*.txt"

Exactly what symptoms do you see? Do you get an error message?

If you run this command in the Immediate Window, does it give you a file name back?

? Dir("\\LAPTOP\SH-FOLDER\*.pdf")
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜