Thursday, 5 December 2013
Open the document, now paste the following code into the contents of the document:
cls
@ECHO OFF
title Folder Private
if EXIST "HTG Locker" goto UNLOCK
if NOT EXIST Private 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 Private "HTG Locker"
attrib +h +s "HTG Locker"
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== PASSWORD_GOES_HERE goto FAIL
attrib -h -s "HTG Locker"
ren "HTG Locker" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
Change the PASSWORD_GOES_HERE text to the password you want to set. Now go ahead and save the file as locker.bat.
Once the file is saved as a batch file you can delete the original text file.
Now run your batch file by double clicking on it–the first time you run it, it will create a folder called Private. This is where you can store all your secret things. When you have finished adding all your stuff to the Private folder, run locker.bat again.
This time you will be asked if you sure that you want to lock the folder, press the “Y” key and hit enter to lock your folder.
You will see that your Private folder quickly disappears.
If you run the script yet again, you will prompted for a password.
If you enter the same password as you set in the script the Private folder will reappear if you enter the incorrect password the script will just Terminate.
Warning
Most people don’t know how to show system files, but anybody who has some experience will probably be able to quickly figure it out in the Folder Options.
Also, any ordinary user who unchecks the box will most probably be scared off by the warning message that appears.
The second way someone could comprise the folder is to open the batch file and read your password. It’s definitely not a really secure way to hide your files, but it is fun.
Attribution note: We found this script on dozens of different web sites going back many years. We have no idea who first created the script, so we’ve omitted any sort of attribution link. If you do have proof that you first created the script, contact us and we’ll adjust the article accordingly.
IBM MegaRAID BIOS Config Utility RAID - 10 Configuration
Here is how to do this on an IBM System x3650 server with four 300GB SAS hard disks.
During the system boot you will be given the following options.
You will select the “Diagnostics” (in this case using F2 key) and when MegaRAID is loaded you can use “Ctrl+H” key combination to enter the WebBIOS configuration utility.
From the above capture you can also see that there is no virtual disk configured and the controller detected four JBOD disks. When you enter the utility, you will have the ability to select the adapter you want to configure. In our case we only have one adapter so it is very straightforward.
And as you can see below, the selected RAID level is 10. Here you can tune your RAID-10 configuration and when you are ready you click on “Update Size” and then “Accept” button.
Finally, you can continue by hitting “Next” and after the usual warning messages and final review of the configration, the RAID will start initializing.
On the bottom right you have some additional options that you can use but in any case, when the initialization process is completed the RAID-10 virtual disk will be ready to use.
During the system boot you will be given the following options.
You will select the “Diagnostics” (in this case using F2 key) and when MegaRAID is loaded you can use “Ctrl+H” key combination to enter the WebBIOS configuration utility.
From the above capture you can also see that there is no virtual disk configured and the controller detected four JBOD disks. When you enter the utility, you will have the ability to select the adapter you want to configure. In our case we only have one adapter so it is very straightforward.
Next, we have the MegaRAID BIOS configuration main menu for the selected adapter.
From the main menu you select option “Configuration Wizard” and you will get the following screen.
From the above configuration types, we select “New Configuration” since there is no prior configuration. This can also be used if you want to replace the existing configuration with a new one. Before proceeding you will get a warning that this selection will erase the current configuration as shown below.
Next, you select the hard disk drives you want to add to the RAID array. To select more than one press CTRL key. In our case all four disks will be selected in order to implement the RAID-10 level.
In the next window you will have to select “Manual Configuration” if you want to create a RAID-10 array.
Below you select (once again using CTRL key) the first two disks and click “Add To Array” in order to add them to the “Drive Group0″ on the right side panel.
After adding the first two disks you click on “Accept DG” to complete the setup of this drive group and create a new one.
Follow the same procedure and add the other two disks to the new drive group and then click “Accept DG” and “Next” to continue.
You add the two newly created arrays to a span by selecting each one of them and then clicking on “Add to SPAN”.
Finally, you can continue by hitting “Next” and after the usual warning messages and final review of the configration, the RAID will start initializing.
On the bottom right you have some additional options that you can use but in any case, when the initialization process is completed the RAID-10 virtual disk will be ready to use.
Subscribe to:
Posts (Atom)