I tried this in a module...
call lineinputthing("\\MLH\Shared Docs\Leads.txt","26MAY08Garages")
The machine name is MLH. The share name is "Shared Docs". The file
name is Leads.txt. But VBA does not understand
\\MLH\Shared Docs\Leads.txt.
The actual location of the share is
C:\Documents and Settings\All Users\Shared Docs\
but windoze does not let you address it directly within a command
window. You can't even cd to Shared Docs from
C:\Documents and Settings\All Users\
You can do dir Shared Docs from C:\Documents and Settings\All Users\
Yes, that'll give you a DIR listing.
The lineinputthing procedure is a sub expecting 2 string arguments.
And the first of them is a text file. The text file is Leads.txt. If
Leads.txt is saved in c:\mystuf\ - then there is no problem at all.
It's just the UNC that I can't seem to get VBA to understand.
How does one refer to share points using UNC or other name convention?
Ideas? Comments?