html href equilvalent for %userprofile%\Desktop

G

Guest

Hello,

I am trying to create a dynamic hyperlink to the local users desktop. I have
a generic file installed on the desktop for my department and need to
reference to hyperlink to their user profile. How do I do this in HTML? See
example.

C:\Documents and Settings\jbrown\Desktop\test.txt

C:\Documents and Settings\%userprofile%\Desktop\test.txt

Appreciate any help.

Regards,

Bobm
 
S

Stefan B Rusynko

The variable %userprofile% already includes the system drive, Documents and Settings directory and the user name folder
Just enter %userprofile% in your Windows explorer address bar to see how it reolves
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Hello,
|
| I am trying to create a dynamic hyperlink to the local users desktop. I have
| a generic file installed on the desktop for my department and need to
| reference to hyperlink to their user profile. How do I do this in HTML? See
| example.
|
| C:\Documents and Settings\jbrown\Desktop\test.txt
|
| C:\Documents and Settings\%userprofile%\Desktop\test.txt
|
| Appreciate any help.
|
| Regards,
|
| Bobm
|
|
 
G

Guest

Thanks for the reply. I tried your suggestion and whilst it works entering
into windows explorer, i cannot get it to work as a file url.

I tried %userprofile%\desktop\ or %25userprofile%25\desktop\ and no luck. Is
this supported?
 
S

Stefan B Rusynko

Probably not for security reason
- Try an IIS or IE newsgroup

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Thanks for the reply. I tried your suggestion and whilst it works entering
| into windows explorer, i cannot get it to work as a file url.
|
| I tried %userprofile%\desktop\ or %25userprofile%25\desktop\ and no luck. Is
| this supported?
|
|
 

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