Monday, May 19, 2008

Scheduled Tasks - Defrag, how to set up scheduled defrags

Scheduled Tasks - Defrag, how to set up scheduled defrags


oi m8s i figured this out because i ran into problems with trying to get windows task manager to defrag my hardrive at a certain time by only using built in tools.

Step 1

open up notepad (or favorite editor) and type:


defrag c:
defrag d:
defrag e:
defrag f:
defrag g:
defrag j:


make sure to change the drive letters to one that match your system. After you have customized the drive letters save the file as defrag_script.BAT or whatever is easy for you to remeber. Just make sure its a ".BAT" file. I saved the file into a dir in my documents called scripts but you can put it anywhere.

Step 2

Now that you have the script already made open your control panel and click on "Scheduled Tasks".

Select file>new>Scheduled Task

it should create a file on oin the window called "New Task" slect this and right click to properties.

In the run box click browse and navigate to your script. make sure that you run it with an account that has administrator rights otherwise it might not work.

Now select the schedule tab from the top and input the time and how often. I chose to urn it every noght however you could probably run it once a week and still be fine.

After yo uset the time and how often have a look in the settings tab and see if you need to change anything. Then click okay and your done!


you can also modify the script further by adding various operations on the ends of the defrag command:
CODE

-a Analyze Only
-f Force defragmentation even if free space is low
-v verbose output
-? Display help text


You can also pipe the command defrag to a log file if you want to see what went on the last time the script ran:
CODE

--this form will rewirte the log file erasing any previous info--
defrag x: -v > x:/logs/defrag_log.txt

--this form will append the new info to the end of the old--
defrag x: -v >> x:/logs/defrag_log.txt


Disclaimer:-
i am not liable for any criminal or bad thing which you have done using this message and document. i am giving here for the educational purpose and care should be taken from your side before using this document and please get a written permission from the person before hacking or doing some thing in the network or system.This document is intended for judicial or educational purposes. I have collected these documents and messages from the internet for educational purpose only. always use these documents for doing good only. I don't want to promote computer crime and I'm not responible of your actions in any way. If you want to hack a computer, do the decent thing and ask for permission first. please read and use this for useful purpose only to protect the systems and information from the bad people. always seek permission from the system owner or who ever responcible for the system by written and then go ahead. Give a full report with honestly to the person or company about your experiments and findings from the system. Always Do Good Think Good and Belive Good.

No comments:

க்ரீன் பீஸ் மசாலா - Green peas Masala

*க்ரீன் பீஸ் மசாலா*     பச்சைப்பட்டாணி - 250 கிராம்     (அல்லது) காய்ந்த பட்டாணி - 150 கிராம்     பெரிய வெங்காயம் - 2     தக்காளி - 2 அல...