There are so many folder locking software's available but they need to
install on PC they are not portable & so we cannot secure data in USB
drive & our data is not secure in USB drives if we lost USB drive or
it's stolen so the confidential data may be loose, but don't worry after
reading this article you will be able to create your own portable locker
which you can use in the USB drives also...
Ok lets start creating Portable Locker
copy the code below
cls
@ECHO OFF
title "PORTABLE LOCKER Askmetricks.blogspot.com"
if EXIST "Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}" 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 "Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}"
attrib +h +s "Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== yourpwd goto FAIL
attrib -h -s "Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}"
ren "Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
install on PC they are not portable & so we cannot secure data in USB
drive & our data is not secure in USB drives if we lost USB drive or
it's stolen so the confidential data may be loose, but don't worry after
reading this article you will be able to create your own portable locker
which you can use in the USB drives also...
Ok lets start creating Portable Locker
copy the code below
cls
@ECHO OFF
title "PORTABLE LOCKER Askmetricks.blogspot.com"
if EXIST "Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}" 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 "Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}"
attrib +h +s "Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== yourpwd goto FAIL
attrib -h -s "Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}"
ren "Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
ok now open notepad & paste the code into it & save as Portable
Locker.bat
How to use it ?
when you will open portable locker first time it will create folder
named Locker
named Locker
now you can save your confidential data into it...
To lock the folder run portable locker.bat It will ask you for lock
press Y for yes & N for No
press Y for yes & N for No
To Unlock the locker folder run portable locker.bat & type your
pwd & press enter..
pwd & press enter..
Notes:
You can change the password by replacing yourpwd from the script
to any desire password..
to any desire password..
That's It ,Stay Secure...
Work Smarter...
0 comments :
Post a Comment