Computing.Net > Forums > Disk Operating System > rem tshooter when trying to run commands in auto.exe to delete *.tmp files and cookies

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

rem tshooter when trying to run commands in auto.exe to delete *.tmp files and cookies

Reply to Message Icon

Name: Pete
Date: December 26, 2000 at 10:15:27 Pacific
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: dEAtH DwArf
Date: December 26, 2000 at 12:54:19 Pacific
Reply:

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.


0

Response Number 2
Name: Pete
Date: December 26, 2000 at 18:12:26 Pacific
Reply:

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


0

Response Number 3
Name: Ronin
Date: December 26, 2000 at 20:26:13 Pacific
Reply:

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 blah

a varient would be
if exist *.tmp del *.tmp

However, 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.


0

Response Number 4
Name: KMCS
Date: January 1, 2001 at 18:02:10 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


backup Command-Line



Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: rem tshooter when trying to run commands in auto.exe to delete *.tmp files and cookies

Run command in dos? www.computing.net/answers/dos/run-command-in-dos/1113.html

Dos freezes when i try to run any *.exe www.computing.net/answers/dos/dos-freezes-when-i-try-to-run-any-exe-/9011.html

trying to run dos games in windows www.computing.net/answers/dos/trying-to-run-dos-games-in-windows/3378.html