A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Hyperlink/shortcut problem



 
 
Thread Tools Display Modes
  #1  
Old December 11th, 2006, 03:20 AM posted to microsoft.public.access.forms
Doug Sanders
external usenet poster
 
Posts: 9
Default 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  
Old December 11th, 2006, 12:33 PM posted to microsoft.public.access.forms
Douglas J. Steele
external usenet poster
 
Posts: 9,313
Default 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  
Old December 12th, 2006, 12:53 AM posted to microsoft.public.access.forms
Doug Sanders
external usenet poster
 
Posts: 9
Default 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  
Old December 12th, 2006, 02:29 AM posted to microsoft.public.access.forms
Doug Sanders
external usenet poster
 
Posts: 9
Default 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  
Old December 12th, 2006, 11:39 AM posted to microsoft.public.access.forms
Douglas J. Steele
external usenet poster
 
Posts: 9,313
Default 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  
Old December 13th, 2006, 06:15 AM posted to microsoft.public.access.forms
Doug Sanders
external usenet poster
 
Posts: 9
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.