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")
精彩评论