开发者

Using Kill command with a network path

开发者 https://www.devze.com 2023-02-02 20:50 出处:网络
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:

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

精彩评论

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

关注公众号