Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

created a .bat file in ME it's not working

May 31, 2005 4:17PM PDT

my wife wrote a bat file that worked fine on her machine. she created it on her w98, tested it on a fake folder. it worked. she put it in my machine which runs on wME. it does not work.

the .bat file is in c:\windows and this is her file,,, echo on
cd \windows\applic~1\mozilla\firefox\profiles\default.xw9
del cookies-*.txt

she's no slouch in programming, and did it professionally before she retired. i do not know if she changed anything, or HAD to change anything, to make it run in ME.

any help? thanks

Discussion is locked

- Collapse -
to update more accurately
May 31, 2005 7:44PM PDT

the first time, about 70% of the files were deleted.
on ensuing reboots, no files were deleted. after the computer had been on for about 2 hours, i checked the folder again, and 60% of the files had been deleted

- Collapse -
Just one of the wonderful ...
May 31, 2005 9:04PM PDT

Windows ME issues.

Did you try these commands in a command window?

- Collapse -
she did everything in dos
May 31, 2005 10:01PM PDT

if you mean did she test on my machine in command window,,,,,,,,,no.

- Collapse -
Here's the bug I noted years ago.
May 31, 2005 10:05PM PDT

The Del * command seems to fail (ie not delete all) on directories with 10s of thousands of files.

You can ask someone to fix it, but that is unlikely.

Bob

- Collapse -
be aware that as shown...
Jun 4, 2005 10:46AM PDT
echo on
cd \windows\applic~1\mozilla\firefox\profiles\default.xw9
del cookies-*.txt


ONLY files named cookies-1.txt or cookies-mine.txt are going to get deleted. (cookie-1.txt won't because it doesn't meet the specified criteria for deletion)

If you want all text files deleted in that same directory (your line 2 of the batch file), juct change line 3 to read:
del *.txt

What files EXACTLY are you trying to delete?