Ace's Total Cleaner

Ace

Microsoft MVP
Joined
Jul 7, 2011
Messages
314
Reaction score
61
Features:
-Voice Audio playback messages
-Clears History
-Clears Cookies
-Clears Prefetch Folder
-Removes Temp Files
-Clears Recent Files
-Run As Admin Check - (Must run as admin to make use of the file deletion for temp files and all that.)

Newest Version:



Save this script with the ".cmd" file extension. Make sure it's formatted to ANSI encoding, if the script isn't displaying correctly for you. I use notepad++ and you shouldn't have any problems creating the file through that program.

Code:
@echo off
@color 0A
cls

title Ace's Total Cleaner
mode con: cols=45 lines=40

md %windir%\AceAdminTesting 2>NUL
if %errorlevel%==0 ( 
rd %windir%\AceAdminTesting 
goto Menu
) else (
echo Right click the file and run as administrator
echo.
pause
goto Exit
)

:Menu
cls

echo.
echo.      ################################
echo.      ##                            ##
echo.      ##   Ace Total Cleaner v1.0   ##
echo.      ##                            ##
echo.      ################################
echo.
echo.             -- Main Menu --
echo. 
echo.          1. Remove Temp Files
echo.          2. Clear Prefetch Folder
echo.          3. Delete Cookies
echo.          4. Clear Recent Files
echo.          5. Clear History
echo.          6. Exit CMD
echo.
echo.         -- System File Checker --
echo.
echo.          7. Scan Now
echo. 
echo.           -- Other Options --
echo.
echo.          A. Disk Defragmenter
echo.          B. Device Manager
echo.          C. Open DXDiag
echo.          D. Event Viewer
echo.          E. Group Policy Editor
echo.          F. Local Security Policy
echo.          G. Display System Information
echo.          H. User Accounts
echo.          I. NET Statistics (Information)
echo.          J. Performance Monitor
echo.          K. Registry Editor
echo.

:ChooseOpt
set /p userinp=    ^   Choose an option from the list above: 
set userinp=%userinp:~0,1%
if /i "%userinp%"=="1" goto TempFileRemoval
if /i "%userinp%"=="2" goto ClearPrefetch
if /i "%userinp%"=="3" goto DeleteCookies
if /i "%userinp%"=="4" goto ClearRecent
if /i "%userinp%"=="5" goto ClearHistory
if /i "%userinp%"=="6" goto Close
if /i "%userinp%"=="7" goto SFCScanNow
if /i "%userinp%"=="A" goto DiskDefrag
if /i "%userinp%"=="B" goto DeviceManager
if /i "%userinp%"=="C" goto DXDiag
if /i "%userinp%"=="D" goto EventViewer
if /i "%userinp%"=="E" goto GroupPolicyEditor
if /i "%userinp%"=="F" goto LocalSecurityPolicy
if /i "%userinp%"=="G" goto SystemInformation
if /i "%userinp%"=="H" goto UserAccounts
if /i "%userinp%"=="I" goto NETStat
if /i "%userinp%"=="J" goto PerformanceMonitor
if /i "%userinp%"=="K" goto RegEdit

echo.Please Try Again...
pause
cls
GOTO Menu

:TempFileRemoval
echo Cleaning Files...
start reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\EXplorer\Advanced /v ShowSuperHidden /t REG_DWORD /d 1 /f

DEL /a/f/q %systemroot%\system32\temp?.exe %systemroot%\svchost.exe %systemroot%\xcopy.exe %systemroot%\autorun.inf >nul 2>&1

DEL %systemroot%\Temp\*.* /Q /S
DEL "%USERPROFILE%\Local Settings\Temporary Internet Files\*.*" /Q /S /F
DEL "%USERPROFILE%\Local Settings\Temp\*.*" /Q /S /F
DEL "%USERPROFILE%\AppData\Local\Temp\*.*" /Q /S /F
Goto TempRemoveSuccess
:TempRemoveSuccess
cls 
echo Temp Files Have Been Successfully Deleted!
echo.
echo Please wait...
call :speak "Temp Files Have Been Successfully Deleted!"
pause
Goto Main
:speak
echo On Error Resume Next: CreateObject("SAPI.SpVoice").Speak %1 >"%~dp0vc.vbs"
"%~dp0vc.vbs" & del "%~dp0vc.vbs"
ping -n 5 127.0.0.1 >nul
goto Menu

:ClearPrefetch
echo Cleaning Files...
DEL %systemroot%\prefetch\*.* /Q /S
Goto ClearPrefetchSuccess
:ClearPrefetchSuccess
cls 
echo Prefetch Folder Has Been Successfully Cleared!
echo.
echo Please wait...
call :speak "Prefetch Folder Has Been Successfully Cleared!"
pause
Goto Main
:speak
echo On Error Resume Next: CreateObject("SAPI.SpVoice").Speak %1 >"%~dp0vc.vbs"
"%~dp0vc.vbs" & del "%~dp0vc.vbs"
ping -n 5 127.0.0.1 >nul
goto Menu

:DeleteCookies
echo Cleaning Files...
DEL "%USERPROFILE%\Cookies\*.*" /Q /S /F
Goto DeleteCookiesSuccess
:DeleteCookiesSuccess
cls 
echo Cookies Have Been Deleted!
echo.
echo Please wait...
call :speak "Cookies Have Been Deleted!"
pause
Goto Main
:speak
echo On Error Resume Next: CreateObject("SAPI.SpVoice").Speak %1 >"%~dp0vc.vbs"
"%~dp0vc.vbs" & del "%~dp0vc.vbs"
ping -n 5 127.0.0.1 >nul
goto Menu

:ClearRecent
echo Cleaning Files...
DEL "%USERPROFILE%\RECENT\*.*" /Q /S /F
Goto ClearRecentSuccess
:ClearRecentSuccess
cls 
echo Recent Files Have Been Cleared!
echo.
echo Please wait...
call :speak "Recent Files Have Been Cleared!"
pause
Goto Main
:speak
echo On Error Resume Next: CreateObject("SAPI.SpVoice").Speak %1 >"%~dp0vc.vbs"
"%~dp0vc.vbs" & del "%~dp0vc.vbs"
ping -n 5 127.0.0.1 >nul
goto Menu

:ClearHistory
echo Cleaning Files...
DEL "%USERPROFILE%\Local Settings\History\*.*" /Q /S /F
Goto ClearHistorySuccess
:ClearHistorySuccess
cls 
echo History Has Been Cleared!
echo.
echo Please wait...
call :speak "History Has Been Cleared!"
pause
Goto Main
:speak
echo On Error Resume Next: CreateObject("SAPI.SpVoice").Speak %1 >"%~dp0vc.vbs"
"%~dp0vc.vbs" & del "%~dp0vc.vbs"
ping -n 5 127.0.0.1 >nul
goto Menu

:DiskDefrag
cls
echo.
echo.           -- Defrag Options --
echo.
echo.     1. Defrag Analysis Only
echo.     2. Defrag All Drives
echo.     3. Defrag All Drives (Full Defrag)
echo.     4. Defrag Specified Drive
echo.     5. Go Back To Main Menu
echo.

:ChooseDefragOpt
set /p userinp=    ^   Choose A Defrag Option: 
set userinp=%userinp:~0,1%
if /i "%userinp%"=="1" goto DefragAnalysis
if /i "%userinp%"=="2" goto DefragAllDrives
if /i "%userinp%"=="3" goto DefragAllDrivesFull
if /i "%userinp%"=="4" goto DefragSpecifiedDrive
if /i "%userinp%"=="5" goto Menu

echo.Please Try Again...
pause
cls
GOTO DiskDefrag

:DefragAnalysis
set /p userinp=    ^   Specify A Drive Letter To Analyze (Ex: C): 
set userinp=%userinp:~0,1%
start defrag.exe %userinp%: -a
Goto DiskDefrag

:DefragAllDrives
start defrag.exe -c
Goto DiskDefrag

:DefragAllDrivesFull
start defrag.exe -c -w
Goto DiskDefrag

:DefragSpecifiedDrive
set /p userinp=    ^   Specify A Drive Letter To Analyze (Ex: C): 
set userinp=%userinp:~0,1%
start defrag.exe %userinp%:
Goto DiskDefrag

:DeviceManager
start devmgmt.msc
Goto Menu

:DXDiag
start dxdiag.exe
Goto Menu

:EventViewer
start eventvwr.msc
Goto Menu

:GroupPolicyEditor
start mmc.exe
Goto Menu

:LocalSecurityPolicy
start secpol.msc
Goto Menu

:SystemInformation
start msinfo32.exe
Goto Menu

:UserAccounts
start Netplwiz.exe
Goto Menu

:NETStat
start NETSTAT.EXE
start nslookup.exe
Goto Menu

:PerformanceMonitor
start perfmon.exe
Goto Menu

:SFCScanNow
start sfc.exe /scannow
Goto Menu

:RegEdit
start %SystemRoot%\regedit.exe
Goto Menu

:Close
cls
mode con: cols=40 lines=5
echo Created by Ace - TechLifeForum.net
echo.
echo Closing, Please Wait...
call :speak "Created by Ace, Please visit the website."
pause
goto Exit

:speak
echo On Error Resume Next: CreateObject("SAPI.SpVoice").Speak %1 >"%~dp0vc.vbs"
"%~dp0vc.vbs" & del "%~dp0vc.vbs"
ping -n 5 127.0.0.1 >nul

:Exit
exit
 

Attachments

Last edited:

TrainableMan

^ The World's First ^
Moderator
Joined
May 10, 2010
Messages
9,361
Reaction score
1,587
Does it have to be .cmd rather than .bat ?

BTW: You could actually zip that batch file and attach it.
 

davehc

Microsoft MVP
Joined
Jul 20, 2009
Messages
1,957
Reaction score
502
No it doesn't. You can name it a bat file if you like. (It is a bat file!)
 
Last edited:

Ace

Microsoft MVP
Joined
Jul 7, 2011
Messages
314
Reaction score
61
I'll attach it to the first post then so that people don't have to create it themselves :)
 
Joined
Mar 8, 2009
Messages
5,063
Reaction score
1,185
No it doesn't. You can name it a bat file if you like. (It is a bat file!)
Differences between .cmd and .bat execution in the Windows NT family
The only known difference between .cmd and .bat file execution is that in a .cmd file the ERRORLEVEL variable changes even on a successful command that is affected by Command Extensions (when Command Extensions are enabled), whereas in .bat files the ERRORLEVEL variable changes only upon errors.
P.S.
I have no idea what exactly that means. :(
 

Ace

Microsoft MVP
Joined
Jul 7, 2011
Messages
314
Reaction score
61
Here i'm testing for admin privileges:

Code:
md %windir%\AceAdminTesting 2>NUL
if %errorlevel%==0 ( 
rd %windir%\AceAdminTesting 
goto Menu
) else (
echo Right click the file and run as administrator
echo.
pause
goto Exit
)
%ErrorLevel% has to change if i'm able to create a folder in %windir% to be able to function properly with my logic statement there (if statement), which is why I save to cmd. When the %ErrorLevel% variable is equal to 1, then that means that something went wrong in trying to create that folder, and admin privileges are absent, but it must change on success, instead of after receiving that error.

Replace this bit of code in my script and you'll have the SFC scanner option with the feature of saving the log to a txt file:
Code:
:SFCScanNow
cls
echo System File Check in Progress. Please Wait
echo -- Results being created to log file
echo.
pause
sfc /scannow > SFC_Log.txt
Goto Menu
 
Last edited:

davehc

Microsoft MVP
Joined
Jul 20, 2009
Messages
1,957
Reaction score
502
I have my own established methods of cleaning, but wanted to try your hard work.
Not sure if I fully understand your explanation fo Cmd versus Bat, but it is not important. It did run the same with either ext for me, but I run as Administrator.

However, you might want to look at these items, which it does not clean:

Some left overs here.
C:\Users\Administrator\AppData\Local\Temp

All here:
C:\Users\Administrator\AppData\Local\Microsoft\Windows\Temporary Internet Files

All here:
C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Cookies

I did not test the utilities, as I could see they were links to progs already available in the start menu.
 

TrainableMan

^ The World's First ^
Moderator
Joined
May 10, 2010
Messages
9,361
Reaction score
1,587
Would you really want all your cookies deleted? What about the ones that remember your eBay or hotmail login id or online TV Guide settings, things like that?
 

davehc

Microsoft MVP
Joined
Jul 20, 2009
Messages
1,957
Reaction score
502
I guess "deleting cookies" is a personal view. I only do it on, approx, a monthly basis. I do have a program which does it all at one click, but still prefer to do it manually - possibly a little old -fashioned.
Just looking, I visit 9 places daily, which require a password. It is no a great problem for me to put those back in again once a month. It is still, of course, on Aces menu, an option, so once used by the uninitiated, perhaps they would not want to do it again?

P.S. Just had a look after playing with the deletion methods. Two of the sites mentioned apparently store their passwords on site - there was no need to retype them.

- Not forgetting (I think Firefox is even more efficient in this respect) , IE will do the basic clean up for you if you check the two options in the configuration.
 
Last edited:
Joined
Jun 17, 2011
Messages
21
Reaction score
2
looks a good ccleaner alternative.
I've been using ccleaner for quite sometimes already and would recommend it.
 

Digerati

Post Quinquagenarian
Microsoft MVP
Joined
Apr 7, 2010
Messages
1,094
Reaction score
277
The advantage of CCleaner is you can tell it what cookies to keep.

I see no reason to purge the prefetch. Doing so will surely slow your system down until it is rebuilt.
 

davehc

Microsoft MVP
Joined
Jul 20, 2009
Messages
1,957
Reaction score
502
I agree regarding the prefetch. To purge it has an immediate effect but by the end of a good days work it is pretty much back where it started.

Ccleaner is great. As I said previously, I really prefer to do my own, manual cleaning, which takes a little more care and time, admittedly. But Ccleaner, if you take the trouble to customise it, which few bother with, can just about be ordered to do most of the routine maintenance - cookies, temp files etc.
 

Digerati

Post Quinquagenarian
Microsoft MVP
Joined
Apr 7, 2010
Messages
1,094
Reaction score
277
But Ccleaner, if you take the trouble to customise it, which few bother with, can just about be ordered to do most of the routine maintenance - cookies, temp files etc.
It is actually very simple and not trouble at all. What I recommend is running CCleaner or Windows' own Disk Cleanup first to clear out all cookies, and start with a blank slate. Then visit your favorite sites, signing in with your login credentials. Then open CCleaner, select Options > Cookies and since the slate was recently cleared, it should be easy to see in the left panel those sites you regularly visit. Simply move them to the right side and CCleaner will never purge those.
 
Joined
Mar 8, 2009
Messages
5,063
Reaction score
1,185
I just did a fresh install of Windows 7 Professional. After installing all my programs and then going through the cleaning process. Thats using Disk Cleanup, CCleaner, removing Hibernation file. and making my Page File smaller. I still had two temp folders both containing 1.9GB of data a peace. One was in the root of windows and the other was in the root of the user folder. Thats 4GB of data in two temp folders that Windows or CCleaner neither one cleaned for me.
 

Digerati

Post Quinquagenarian
Microsoft MVP
Joined
Apr 7, 2010
Messages
1,094
Reaction score
277
Yeah, there are always some temp files left behind. Of course some are in use, so they cannot be deleted. Cleaning in Safe Mode is always more effective.

You can try one of the more aggressive cleaners, like TFC or get serious and enter del /q /f /s %temp%\* at a command prompt.

If not sure, rename the folders. I append the word delete and today's date to files and folders I am not sure are safe to delete. Then I use the computer. Next time I stumble on the renamed folder or file, I can see how long it has been and know if safe to delete. If something breaks, I simply rename again by deleting my appendage... :eek: err, by deleting the word delete and the date and I am back to the original name.
 
Joined
Mar 8, 2009
Messages
5,063
Reaction score
1,185
If not sure, rename the folders. I append the word delete and today's date to files and folders I am not sure are safe to delete. Then I use the computer. Next time I stumble on the renamed folder or file, I can see how long it has been and know if safe to delete. If something breaks, I simply rename again by deleting my appendage... :eek: err, by deleting the word delete and the date and I am back to the original name.
Thats good advise that I'm not sure I would ever pickup. :( When I start cleaning, everything in the temp folders are gone. After all, why else would they call it a temp folder if it wasn't safe to remove the contents?
 

davehc

Microsoft MVP
Joined
Jul 20, 2009
Messages
1,957
Reaction score
502
Try "Total Cleaner" Cliff. Usual precaution - make sure you have a bcackup of your OS.

http://www.totalcleaner.net/cleaner.php

It works fine. Still leaves that accursed temporary internet folder full, but that can be done easily by hand. It temporarily takes ownership of a coupled of the "locked" folders before cleaning.
If you know how to add lines to a bat file, it is also editable.
No need for the path to "userprofile\local settings" That is a junction folder and is only a duplication of the main user folders.
 

Digerati

Post Quinquagenarian
Microsoft MVP
Joined
Apr 7, 2010
Messages
1,094
Reaction score
277
After all, why else would they call it a temp folder if it wasn't safe to remove the contents?
Again, many temp files, and consequently the folders that contain them, cannot be deleted because one or more files in that folder is being used. Even in Safe Mode, some temp files are locked open, and cannot be removed.

I also note that many files cannot be deleted until the next boot. Even CCleaner does this for some files, index.dat are perfect example. This is a primary reason the first reboot after a thorough cleaning can take a long time, the boot process is put on hold to delete marked files, BEFORE, any OS can get hooks in the process. MoveOnBoot is a program to delete stubborn files and folders that works on that principle. You might try it, but don't be surprised if you look and they've returned.

Thats good advise that I'm not sure I would ever pickup. When I start cleaning, everything in the temp folders are gone.
If it is in the temp folder, I don't care either. I know if it was needed, I either would not be allowed to delete it, or it would be recreated again at next boot, or next malware scan, or next time I opened whatever created it.

I use that trick for files and folders I am not sure are safe to delete. If they are in the temp folder, I'm sure.
 

Ace

Microsoft MVP
Joined
Jul 7, 2011
Messages
314
Reaction score
61
Would you really want all your cookies deleted? What about the ones that remember your eBay or hotmail login id or online TV Guide settings, things like that?
I don't like saved passwords, they aren't 100% secure so I never store my passwords anywhere on my browser or through cookies.

Thanks for the information dave :) I can fix the script no problem, I wrote it up quick and didn't pay much attention to getting all of the temp folders. Some people say to delete prefetch, and I was told by an HP tech that I should lol. I just laughed though, but I provided the option in there for people that do. Prefetch folder gets cleaned regularly anyway without the need to clear it yourself, even in Vista.
 

Ace

Microsoft MVP
Joined
Jul 7, 2011
Messages
314
Reaction score
61
looks a good ccleaner alternative.
I've been using ccleaner for quite sometimes already and would recommend it.
I still would recommend CCleaner, it's a great tool, i've been using it for a few years now.

Here's an updated script anyway:
Code:
@echo off
@color 0B
cls

title Ace's Total Cleaner
mode con: cols=45 lines=40

md %windir%\AceAdminTesting 2>NUL
if %errorlevel%==0 ( 
rd %windir%\AceAdminTesting 
goto Menu
) else (
echo Right click the file and run as administrator
echo.
pause
goto Exit
)

:Menu
cls

echo.
echo.      ################################
echo.      ##                            ##
echo.      ##   Ace Total Cleaner v1.0   ##
echo.      ##                            ##
echo.      ################################
echo.
echo.             -- Main Menu --
echo. 
echo.          1. Remove Temp Files
echo.          2. Clear Prefetch Folder
echo.          3. Delete Cookies
echo.          4. Clear Recent Files
echo.          5. Clear History
echo.          6. Exit CMD
echo.
echo.         -- System File Checker --
echo.
echo.          7. Scan Now
echo. 
echo.           -- Other Options --
echo.
echo.          A. Disk Defragmenter
echo.          B. Device Manager
echo.          C. Open DXDiag
echo.          D. Event Viewer
echo.          E. Group Policy Editor
echo.          F. Local Security Policy
echo.          G. Display System Information
echo.          H. User Accounts
echo.          I. NET Statistics (Information)
echo.          J. Performance Monitor
echo.          K. Registry Editor
echo.

:ChooseOpt
set /p userinp=    ^   Choose an option from the list above: 
set userinp=%userinp:~0,1%
if /i "%userinp%"=="1" goto TempFileRemoval
if /i "%userinp%"=="2" goto ClearPrefetch
if /i "%userinp%"=="3" goto DeleteCookies
if /i "%userinp%"=="4" goto ClearRecent
if /i "%userinp%"=="5" goto ClearHistory
if /i "%userinp%"=="6" goto Close
if /i "%userinp%"=="7" goto SFCScanNow
if /i "%userinp%"=="A" goto DiskDefrag
if /i "%userinp%"=="B" goto DeviceManager
if /i "%userinp%"=="C" goto DXDiag
if /i "%userinp%"=="D" goto EventViewer
if /i "%userinp%"=="E" goto GroupPolicyEditor
if /i "%userinp%"=="F" goto LocalSecurityPolicy
if /i "%userinp%"=="G" goto SystemInformation
if /i "%userinp%"=="H" goto UserAccounts
if /i "%userinp%"=="I" goto NETStat
if /i "%userinp%"=="J" goto PerformanceMonitor
if /i "%userinp%"=="K" goto RegEdit

echo.Please Try Again...
pause
cls
GOTO Menu

:TempFileRemoval
echo Cleaning Files...
start reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\EXplorer\Advanced /v ShowSuperHidden /t REG_DWORD /d 1 /f

DEL /a/f/q %systemroot%\system32\temp?.exe %systemroot%\svchost.exe %systemroot%\xcopy.exe %systemroot%\autorun.inf >nul 2>&1

DEL %systemroot%\Temp\*.* /Q /S
DEL "%USERPROFILE%\Local Settings\Temporary Internet Files\*.*" /Q /S /F
DEL "%USERPROFILE%\Local Settings\Temp\*.*" /Q /S /F
DEL "%USERPROFILE%\AppData\Local\Temp\*.*" /Q /S /F
DEL "%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*" /Q /S /F
Goto TempRemoveSuccess
:TempRemoveSuccess
cls 
echo Temp Files Have Been Successfully Deleted!
echo.
echo Please wait...
call :speak "Temp Files Have Been Successfully Deleted!"
pause
Goto Main
:speak
echo On Error Resume Next: CreateObject("SAPI.SpVoice").Speak %1 >"%~dp0vc.vbs"
"%~dp0vc.vbs" & del "%~dp0vc.vbs"
ping -n 5 127.0.0.1 >nul
goto Menu

:ClearPrefetch
echo Cleaning Files...
DEL %systemroot%\prefetch\*.* /Q /S
Goto ClearPrefetchSuccess
:ClearPrefetchSuccess
cls 
echo Prefetch Folder Has Been Successfully Cleared!
echo.
echo Please wait...
call :speak "Prefetch Folder Has Been Successfully Cleared!"
pause
Goto Main
:speak
echo On Error Resume Next: CreateObject("SAPI.SpVoice").Speak %1 >"%~dp0vc.vbs"
"%~dp0vc.vbs" & del "%~dp0vc.vbs"
ping -n 5 127.0.0.1 >nul
goto Menu

:DeleteCookies
echo Cleaning Files...
DEL "%USERPROFILE%\Cookies\*.*" /Q /S /F
DEL "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Cookies\*.*" /Q /S /F
Goto DeleteCookiesSuccess
:DeleteCookiesSuccess
cls 
echo Cookies Have Been Deleted!
echo.
echo Please wait...
call :speak "Cookies Have Been Deleted!"
pause
Goto Main
:speak
echo On Error Resume Next: CreateObject("SAPI.SpVoice").Speak %1 >"%~dp0vc.vbs"
"%~dp0vc.vbs" & del "%~dp0vc.vbs"
ping -n 5 127.0.0.1 >nul
goto Menu

:ClearRecent
echo Cleaning Files...
DEL "%USERPROFILE%\RECENT\*.*" /Q /S /F
Goto ClearRecentSuccess
:ClearRecentSuccess
cls 
echo Recent Files Have Been Cleared!
echo.
echo Please wait...
call :speak "Recent Files Have Been Cleared!"
pause
Goto Main
:speak
echo On Error Resume Next: CreateObject("SAPI.SpVoice").Speak %1 >"%~dp0vc.vbs"
"%~dp0vc.vbs" & del "%~dp0vc.vbs"
ping -n 5 127.0.0.1 >nul
goto Menu

:ClearHistory
echo Cleaning Files...
DEL "%USERPROFILE%\Local Settings\History\*.*" /Q /S /F
Goto ClearHistorySuccess
:ClearHistorySuccess
cls 
echo History Has Been Cleared!
echo.
echo Please wait...
call :speak "History Has Been Cleared!"
pause
Goto Main
:speak
echo On Error Resume Next: CreateObject("SAPI.SpVoice").Speak %1 >"%~dp0vc.vbs"
"%~dp0vc.vbs" & del "%~dp0vc.vbs"
ping -n 5 127.0.0.1 >nul
goto Menu

:DiskDefrag
cls
echo.
echo.           -- Defrag Options --
echo.
echo.     1. Defrag Analysis Only
echo.     2. Defrag All Drives
echo.     3. Defrag All Drives (Full Defrag)
echo.     4. Defrag Specified Drive
echo.     5. Go Back To Main Menu
echo.

:ChooseDefragOpt
set /p userinp=    ^   Choose A Defrag Option: 
set userinp=%userinp:~0,1%
if /i "%userinp%"=="1" goto DefragAnalysis
if /i "%userinp%"=="2" goto DefragAllDrives
if /i "%userinp%"=="3" goto DefragAllDrivesFull
if /i "%userinp%"=="4" goto DefragSpecifiedDrive
if /i "%userinp%"=="5" goto Menu

echo.Please Try Again...
pause
cls
GOTO DiskDefrag

:DefragAnalysis
set /p userinp=    ^   Specify A Drive Letter To Analyze (Ex: C): 
set userinp=%userinp:~0,1%
start defrag.exe %userinp%: -a
Goto DiskDefrag

:DefragAllDrives
start defrag.exe -c
Goto DiskDefrag

:DefragAllDrivesFull
start defrag.exe -c -w
Goto DiskDefrag

:DefragSpecifiedDrive
set /p userinp=    ^   Specify A Drive Letter To Analyze (Ex: C): 
set userinp=%userinp:~0,1%
start defrag.exe %userinp%:
Goto DiskDefrag

:DeviceManager
start devmgmt.msc
Goto Menu

:DXDiag
start dxdiag.exe
Goto Menu

:EventViewer
start eventvwr.msc
Goto Menu

:GroupPolicyEditor
start mmc.exe
Goto Menu

:LocalSecurityPolicy
start secpol.msc
Goto Menu

:SystemInformation
start msinfo32.exe
Goto Menu

:UserAccounts
start Netplwiz.exe
Goto Menu

:NETStat
start NETSTAT.EXE
start nslookup.exe
Goto Menu

:PerformanceMonitor
start perfmon.exe
Goto Menu

:SFCScanNow
cls
echo System File Check in Progress. Please Wait
echo -- Results being created to log file
echo.
pause
start sfc /scannow > SFC_Log.txt pause
Goto Menu

:RegEdit
start %SystemRoot%\regedit.exe
Goto Menu

:Close
cls
mode con: cols=40 lines=5
echo Created by Ace - TechLifeForum.net
echo.
echo Closing, Please Wait...
call :speak "Created by Ace, Please visit the website."
pause
goto Exit

:speak
echo On Error Resume Next: CreateObject("SAPI.SpVoice").Speak %1 >"%~dp0vc.vbs"
"%~dp0vc.vbs" & del "%~dp0vc.vbs"
ping -n 5 127.0.0.1 >nul

:Exit
exit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top