Help: ChDrive and/or ChDir for a non-mapped network drive

A

Andrew Coyle

Hi

Would like to change the current dir to a network drive, which is where the
dbase is stored. The filename returned by db.Name is something like
(invented values) "\\115.15.15.151\Current\Work\In\Progress\dbase.mdb"

Cannot use ChDir as it is not on the local drive, need to ChDrive first.
But if put the above into ChDrive an error is produced, it requires (I
think) the string to look like "j:\....."

Have seen some stuff on the web where people mapped an unused letter to the
network dir, then used that, then deleted it. But this is kind of risky and
needs to be cleaned up, and may not even be possible if mapping is not
enabled ??

Can someone help? Thanks in advance.
A
 
A

Alex Dybenko

imho, in order to change drive you have to map first
but why do you need to change curent dir?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top