ChuckDrago
Active Member
- Joined
- Sep 7, 2007
- Messages
- 470
- Office Version
- 2010
- Platform
- Windows
Hi everyone,
I am fighting a syntax battle. I have an application that needs to verify whether a specific file is present in a specific folder.
Google this and you get a zillion answers. Unfortunately, all I found refer to the folder path as a mapped designation, whereas I need to use the UNC approach.
The actual example is I need to locate if filename "9999Test.pdf" is present in folder "\\bms-files01\CustOrd\".
When using a Dir method, the string Dir(\\bms-files01\ etc. ), it does not recognize the search item at all and I get zilch. Likewise, using an FSO method leads to oblivion.
Therefore, I will appreciate any suggestion as to what is the right syntax to combine the UNC address and filename in a successful search.
Thanks a bunch, as always.
Chuck
I am fighting a syntax battle. I have an application that needs to verify whether a specific file is present in a specific folder.
Google this and you get a zillion answers. Unfortunately, all I found refer to the folder path as a mapped designation, whereas I need to use the UNC approach.
The actual example is I need to locate if filename "9999Test.pdf" is present in folder "\\bms-files01\CustOrd\".
When using a Dir method, the string Dir(\\bms-files01\ etc. ), it does not recognize the search item at all and I get zilch. Likewise, using an FSO method leads to oblivion.
Therefore, I will appreciate any suggestion as to what is the right syntax to combine the UNC address and filename in a successful search.
Thanks a bunch, as always.
Chuck