Hyperlink/shortcut problem

D

Doug Sanders

I have a shortcut named 'CaseFolders' on client's desktop with a target of
'\\Server\DataFolder\CaseFolder\'.

I want to refer to this shortcut and use the target in a command like the
'CHDRIVE' and 'CHDIR' statements execute to point to the directory so I can
add folders and files as necessary.

Making the destination as a drive letter is not an option, since it can
change.

Thanks for any help.

Doug Sanders
 
D

Douglas J. Steele

Sorry, but ChDrive cannot work with a UNC: it only works with a drive
letter.

However, I don't see why you need ChDrive or ChDir to be able to add folders
or files:

MkDir "\\Server\DataFolder\CaseFolder\" & "SubFolder"

should work fine.
 
D

Doug Sanders

I'll try it.

Thanks,

Doug Sanders
Douglas J. Steele said:
Sorry, but ChDrive cannot work with a UNC: it only works with a drive
letter.

However, I don't see why you need ChDrive or ChDir to be able to add folders
or files:

MkDir "\\Server\DataFolder\CaseFolder\" & "SubFolder"

should work fine.
 
D

Douglas J. Steele

I'm sure there is. Unfortunately, I don't know it off the top of my head!

I'd recommend that you repost this as a new question. People often ignore
threads that have had a bit of correspondence in them.
 
D

Doug Sanders

Thanks


Douglas J. Steele said:
I'm sure there is. Unfortunately, I don't know it off the top of my head!

I'd recommend that you repost this as a new question. People often ignore
threads that have had a bit of correspondence in them.
 

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