Closed Rename file with user's username Tags: Computers Filename Windows XP Last response: November 23, 2011 2:26 PM in Windows XP Share tootsgeek 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 PhilFrisbie 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. tootsgeek 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. Related resources Renaming user account _and_ document root - Forum Login name is not same as username - Forum My user took over for someone and her domain username was changed from user 1 to - Forum Rename user profile folder - Forum Rename User - Forum Can't find your answer ? Ask ! Get the answer Best solution PhilFrisbie November 15, 2011 8:39:56 PM Share Try using the uppercase %USERNAME%. tootsgeek November 23, 2011 1:56:49 PM Best answer selected by tootsgeek. Can't find your answer ? Ask ! Publish Related resources cannot rename file cannot delete file . Forum Windowsasking for user-name & password to access shared network drive Forum Fix name of My Documents under several user accounts Forum Change the Username in Windows address paths? Forum I cannot rename a user account Forum User Cant Rename Folder Forum Can changed username in User Accounts be set as environmen.. Forum Can't rename user folders Forum Address Book for All Users Points to the Same wab file Forum Problems with renaming My Documents folder Forum File Not found in Windows 8 Forum PCMCIA slots need more power??? HELP! Forum How do i replace window xp with windows 7 Forum User accounts on XP Forum Starting an excel document with a batch file on a network drive Forum More resources Read discussions in other Windows XP categories Configuration Customization Drivers Security Video !