ChDir equivalent for \\DriveName

P

Peter Rooney

Good morning, all.

Is there a CHDIR equivalent to allow me to switch to a drive such as
\\UKLYSDI003 instead of using a drive letter designation? Not all my users
will map to this drive using the same drive letter.

Thanks in advance

Pete
 
J

Jan De Messemaeker

Hi Peter,

I never used CDIR (why should I) but in instrcuctions such as open,
filesaveas, and even dir, these directories behave normally!
 
P

Peter Rooney

Good morning, Jan,

Thanks for gettig back to me.
I seem to recall your not liking things like ChDir, but I can't remember
why... :)
The object of my exercise was to set the default folder, so that when the
user did a File Open, the default folder could be displayed.
I also remember you having a better way of doing this, but I can't for the
life of me remember what it was!

Sub ChangeDirectory()
chdir ("\\UKLYSDI003\QMS\")
End Sub

Should this work, then? It doesn't - it just says "Path not found"

Thanks

Pete
 
J

Jan De Messemaeker

Hi Peter,

I would try
optionssave defaultprojectspath:="\\whatever"
But I can't test it since I'm not in a server environment here
HTH
 
P

Peter Rooney

Jan,

Whilst this changes the setting in "Tools-Options-Save", when you do a File
Open, Project still points at the original folder.
I'm stumped.

Pete
 

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