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
#12
Dude it is damn nice program... It might come handy.
i would like to see the proper exe version with some more features Smile
Don't try to act smart... i am smarter than you...Ninja
Reply
#13
(07-22-2011, 04:12 AM)Akinova™ Wrote: Dude it is damn nice program... It might come handy.
i would like to see the proper exe version with some more features Smile

exe version? this isn't a program, it's just a script
Reply
#14
I know dude what i trying to say is.. it would be good if you convert your script to a executable file.
Don't try to act smart... i am smarter than you...Ninja
Reply
#15
Personally i'd just stick to the script. An executable for this stuff would be pretty slow
Reply
#16
Good work mate. Thanks for sharing with us.
Reply
#17
Ace you should make this Multi OS. Big Grin

You know why I'm saying this ;)
Reply
#18
I can't run this in Mac, Linux, they don't use batch. Linux has bash, but I can make it multi OS between windows NT versions.

I could check if it's running windows NT with something like this using the %OS% variable I believe. It might be wrong, but I haven't tested it, just something I came up with
Code:
if not "%OS%"=="Windows_NT" goto somewhere

or i'd just use EOF to exit.
Reply
#19
This looks like a really helpful tool Ace. Nice job on making it. I hope to see more features in the future ;)
Reply
#20
Didn't you post this already Ace? I saw it last time, it's really cool. Big Grin
Reply


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

Forum Jump:


Users browsing this thread: 2 Guest(s)