Would like to delete this folder and file:
DEL %LOCALAPPDATA%\Google\Chrome\"User Data"\Default*.* /F /S
DEL %LOCALAPPDATA%\Google\Chrome\"User Data"\First
Trying to execute in a batch file they don't work as expected. (Default folder still there after running).
Anything is wrong?
These files are from Google Chrome, so it's a just way to reset the browser by command prompt.
Best Answer
The
Default
folder is still there after running the batch fileYou are missing a
\
afterDefault
.The following command should work:
But I don't want to be prompted
Add
/Q
to set "Quiet mode, do not give a Yes/No Prompt before deleting."But I want to remove the directories as well.
Use
rd
to remove the directoriesFurther Reading