Pages

Sunday, March 22, 2015

Automatically Clean the Temp Folder During Boot in win 8.1

Windows always has temp files and other junk that’s just taking up space on your hard drive. We’ve covered several ways to clean up the extra junk by using Disk Cleanup to using third-party utilities like CCleaner.



Windows Temp File


First, let’s take a look at the Temp folder in Windows. To get to it in Windows 7 type: %temp% in search field in the Start menu, or on Windows 8.1, hit the Windows Key and type the same thing from the Start menu and hit Enter








That opens the Temp folder, and if you want to clean it out manually, just hit Ctrl + A to  select everything in it, and then Delete. Not all of the files and folders will be deleted though as those files are currently in use.


In fact, you really don’t want to delete any temp files that were created since you booted up the PC for performance sake.





Create a Batch File to Automatically Clean Temp Folder




A lot of space can end up being saved on your hard drive by clearing out the Temp file. And if you shut down your PC every night, you can safely delete the temp files from the previous day during boot.


rd %temp% /s /q

md %temp%



Now, save the file exactly as the path below:
%appdata%\microsoft\windows\start menu\programs\startup\cleantemp.bat
That will create your batch file and save it inside the Startup folder







After creating the batch file, I rebooted my PC and opened the Temp folder, you can see there’s far fewer files in it compared to the image above.





While Windows 8.x doesn’t have a Start menu, it has the Startup folder

Enabling Safe Mode in Windows 8

Windows 8 was introduced with a new feature of fast boot startup. However, for making this happen Microsoft has to remove certain modules of their operating system, one of which was Advanced Boot Options. This particular set of options contained booting options for windows like safe mode, dos mode and so on.

So, here is the simplest way to setup advanced boot options or enable safe mode in windows 8. There are various ways of enabling safe mode in windows; some of them are listed below.



#Method 1

Enabling F8 Key Toggle


In this method, you only need to enable the F8 key function. In previous versions of windows as that in Windows XP and Windows 7, you can toggle advanced boot options by pressing F8 key before start screen appears. In Windows 8 no such functioning is allowed, however you can permanently enable it by following some simple steps.

Firstly, open elevated command prompt as administrator, when opened directory will be “c:\Windows\system32”.


Press Enter. You will be notified if operation is successful.




Restart your computer and check whether it worked or not.




You can disable this feature, in case you find it increasing your startup time, just type following code in elevated command prompt, “bcdedit /set {default} bootmenupolicy standard”.


#Method 2
Using system Configuration Tool
In case you find above method too long and you are tired of restarting your computer again and again, you can try this method. In this method we will use System configuration utility or ‘msconfig’ for enabling safe mode in windows 8. However please have a notice on its hazards, it might sometimes hung your computer at safe mode. That is, after you reboot you might lead to safe mode again and again, this happens due to presence of some malwares on your computer. In case you’re sure of your computer being free from malwares, you can opt for this method.




§  Open charm bar and search for “msconfig”. Or simply hit Windows Key + R and type out “msconfig”.
§  System configuration will now be opened.
§  Go to Boot Tab.
§  Tick “Safe Boot”, save the changed options.
§  You will now be prompted to restart.
§  You will be rebooted to Safe Mode.
For disabling safe mode, you need to follow the same path from within safe mode and un-tick the safe boot option.