Sign in with
Sign up | Sign in
Your question
Closed

Rename file with user's username

Tags:
  • Computers
  • Filename
  • Windows XP
Last response: in Windows XP
Share
November 14, 2011 4:50:29 PM

I would like to rename a file based on the user's username. As in renaming the file test.txt to jsmith.txt were the user's username is jsmith.

I would like to create a batch file that can be run from the user's computer and change the filename based on %username%

Thanks

More about : rename file user username

November 14, 2011 9:49:06 PM

What have you tried already? The task seems simple, but knowing what your problem is will help you get a good answer.
Score
0
November 15, 2011 6:54:48 PM

Thanks for the response.
I have tried rename test.txt %username%.txt
Not sure what else to try.
Score
0
Related resources

Best solution

November 15, 2011 8:39:56 PM

Try using the uppercase %USERNAME%.
Share
November 23, 2011 1:56:49 PM

Best answer selected by tootsgeek.
Score
0
!