Articles & News
Graphics & Displays
Tom's IT Pro
Login | Sign Up
The authority on tech
Rename file with user's username
Nov 14, 2011, 4:50 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%
Nov 23, 2011
Nov 15, 2011
rename file user username
Nov 14, 2011, 9:49 PM
What have you tried already? The task seems simple, but knowing what your problem is will help you get a good answer.
Nov 15, 2011, 6:54 PM
Thanks for the response.
I have tried rename test.txt %username%.txt
Not sure what else to try.
Need help with batch file...
How to get my username in irctc co in user account
Batch file, change filename with system date and time infor
To begin click on username not showing
Rename files that are out of order?
Can't find your answer ? Ask !
Get the answer
Nov 15, 2011, 8:39 PM
Try using the uppercase %USERNAME%.
Nov 23, 2011, 1:56 PM
Best answer selected by tootsgeek.
Ask a new question
Problem with changing username on XP
I cant get username changes in my computer
Change the Username in Windows address paths?
Batch file for Remote Computer
Batch file help
Batch file to log in to SharePoint
Login name is not same as username
Username/Password protect a file: now I can't download it ..
Looking up your ISP, Username and Pw?
HELP! Attempting to create custom live CD with Reconstructor
How to populate computer description with %username%
Word xp how to rename with a filename extension
Subscribe to our newsletter
icon arrow stem circle
About Tom's Hardware
Licensing and Reprints
Other Shopsavvy sites
© 2018 Purch All Rights Reserved.