Matt Bartlett
asked on
How to link to a folder path with variable username
Is it possible to create a hyperlink with %USERNAME% in the file path on Sharepoint?
I want to create a link to this folder:
C:\Users\%USERNAME%\AppDat a\Roaming\
but when I click on the hyperlink nothing happens. I can successfully make hyperlinks to folder paths without the %USERNAME%
Looking at the path it is trying to access the "%" part seems to turn into "%25"
I have tried "%%" but then I get "%25%25"
Thanks
I want to create a link to this folder:
C:\Users\%USERNAME%\AppDat
but when I click on the hyperlink nothing happens. I can successfully make hyperlinks to folder paths without the %USERNAME%
Looking at the path it is trying to access the "%" part seems to turn into "%25"
I have tried "%%" but then I get "%25%25"
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
In most cases it is not possible. A link, even to the file system is an html tag and variable as you describe are not support. Using some above information for the post above (which is really good), you should be able to use Javascript of jQuery to determine the user name and then use it in the link.
Good luck...