If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Hyperlink/shortcut problem
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 |
#2
|
|||
|
|||
Hyperlink/shortcut problem
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. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Doug Sanders" wrote in message news 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 |
#3
|
|||
|
|||
Hyperlink/shortcut problem
I'll try it.
Thanks, Doug Sanders "Douglas J. Steele" wrote in message ... 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. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Doug Sanders" wrote in message news 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 |
#4
|
|||
|
|||
That worked - Followup question
Is there a way to read the a shortcut's target path?
Thanks, Doug Sanders "Douglas J. Steele" wrote in message ... 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. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Doug Sanders" wrote in message news 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 |
#5
|
|||
|
|||
That worked - Followup question
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. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no private e-mails, please) "Doug Sanders" wrote in message ... Is there a way to read the a shortcut's target path? Thanks, Doug Sanders "Douglas J. Steele" wrote in message ... 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. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Doug Sanders" wrote in message news 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 |
#6
|
|||
|
|||
That worked - Followup question
Thanks
"Douglas J. Steele" wrote in message ... 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. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no private e-mails, please) "Doug Sanders" wrote in message ... Is there a way to read the a shortcut's target path? Thanks, Doug Sanders "Douglas J. Steele" wrote in message ... 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. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Doug Sanders" wrote in message news 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 |
Thread Tools | |
Display Modes | |
|
|