Closed Solved

Rename file with user's username

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%

4 answers Last reply Best Answer
More about rename file user username
  1. What have you tried already? The task seems simple, but knowing what your problem is will help you get a good answer.
  2. Thanks for the response.
    I have tried rename test.txt %username%.txt
    Not sure what else to try.
  3. Best answer
    Try using the uppercase %USERNAME%.
  4. Best answer selected by tootsgeek.
Ask a new question

Read More

Computers Filename Windows XP