DO NOT TRY THIS AT HOME : Text files and message bases are for INFORMATIONAL PURPOSES ONLY. Do not undertake any project based upon any information obtained from this or any other web site.We are not responsible for, nor do we assume any liability for, damages resulting from the use of any information on this site.
Yes i have posted this before but I placed it in a directory that i didn\’t want it in so here it is again for all of those you have yet to see it.
Ok, this is a batch program that I wrote to hide folders/files and applications and lock them away. For those of you who don't know, a batch file is a file containing codes and commands that are recognized and run by command prompt, or on older computers ms-dos. This application was written specifically for Windows XP and NT however it should work on almost all windows operating systems.
What I have provided you in this egg is the code that makes up the program. In order to make the program work you need to perform a few simple tasks.
1. Copy the code listed below starting at the line containing "@title Lock and Hide---Written by Nath5" and ending at the line containing "exit".
2. Then, create an empty text document using either note-pad or word-pad and paste the code into it.
3. Once the code has been pasted into the text document go to file, save as, and save it as ("whatever you want to call it".bat) for example you could call it Lock&Hide.bat. The .bat extension is what allows for the program to be run.
4. Now to run the program all you have to do is go to where you saved it and click on it. Follow the instructions on each screen, read carefully, and enjoy.
If you have a problem with the program please leave a comment, and I shall get back to you with the solution, or you can email me at Nath168_Nath168@yahoo.com.
Here is the code.
@title Lock and Hide---Written by Nath5
@color 2E
@echo Program Written By Nath5, The author of this program takes no responsibilities
@echo for any consequences as a result of any misuse of this application.
@echo.
@echo.
@echo \"This program was written for the purpose of hiding
@echo and locking files that you wish to keep from prying eyes.\"
@echo.
@echo.
@echo.
@echo **Hit enter to continue!**
@echo.
@echo.
@echo.
@echo.
@pause
@cls
:A
@cls
@echo.
@echo.
@echo If you are a new user you will need to create the folder.
@echo After it has been created, you will be able to return to the
@echo main menu for more options.
@echo.
@echo If you have already created the folder, continue to the main menu.
@echo.
@echo.
@echo.
@echo *****************************
@echo *****************************
@echo * 1. Main Menu *
@echo * 2. Create Folder *
@echo *****************************
@echo *****************************
@echo.
@echo.
@echo.
@echo Please type the number that corresponds to the action you would like to occur.
@echo.
@echo.
@echo.
@set /P w=[promtstring]
@IF /I %w% equ 2 goto 3
@IF /I %w% equ 1 goto C
:C
@cls
@echo.
@echo.
@echo.
@echo ********************************
@echo ********************************
@echo * 1. Lock *
@echo * 2. Unlock / Open *
@echo * 3. Delete *
@echo * 4. Leave Unlocked *
@echo * 5. Create Dir File Listing *
@echo * 6. Exit *
@echo * 7. Back 1 Menu *
@echo ********************************
@echo ********************************
@echo.
@echo. !!\"Leave unlocked\" only works if you have already unlocked the folder.!!
@echo.
@echo Please type the number that corresponds to the action you would like to occur.
@echo.
@echo.
@echo.
@set /P w=[promtstring]
@IF /I %w% equ 1 goto 6
@IF /I %w% equ 2 goto 2
@IF /I %w% equ 3 goto 8
@IF /I %w% equ 7 goto A
@IF /I %w% equ 5 goto 7
@IF /I %w% equ 4 goto D
@IF /I %w% equ 6 goto B
:2
@cd C:\\
@cacls \"C:\\System Volume Information\" /E /G USERS:F
@cd C:\\System Volume Information\\_restore***
@cacls \"~RPD123\" /E /G Users:F
@compact /U /A ~RPD123
@cls
@echo Please edit folder and then close it and return to this window to relock.
@echo Hit enter to open folder.
@echo.
@echo.
@echo.
@pause
goto 5
:3
@cd C:\\
@cacls \"C:\\System Volume Information\" /E /G USERS:F
@cd C:\\System Volume Information
@cd C:\\System Volume Information\\_restore***
@md ~RPD123
@compact /U /A ~RPD123
@attrib +H ~RPD123
@cls
@echo.
@echo.
@echo Hitting enter will open the folder. Please move all folders and files to be
@echo locked and hidden into it at this point.
@echo.
@echo Once you are finished moving your files and folders, return to this window for
@echo more instructions and to lock and hide your content. Remember to close the
@echo folder when you are done moving the content in.
@echo.
@echo.
@echo.
@pause
:5
@cls
@start ~RPD123
@echo.
@echo.
@echo Don't forget, the folder is currently unlocked. Remember
@echo to lock it at the main menu.
@echo.
@echo.
@echo.
@echo ******************************
@echo ******************************
@echo * 1. Re-open folder *
@echo * 2. Return to Main Menu *
@echo ******************************
@echo ******************************
@echo.
@echo.
@echo.
@echo Please type the number that corresponds to the action you would like to occur.
@echo.
@echo.
@echo.
@set /P w=[promtstring]
@IF /I %w% equ 1 goto 5
@IF /I %w% equ 2 goto C
:6
@cls
@echo.
@echo.
@echo Hit enter to finish locking and hiding your folders/files.
@echo.
@echo.
@echo.
@Pause
@cd C:\\System Volume Information\\_restore***
@compact /C /A ~RPD123
@attrib +H ~RPD123
@compact /C /A ~RPD123
@cacls \"~RPD123\" /E /P Users:N
@cacls \"C:\\System Volume Information\" /E /P Users:N
@cls
@echo.
@echo.
@echo Your folders and files are now locked away; to unlock and access them,
@echo return to the main menu and unlock them.
@echo.
@echo.
@echo.
@echo *****************************
@echo *****************************
@echo * 1. Return to Main menu *
@echo * 2. Exit *
@echo *****************************
@echo *****************************
@echo.
@echo.
@echo.
@echo Please type the number that corresponds to the action you would like to occur.
@echo.
@echo.
@echo.
@set /P w=[promtstring]
@IF /I %w% equ 1 goto C
@IF /I %w% equ 2 goto B
@Pause
@ goto B
:7
@cls
@echo.
@echo.
@echo This feature will save a list of all the files/folders currently in
@echo the hidden folder to your desktop for viewing.
@echo.
@echo Remember that this text file is not locked and will be visible to all users.
@echo It is best to create it, look at it, and then delete it.
@echo.
@echo.
@echo.
@echo ******************************
@echo ******************************
@echo * 1. Create Listing *
@echo * 2. Open Existing Listing *
@echo * 3. Update Exising Listing*
@echo * 4. Delete Listing *
@echo * 5. Return to Main Menu *
@echo ******************************
@echo ******************************
@echo.
@echo.
@echo.
@echo Please type the number that corresponds to the action you would like to occur.
@echo.
@echo.
@echo.
@set /P w=[promtstring]
@IF /I %w% equ 1 goto P
@IF /I %w% equ 2 goto J
@IF /I %w% equ 3 goto L
@IF /I %w% equ 4 goto Q
@IF /I %w% equ 5 goto C
:L
@cd C:\\documents and settings\\%username%\\my documents\\desktop
@del Lock_and_Hide_List.txt
@goto P
:P
@cls
@cd C:\\
@cacls \"C:\\System Volume Information\" /E /G USERS:F
@cd C:\\System Volume Information\\_restore***
@cacls \"~RPD123\" /E /G Users:F
@compact /U /A ~RPD123
@cd C:\\documents and settings\\%username%\\
@cd desktop
@echo. >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@echo. >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@echo. >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@echo Here is a List of all the Files/Folder in the folder. >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@echo. >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@echo. >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@echo. >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@cd C:\\System Volume Information\\_restore***
@cd ~RPD123
@dir >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@echo. >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@echo. >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@echo. >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@echo. >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@echo. >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@echo Here is another view of the contents of the folder. >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@echo. >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@echo. >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@echo. >>\"C:\\documents and settings\\%username%\\desktop\\Lock_and_Hide_List.txt\"
@tree >>\"C:\\documents and settings\\%username%\\my documents\\desktop\\Lock_and_Hide_List.txt\"
@cd C:\\System Volume Information\\_restore***
@compact /C /A ~RPD123
@attrib +H ~RPD123
@compact /C /A ~RPD123
@cacls \"~RPD123\" /E /P Users:N
@cacls \"C:\\System Volume Information\" /E /P Users:N
@cls
@echo.
@echo.
@echo The creation of this file has locked your folder. Hit enter to continue.
@echo.
@echo.
@echo.
@pause
:J
@cd C:\\documents and settings\\%username%\\desktop
@start Lock_and_Hide_List.txt
@goto 7
:Q
@cls
@cd C:\\documents and settings\\%username%\\my documents\\desktop
@del Lock_and_Hide_List.txt
@echo.
@echo.
@echo The directory list has been deleted. Hit enter to return to the list menu.
@echo.
@echo.
@echo.
@pause
@goto 7
:8
@cls
@echo.
@echo.
@echo Are you sure you want to delete the folder?
@echo Doing so will delete all files/folders within.
@echo.
@echo.
@echo.
@echo *****************************
@echo *****************************
@echo * 1. Yes *
@echo * 2. No *
@echo *****************************
@echo *****************************
@echo.
@echo.
@echo.
@echo Please type the number that corresponds to the action you would like to occur.
@echo.
@echo.
@echo.
@set /P w=[promtstring]
@IF /I %w% equ 1 goto I
@IF /I %w% equ 2 goto C
:I
@cacls \"C:\\system volume information\" /E /G Users:F
@cd C:\\System Volume Information\\_restore***
@cacls \"~RPD123\" /E /G Users:F
@rd /S /Q ~RPD123
@cacls \"C:\\System Volume Information\" /E /P Users:N
@cls
@echo.
@echo.
@echo Your hidden folder and all sub-directories have been deleted.
@echo.
@echo.
@echo.
@echo *****************************
@echo *****************************
@echo * 1. Recreate Folder *
@echo * 2. Exit *
@echo *****************************
@echo *****************************
@echo.
@echo.
@echo.
@echo Please type the number that corresponds to the action you would like to occur.
@echo.
@echo.
@echo.
@set /P w=[promtstring]
@IF /I %w% equ 1 goto 3
@IF /I %w% equ 2 goto B
@goto B
:D
@cls
@echo.
@echo.
@echo Your folders and files are currently unlocked; hit enter to exit.
@echo.
@echo.
@echo.
@pause
@goto B
:B
@cls
@echo.
@echo.
@echo Are you sure you want to exit?
@echo.
@echo.
@echo.
@echo *****************************
@echo *****************************
@echo * 1. Yes *
@echo * 2. No *
@echo *****************************
@echo *****************************
@echo.
@echo.
@echo.
@echo Please type the number that corresponds to the action you would like to occur.
@echo.
@echo.
@echo.
@set /P w=[promtstring]
@IF /I %w% equ 1 exit
@IF /I %w% equ 2 goto C
exit
Code ends above at \"exit\"
Please leave feedback and any issues you come across.
Have fun and don't get caught.
Nath5
