|
-
April 24th, 2002, 05:13 AM
#10
Eeyore> Darn it Vernon! I keep forgetting that I an running Norton 7.0's NDOS. I have to remember to test these things out in MS-DOS. You gotta admit, mine is simpler than yours.

pompeyfan> Thats pretty impressive, not only is this something I can use, but I'm trying to learn a bit more about DOS, so I will study this for a while to figure the logic involved, so in the future I can come up with more involved batch files myself. I really appreciate this.
You're welcome, and Thanks. If you have any questions about how something works in there, feel free to ask away.
By the way, MS-DOS versions 5.00 through 6.22 came with a handy menu-driven "HELP" command. All of the basic DOS commands were covered with Syntax, Notes and Examples screens for most.
Don't know exactly what Operating System you're running but try typing "HELP" (sans the quotes) at the DOS prompt. If you get a "Bad command or filename" error you probably don't have it available. (I copied it from my MS-DOS 6.22 diskettes to the \WINDOWS\COMMAND folder on all of my Windows 95+ machines).
If you don't have HELP, you can see all of the same info beginning on this MS-DOS v6.22 Help: Command Reference page. (I converted all the HELP pages to HTML a few years ago and put them on the web).
pompeyfan> Tried that batch file last night Vernon, works like a beauty, thanks again. I will probably expand it over time to include a few extra file types.
You're welcome. Glad to hear it's working OK.
Here are a few more commands that are included in my personal CLEANUP.BAT:
Code:
if exist %winbootdir%\tempor~1\*.* deltree /y %winbootdir%\tempor~1\
if exist %winbootdir%\locals~1\tempor~1\*.* deltree /y %winbootdir%\locals~1\tempor~1\
if exist %winbootdir%\cookies\*.* deltree /y %winbootdir%\cookies\
if exist %winbootdir%\shelliconcache deltree /y %winbootdir%\shelliconcache
if exist %winbootdir%\ff*.tmp del %winbootdir%\ff*.tmp
for %%x in (temp tmp) do if exist %winbootdir%\%%x\*.* deltree /y %winbootdir%\%%x\
if not (%nscache%)==() deltree /y %nscache%\
for %%x in (%temp% %tmp%) do if exist %1\%%x\*.* deltree /y %1\%%x\
After these run, and then most of the commands discussed above, (but in a different way*), I then finish up with the following:
Code:
start /w scandskw /allfixeddisks /noninteractive /silent
defrag /all /f /detailed /noprompt
choice /c:. /t:.,5 /n "All processing complete. Closing DOS window in 5 seconds ..."
for %%x in (cls exit) do %%x
The reason for the "but in a different way" is because most of my machines have more than one partition (C:, D:, E:, etc.). Hence, I need some of the commands to run against all partitions.
Give us a holler if you have any questions ... 
[This message has been edited by Vernon Frazee (edited 04-24-2002).]
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|