Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ace's Total Cleaner
#11
One little bit of information:
---------------------------

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. I save to the cmd file extention for this reason.

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
Reply


Messages In This Thread
Ace's Total Cleaner - by AceInfinity - 07-20-2011, 07:01 PM
RE: Ace's Total Cleaner - by AceInfinity - 07-20-2011, 09:45 PM
RE: Ace's Total Cleaner - by Chef - 07-20-2011, 09:50 PM
RE: Ace's Total Cleaner - by AceInfinity - 07-20-2011, 10:07 PM
RE: Ace's Total Cleaner - by Chef - 07-20-2011, 10:09 PM
RE: Ace's Total Cleaner - by AceInfinity - 07-20-2011, 10:11 PM
RE: Ace's Total Cleaner - by AceInfinity - 07-20-2011, 11:53 PM
RE: Ace's Total Cleaner - by AceInfinity - 07-21-2011, 01:45 AM
RE: Ace's Total Cleaner - by BlackChaos - 07-21-2011, 01:51 AM
RE: Ace's Total Cleaner - by AceInfinity - 07-21-2011, 02:12 AM
RE: Ace's Total Cleaner - by AceInfinity - 07-21-2011, 12:35 PM
RE: Ace's Total Cleaner - by Akinova - 07-22-2011, 04:12 AM
RE: Ace's Total Cleaner - by AceInfinity - 07-22-2011, 05:26 AM
RE: Ace's Total Cleaner - by Akinova - 07-22-2011, 05:32 AM
RE: Ace's Total Cleaner - by AceInfinity - 07-22-2011, 05:56 AM
RE: Ace's Total Cleaner - by ₠o™ - 09-10-2011, 05:18 AM
RE: Ace's Total Cleaner - by BreShiE - 09-10-2011, 09:42 AM
RE: Ace's Total Cleaner - by AceInfinity - 09-10-2011, 02:58 PM
RE: Ace's Total Cleaner - by SaNƹ - 09-12-2011, 10:56 AM
RE: Ace's Total Cleaner - by BreShiE - 09-12-2011, 12:06 PM
RE: Ace's Total Cleaner - by AceInfinity - 09-12-2011, 01:26 PM
RE: Ace's Total Cleaner - by ₠o™ - 09-15-2011, 10:05 PM
RE: Ace's Total Cleaner - by Prince - 10-31-2011, 11:35 PM
RE: Ace's Total Cleaner - by prince_of_persia - 12-14-2011, 05:13 AM
RE: Ace's Total Cleaner - by AceInfinity - 12-29-2011, 03:58 AM
RE: Ace's Total Cleaner - by ISO - 01-14-2012, 06:04 AM
RE: Ace's Total Cleaner - by hackopz - 01-14-2012, 10:14 AM
RE: Ace's Total Cleaner - by AceInfinity - 01-14-2012, 10:18 AM
RE: Ace's Total Cleaner - by hackopz - 01-14-2012, 10:22 AM
RE: Ace's Total Cleaner - by AceInfinity - 01-14-2012, 10:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  TLF Diagnostic Tool - Created by Ace [Quick Preview] AceInfinity 0 860 08-26-2011, 06:06 PM
Last Post: AceInfinity
  PowerShell Hotfix List Script - Created by Ace AceInfinity 4 2,178 08-16-2011, 12:09 PM
Last Post: AceInfinity
  [SF Reviews] ATF Cleaner Skill 5 1,993 11-07-2010, 10:05 AM
Last Post: Herm1t

Forum Jump:


Users browsing this thread: 13 Guest(s)