Computing.Net > Forums > Windows 95/98 > batch file to clean system

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.

batch file to clean system

Reply to Message Icon

Name: Johnoh
Date: December 14, 2002 at 06:04:26 Pacific
OS: win98se
CPU/Ram: athlon 1.4g, 512mb
Comment:

I use the following batch file to clean my system.
-----------------
@ECHO OFF
START taskinfo kill persfw.exe
START /W C:\Progra~1\Diskcl~1\DClean.exe -q:clean
START /W c:\windows\scandskw.exe c: /ALL /noninteractive /silent
START c:\windows\defrag.exe /all /noprompt /detailed
START taskinfo fshutdown

Lately the final line though, the one that forces a shutdown, has been executing before the previous line, the defrag, has finished. The defrag starts analyzing the hard disk and then before it even starts moving clusters the system shuts down. Does anybody know what I can do to make sure that this shutdown line waits for the previous line to finish before it executes?



Sponsored Link
Ads by Google

Response Number 1
Name: The Count
Date: December 14, 2002 at 06:29:12 Pacific
Reply:

Simple, place pause between the two lines.

Hope this answers your question.

Greetz from The Netherlands,
The Count


0

Response Number 2
Name: WhitPhil
Date: December 14, 2002 at 06:38:23 Pacific
Reply:

Place the /W switch on all the Start lines.


0

Response Number 3
Name: Johnoh
Date: December 14, 2002 at 07:50:47 Pacific
Reply:

Thanks. The /W switch fixed it.


0

Response Number 4
Name: Normande
Date: December 14, 2002 at 09:50:34 Pacific
Reply:

Will this batch file work on Win XP Pro or just Win98 ? If it does can someone tell me what to change in Johnoh's file to make it work ? BTW, good job Johnoh! Thank you.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: batch file to clean system

Batch file to check os www.computing.net/answers/windows-95/batch-file-to-check-os/73326.html

BATCH FILE TO LAUNCH DIAL-UP CONNECTION www.computing.net/answers/windows-95/batch-file-to-launch-dialup-connection/102177.html

Batch file to edit registry in 98 www.computing.net/answers/windows-95/batch-file-to-edit-registry-in-98/55863.html