0

My username on my computer is BreeBreeBRAN™

I'm trying to make a batch file to delete the firefox temp folder and run it as a task on startup. So my batch is

cd C:\Users\BreeBreeBRAN™\AppData\Local\Mozilla\Firefox\Profiles RMDIR 5bngz3ew.default /S /Q

But it keeps saying the path cant be found. Even though I didnt even type it I copied it right out of windows explorer. I read this Change Win 8 Username But even after I renamed it and rebooted my pc the path is still C:\Users\BreeBreeBRAN™\AppData\Local\Mozilla\Firefox\Profiles

If I can't rename my user then can I at least make this batch file recognize ascii? Because whenever I put the ™ intot he batch file the output is always

C:\Users\BreeBreeBRANT\Desktop>cd C:\Users\BreeBreeBRANÖ\ The system cannot find the path specified.

C:\Users\BreeBreeBRANT\Desktop>pause Press any key to continue . . .

It always recognizes the ™ as a T and when I actually write out the ™ it recognizes it as Ö. Any ideas?

I also tried going to control panel > Users > Change account name

I could just put the batch in that directory, but I still have another problem then. I'm trying to use the batch in task scheduler to delete firefox temp files every time I log in. But when I tell the task the path to the batch file it says file not found. I'm guessing the trademark symbol in my username is the cause of that too.

0

3 Answers 3

2

The short name for the BreeBreeBRAN™ folder maust be BREEBR~1. Try to use that.

1

You can use the environment variable for the user's temp directory like so:

rmdir %appdata%\Mozilla\Firefox\profiles\5bngz3ew.default /Q /S

Why not just change the settings in Firefox to clean up when closed?

2
  • I didnt even know there was a setting to do that. Where is it? Nevermind I found it. But it only says clear history when firefx closes. That still leaves the cookies and cache behind.
    – user286891
    Commented Jan 5, 2014 at 3:07
  • Settings > Privacy > Use Custom Setting for History > Select what you want :-) Tutorial: sevenforums.com/tutorials/…
    – megamorf
    Commented Jan 5, 2014 at 3:13
0

Use the Windows Easy Transfer feature to backup all settings of your current account, create a new user with the correct name, log into this account, restore the data from the Windows Easy Transfer and delete the old account.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .