Friday, November 17, 2017
Thursday, October 19, 2017
How To Make a Temp Cleaner
How To Make a Temp Cleaner
Copy the following to Notepad.
Then add the file name as .bat or .cmd and save it, like cleaner.bat
Copy to Notepad
TITLE FASTCLEAN
COLOR 00
ECHO OFF
CLS
ATTRIB "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Recent\*" -H -S
DEL "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Recent\*" /F /S /Q
RD "%TMP%" /S /Q
DEL "%TMP%\*" /F /S /Q
ATTRIB "%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*" -H -S
DEL "%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*" /F /S /Q
TITLE FASTCLEAN
COLOR 00
ECHO OFF
CLS
ATTRIB "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Recent\*" -H -S
DEL "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Recent\*" /F /S /Q
RD "%TMP%" /S /Q
DEL "%TMP%\*" /F /S /Q
ATTRIB "%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*" -H -S
DEL "%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*" /F /S /Q
How to create a folder locker by using cmd
Copy the following to Notepad.
Then add the file name as .bat and save it, like folder locker.bat
cls
@ECHO OFF
title Folder Locker
if EXIST
"Locker.{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker
"Locker.{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}"
echo Folder locked
goto End
:UNLOCK
@echo off
set "psCommand=powershell -Command "$pword =
read-host 'Enter the Password to unlock folder' -AsSecureString ; ^
$BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword);
^
[System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)""
for /f "usebackq delims=" %%p in (`%psCommand%`) do
set password=%%p
if not "%password%"=="12345" goto Fail
ren
"Locker.{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End