Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have tried writing commands in auto.exebatt to delete *.tmp files and cookies when I reboot. I haven't had any success.The line rem tshooter comes up and I think over rides the commands I entered.I am using win98se. Could anyone explain what I need to do? Help please any comments or suggestions greatly appreciated.Pete

anything on a line that begins with rem is ignored by the dos shell. It basically means a REMark, or comment in a programming context.
The command I use to delete files is DEL, although you can use ERASE - they both to the same job. For example del foo.o deletes the files name foo.o. If del if followed by only a directoy name, it means remove all files in that directory, leaving all subdirectories in that directory alone. If del is followed by a wildcard argument like in the form del *.* means delete all files in the current drirectory. Use del /? to get options for the command.

Thank you Death Dwarf.I saw your next posting and concure that it would be benificial to myself and others to expand our knowledge of the mother system.Of which I recall very little.I started with dos and found it cumbersome as a 7th grader.Then tried Appleworks for a couple years till I lost interest in it and my startup disc became useless.Then I got on the internet with windows 95 and a p1/1gig setup on a dial up connection.And it too was awkward and slow. Now I am online with a fairly fast pc with a fairly large hard drive(Still on a dial up) But perhaps with some time with the basics can make it pleasureable.I still haven't figured out what I am missing here.I have tried a #of well thought out commands. But I think I need to find this tshooter and figure out a way around that.I might try something like: ECHO This is test 2>filename.ext that would be a little different approach? Thanks again Pete

Pete, your problem might already be solved, but I've gotten rid of those files you mention, and more by adding the following lines to my autoexec.bat file.
@echo off
c:
cd\windows\cookies
del *.txt
cd\windows
del *.tmp
blah blaha varient would be
if exist *.tmp del *.tmpHowever, another approach is to create a seperate batch file, and call it from the autoexec.bat. This will allow you to drag the seperate batch file into the task bar (or whatever it's called), and with one mouse click you can delete those files at any time. This prevents other stuff that is loaded in the autoexec.bat file from being run twice.

To make it easy, CleanWin will do it all for you...go to www.kmcsonline.com to get it. CleanWin's main component that does the cleaning is actually a DOS program! Goes to show the power of DOS. Later

![]() |
backup
|
Command-Line
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |