Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there some function a-la "Dir" w

Status
Not open for further replies.

MichaelRed

Programmer
Dec 22, 1999
8,410
US
Is there some function a-la "Dir" which works with UNC references?

MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over
 
I think 'Dir' should work with UNC's. It does on my machine anyway. Durkin
 
O.K. then what is wrong with the following?

SrchName = Dir(Dirs(ThisDir), vbDirectory)

Error "Path Not Found", but the UNC is copied directly from explorer. "Focused" on the network path ("\\Machelle\c).

?dirs(ThisDir)
\\Machelle\c:



MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over
 
Also, I can occassionally get a "Bad File name or number" error with variations of putting a "HardCoded" path (w/ UNC). What I cannot seen to do is get a file (directory) name returned.



MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over
 
O.K. Again. Sorry for the Bad question. I got it figured out -at least in the simple sense. It just looks like I need to loose the colon. Why I don't know, but at least it appears to work.



MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top