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. Score 0 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. Score 0 Related resources Rename User Folder - Forum batch file rename - Forum Change users/username folder - Forum I've got a perfectly readable usb external drive. But suddenly I can't move, copy or rename the files. I get a frozen system - Forum file corrupt when rename it - Forum Can't find your answer ? Ask ! Get the answer Best solution PhilFrisbie November 15, 2011 8:39:56 PM Try using the uppercase %USERNAME%. Share tootsgeek November 23, 2011 1:56:49 PM Best answer selected by tootsgeek. Score 0 Can't find your answer ? Ask ! Publish Related resources Xp window asking for user-name and password I do not have Forum How to change my username in irctc co in user account Forum rename a system file Forum Cannot rename, delete, rename, or run a particular file Forum Bat file for RDP session and entering username and password Forum How to get my username in irctc co in user account Forum i renamed a folder in Local Disk C;Users then pooff!! a LOT of my files are gone!1 pls help mee Forum How to change my username in irctc co in user account Forum Rename user profile windows 7 Forum Software to re-name files Forum My user took over for someone and her domain username was changed from user1 to Forum Windowsasking for user-name & password to access shared network drive Forum Can't delete, rename, move files, or anything Forum Unable to rename a user account Win XP SP2 Forum I cannot rename a user account Forum More resources Read discussions in other Windows XP categories Configuration Customization Drivers Security Video !