7.7.09

Windows XP: How to run automated checkdisk from a batch file?

If you have a lot of partitions and you want to run checkdisk on all of them, instead of doing it individually for each drive, you can use this batch file.

Copy and paste the following code into a notepad and save the file with a .bat extension.
Eg. "checkdisk.bat"

1. When saving the file, use the quotation marks in the file name so notepad doesn't assign the default .txt extension.
2. Run this batch file(double click it to run) from any drive other than your windows drive.
3. Edit(right click the batch file > edit) the file depending on how many partitions you have.
4. Your windows drive should be the very first.
5. In the below code my windows drive is C: so I started with ECHO Y| chkdsk C: /F
6. Got it? good. If not good luck.

Code:
@ECHO OFF
TITLE CHECK DISK
COLOR 9F
ECHO ================
ECHO Checking Drive C
ECHO ================
ECHO.
ECHO.
ECHO Y| chkdsk C: /F
ECHO.
ECHO.
ECHO ================
ECHO Checking Drive D
ECHO ================
ECHO.
ECHO.
ECHO N > check.TXT
ECHO Y >> check.TXT
TYPE check.TXT| chkdsk D: /F
ECHO.
ECHO.
ECHO ================
ECHO Checking Drive E
ECHO ================
ECHO.
ECHO.
TYPE check.TXT| chkdsk E: /F
DEL check.TXT
ECHO.
ECHO.
PAUSE
PAUSE
Eg. If you have another drive F then in your batch file,
after this line TYPE check.TXT| chkdsk E: /F and
before this line DEL check.TXT add the following code and so on for as many drives as you have.

Code:
ECHO.
ECHO.
ECHO ================
ECHO Checking Drive F
ECHO ================
ECHO.
ECHO.
TYPE check.TXT| chkdsk F: /F
Restart your comp so checkdisk can check the drives that were in use. If you want you can also copy and paste the below given code to the end of your batch file to restart your comp automatically.

Code:
cls
shutdown -r -f -t 180 -c "The computer will restart in 3 minutes when the timer counts backwards to zero. Please exit all running programs. To abort this shutdown Go to Start > Run > type cmd > Hit enter > type shutdown -a > hit enter."
1. In shutdown -r -f -t 180 180 means seconds. So it means your comp will restart in 3 minutes. You can change 180 to 0 for an instant restart.
2. Recommend running checkdisk before and after a manual defrag.

Source : ThinkDigit

2.4.09

Youtube Trick I

You may notice just under the lower right coner of the video window, some videos have an option to “Watch In High Quality”. By default, these videos will play as a 320×240 FLV file at 320Kb/s. Check out this sample:

http://www.youtube.com/watch?v=zyyjgYcS8Fs


The user could click on this link to “Watch in High Quality” which will reload the video and play the MP4 version , which is 480×360 at 512Kb/s. By adding &fmt=18 to the end of the URL, you’ll make the URL you share with others bring them right to the high quality version. Here’s the same video in the High Quality view:

http://www.youtube.com/watch?v=zyyjgYcS8Fs&fmt=18


What else are you gaining besides increased video resolution? The video is compressed with H.264 compression, so you get better video even at the same data rate. You also go from a low fidelity mono audio feed to stereo @ 44.1Khz sample rate.



&fmt=6 increases the resolution from 320×240 to 448×336, Flash 7 video @ 900Kbps; audio @ 44.1KHz 96Kbps Mono CBR.

&fmt=18 increases the resolution to 480×360, H.264 video @ 512Kbps; audio @ 44.1KHz 128Kbps Stereo. Note, the bandwidth may be lower, but it’s utilizing a more efficient compression codec.

&fmt=22 increaes the resolution to 720p HD video if the source was uploaded at a high enough resolution.

About Me

Abhishek Deshpande, I'm pursuing my BS Degree From Nagpur UniV. Wish me it will Complete this year.

Tekabhi :
This blog is Collection of tips and tricks that i found in my Surfing life. All tricks are tested by me at the time of Posting.Hope you found them useful.

You can Contact me via Comments.
or mail me

Blog Archive