Batch file to Delete Cookies

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a very simple batch file that looks like this
del /Q /F %USERPROFILE%\Cookies\*.tx
But when I run it I get the following error
The system cannot find the path specified
What am I doing wrong
 
=?Utf-8?B?V2lsbGlhbQ==?= said:
I have a very simple batch file that looks like this:
del /Q /F %USERPROFILE%\Cookies\*.txt
But when I run it I get the following error:
The system cannot find the path specified.
What am I doing wrong?

if %userprofile% contains spaces del woon't find the path.
Enclose the path:
del /Q /F "%USERPROFILE%\Cookies\*.txt"

HTH
 
William said:
I have a very simple batch file that looks like this:
del /Q /F %USERPROFILE%\Cookies\*.txt

You have to quote the path because USERPROFILE probably has space characters
in it.

del /Q /F "%USERPROFILE%\Cookies\*.txt"
 
Back
Top