Advertisement

11.26.2007 at 08:03PM PST, ID: 22984207 | Points: 500
[x]
Attachment Details

Need a bat file to prep Windows XP Systems for Virus Scans

Asked by hemightbeagiant in Windows Batch Scripting, Microsoft Windows Operating Systems, Microsoft Operating Systems

Tags: , ,

Hello Experts,

The following bat file is used to remove temp files and prep a hard drive to be scanned for viruses.  I was hoping that it could be looked at to verify that all temp directories are being cleared and automated if possible.
I remember writing a bat file that would clear the contents of a folder automatically but my memory escapes me as it was a long time ago.  

Thank youStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
@echo off
echo This batch file will prepare the computer for a virus scan.
pause
 
echo Remove unnecessary programs
rem Opens add/remove programs
pause
%systemroot%\system32\appwiz.cpl
echo Programs cleaned
 
cls
 
echo Remove unnecessary startup files
rem Starts msconfig
pause
cd ..
cd "Delete Me"
autoruns.exe
c:
cd %systemroot%\pchealth\helpctr\binaries
msconfig.exe
 
cd %systemroot%\prefetch
del *.*
pause
 
cls
echo Removing temporary files.
explorer %systemroot%\temp
 
explorer C:\Documents and Settings\Administrator\Local Settings\Temp
 
explorer C:\Documents and Settings\Administrator\local settings\temporary internet files\content.ie5
 
explorer C:\Documents and Settings\default user\Local Settings\Temp
 
explorer C:\Documents and Settings\default user\local settings\temporary internet files\content.ie5
 
explorer %userprofile%\Local Settings\Temp
 
explorer %userprofile%\local settings\temporary internet files\content.ie5
 
echo Done Deleting Files?
pause
 
echo Empty the Recycle Bin
pause
 
cls
echo Disable System Restore.
rem Executes clearing of system restore. 
%systemroot%\system32\sysdm.cpl
cls
echo System restore cleared.
 
echo Your computer is now ready for a virus scan.
pause
[+][-]11.27.2007 at 02:04AM PST, ID: 20356680

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.27.2007 at 02:13AM PST, ID: 20356711

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.27.2007 at 10:31AM PST, ID: 20360104

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.28.2007 at 02:46AM PST, ID: 20364481

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.28.2007 at 02:48AM PST, ID: 20364493

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.10.2008 at 01:28AM PST, ID: 20625950

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.10.2008 at 01:31AM PST, ID: 20625961

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628