Hey guys, I am trying to create a universal batch file so I won't have to keep changing the user profile. Replace "Username" but it needs to be universal.
Here is what I have
@echo off
set ChromeDir=C:\Users\Username\AppData\Local\Google\Chrome\User Data
del /q /s /f "%ChromeDir%"
rd /s /q "%ChromeDir%"
@echo off
set EdgeDir=c:\users\Username\appdata\local\microsoft\edge\user data
del /q /s /f "%EdgeDir%"
rd /s /q "%EdgeDir%"
@echo off
set VivaldiDir=c:\users\Username\appdata\local\Vivaldi\user data
del /q /s /f "%VivaldiDir%"
rd /s /q "%VivaldiDir%"
@echo off
set DataDir=C:\Users\Username\AppData\Local\Mozilla\Firefox\Profiles
del /q /s /f "%DataDir%"
rd /s /q "%DataDir%"
for /d %%x in (C:\Users\Username\AppData\Roaming\Mozilla\Firefox\Profiles\*) do del /q /s /f %%x\*sqlite
Universal Batch
Moderator: DosItHelp
Re: Universal Batch
Run SET in a cmd window and see what variables are already predefined.
Besides of %username% which obviously contains the user name, you'll find %localappdata% representing C:\Users\[Username]\AppData\Local, and %appdata% representing C:\Users\[Username]\AppData\Roaming.
Steffen
Besides of %username% which obviously contains the user name, you'll find %localappdata% representing C:\Users\[Username]\AppData\Local, and %appdata% representing C:\Users\[Username]\AppData\Roaming.
Steffen