Moving The Mozilla Firefox Disk Cache In To Another Drive
Mozilla Firefox automatically assigns 50MB for disk cache and saves this in “cache” directory, by default which is located in the drive in which the browser has been installed by default. The users can have a look at the cache directory in that location by just typing ‘config’ in address bar of Firefox. The mechanism of disk cache is to improve the time which takes for reading or writing into a hard disk.
The execution will be more evident if Firefox installation is on disk of Solid State, which is not desirable for any write operation. That disk is quite fast in reading but little bit slower in writing section.
So, it is good if we move the disk cache from Firefox into separate drives for getting better performances and for security purpose.
The location where cache is stored can be altered by bringing the “browser.cache.disk.parent_directory” and then entering folder path. For doing it, type about: config within Firefox address bar. Then right click on your mouse; from the menu select New String.
Just type in, browser.cache.disk.parent_directory in the dialog box. Also type the cache location’s new path, for example d:\temp. After this is specified, then a new directory known as “Cache” will automatically be created where you have set the path.
Delete All Files in Main Folder and Sub Folder While Maintaining Folder Tree Structure in Windows XP
Most of the times we have to delete all the files in main folder and sub folders but by maintaining the tree structure of folders. However, this function is not provided by Windows OS by default.
You’ll be able to conduct this activity manually by selecting the folders and pressing the Delete button. Furthermore, you must carry out the above process selecting the files in sub folders.
When the folder tree structure is complex, then this method may be pretty time consuming. To do along with maintaining the folder tree structure, you can use a simple method. By editing the registry, you can modify the right click folder menu to use this utility.
Following is a step by step instruction set to edit the registry:
- Just go to Start and then “Run”. Type ‘regedit’ to open registry editor
- Navigate to the following sub key- HKEY_CLASSES_ROOT\Directory\shell
- Now, right click on ‘shell’ folder, select New then go to Key. Create a new sub key and name it as ‘Empty Folder Contents’.
- Now, right click on ‘Empty Folder Contents’. Select New. Go to Key and give name to sub key as ‘Command’.
- Under this sub key, make a double click on ‘Default’ option. It is located in the right window.
- You will be prompted with a small Edit String pop-up window. Just enter the following value: cmd /c “cd /d %1 && del /s /f /q *.*
- Finally, to save all the setting, hit OK button.
Now, whenever you want to delete all the files in folders and sub folders with maintaining the folder tree structure, just right click on that folder and select ‘Empty Folder Contents’ option.
Avoid Hidden Partition Created While Installing Windows 7 OS
When you install Windows 7 OS, an active hidden primary system partition will be automatically created. This is separate standalone NTFS partition and you will not see any drive letter or path labeled on it. This partition will have 200 MB of disk space however, and it only occupies 32 MB and remaining 168 MB space remains free.
Basically, this small partition of 200MB space contains Windows Recovery Environment. It holds all the bootable files and some essential system files with which you can boot Windows 7 properly. By using these files, you can also recover your operating system when your OS gets corrupted.
When this 200 separate MB of small partition is created during Windows 7 installation, you can not delete or remove it. Also it is not possible to delete using “delete the volume” option in the Storage Disk Management inside the Computer Management tab.
When you use third party utilities such as partition editor or partition manager, a Partition Table will be corrupted or it will not remain valid. Normally, in all systems the Partition Table is located in the Main Boot Directory (MBR).
The error occurs in the Partition Table since the standard sector zoning format is not used by 200MB partition. A partition tool which does not supports a non-standard type partition when gets removed then consequently the Partition Table is corrupted.
If you don’t want this 200 MB partition in any way, you have to stop the installation process of Windows 7 and create the partition when you install Windows 7. If you are installing OS with single partition scheme on hard disk then the feature of creating 200 MB partition for WinRE files will be installed on your computer.
Following are some rules that you follow to avoid or skip the auto production of 200M partition during installation in Windows 7.
- It is highly recommended that you should not install Windows 7 on such a hard disk which is still not partitioned. Also do not install the setup to any unallocated space.
- When you select to install Windows 7 to an unallocated space, you will not be prompted with pop-up warning or confirmation and the setup will automatically and directly generate a special partition of 200 MB.
- If it is possible, all the necessary partition must be created manually. Then you should format these partitions just before installation of a fresh copy of Windows 7 OS.
- If you still want to install Windows 7 OS into a blank hard disk or a new hard disk which do not have any defined partition or to start afresh, or if you have deleted all the existing partitions, go to “Drive options (advanced)”.
- If there are any unwanted partitions then just delete them.
- After that, just click on “New” option for creating a single partition or multiple partitions and that depends upon your own choice.
- Now you will be prompted with a dialog box which says “To ensure that all Windows features work correctly, Windows might create additional partitions for system files”.
- Just, click on the Cancel option. Also again Format the partition while going to select for installation of Windows 7.
When you do not allow to Windows 7 to create the special partition of 200MB, all the files of WinRE recovery environment is stored inside the folder in Win7 installation drive root. For instance, when you install Windows7 OS to a partition along with a label “C:” then WinRE will be located in the system at C: Recovery.
Trick To Demonstrate Current Functional Directory’s Complete Path With .BAT Command
A user implementing a “Batch-Command-Script” in (“.CMD or .BAT file extends) should know information about the current functional directory of the batch-script. Knowledge of the present working folder or directory in batch-commands is very helpful, as it confirms if the Script is either calling a command from the right directory path, or manipulating a folder or a program.
Next most significant utilization is in preserving and capturing the current folder for future usage as the script might alter the route during its course of action.
In reality, displaying and showing the present directory is simpler with the usage of pseudo-variables for “Cmd.exe” Environment-Variables.
Microsoft-Window has added “%CD%” pseudo-variables from Windows2000 versions onwards, which elaborates to the current functional directory.
For illustration, just utilize the following commands:
1) To exhibit current functional directory – “echo %CD%”
2) To save and preserve the present functional directory wherein a file is situated for future usage after Change Directory (CD) to other directories to execute operations – “Currentdir=%CD%”
The %Currentdir% is a Variable to stock the current functional folder, which can be utilized for future batch commands, such as altering back to its former directory.
However within the Windows 9x, the “%CD%” Pseudo-Variable does not exist. So, to get the current functional directory, utilize the following technique:
- cd | time | find “:\” > temp1.bat
- echo set cd=%%4 %%5 %%6 %%7 %%8 %%9 > enter.bat
- call temp1.bat
- del temp1.bat
- del enter.bat
The final result variable “%cd%” will be brought back to the Batch Processing Session which comprises the present functional directory.