Click to See Complete Forum and Search --> : Batch files for Dos
Ducati
September 27th, 2005, 07:17 PM
I need some help with some coding.
How do I write a code to delete all of the cookies of a currently logged on user on the computer? And prompt a message saying it has been deleted at the end of the job?
And how do I search for all files ending in *.txt in drve C and save the search as a text file to a folder?
Thanks.
PeejAvery
September 27th, 2005, 09:49 PM
According to your title I assume you want these to be DOS. The first can't be done in DOS, the second can.
How do I write a code to delete all of the cookies of a currently logged on user on the computer? And prompt a message saying it has been deleted at the end of the job?
You should look into Visual Basic or VBScript for this.
And how do I search for all files ending in *.txt in drve C and save the search as a text file to a folder?
cd\
dir /s /b *.txt > c:\searched.txt
Ducati
September 29th, 2005, 10:01 AM
In Command prompt, how do I use redirection to create a text file from the Help command?
I want to list all of the DOS commands with a brief description of each command.
Thanks.
PeejAvery
September 29th, 2005, 11:07 AM
The ">" sign copies all data outputted to a text file.
Example...
help > help.txt
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.