I want to send out a file path to other users.

I want to send out a file path to other users.

How do I make the user name generic...

For example:

C:\Users\%Username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

P.S is "generic" the right expression?
Mr_ShawAsked:
Who is Participating?
 
Neil RussellTechnical Development LeadCommented:
What are trying to do? What do you mean mean by "Send out a file path"? How? What in? In a script? A .CMD file? A group policy?
0
 
Mr_ShawAuthor Commented:
No, just in an email..

0
 
Neil RussellTechnical Development LeadCommented:
No, not as a plain link in an email I dont think you will be able to.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
sam0x01Commented:
On a local network file://server/share/folder/subfolder/file.ext should work. there may need to be more '/' chars preceding server
0
 
sam0x01Commented:
looking more closely at the question, I doubt that a browser will expand an environment variable
0
 
Mr_ShawAuthor Commented:
No, the file path is for a user local machine.
0
 
Mr_ShawAuthor Commented:
Here the solution

C:/Users/%username%/AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
0
 
Mr_ShawAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.