i need a script or some way to run Chkdsk on my MULTIPLE drives in ONE command

  • Thread starter Thread starter Drew Drew Drew
  • Start date Start date
D

Drew Drew Drew

Thanks in Advance for Reading this...My Drive has 2
partitions and I am told I can have some sort of a script
in a notepad file on my desktop and just click on it and
it will run chkdsk on both partitions in one easy step.
(I want to run the chkdsk command that will check both
partitions, do any repairs it can do - I'm not sure of
all the functionality provided for in Windows XP, but
whatever will scan for errors and repair my hard driveS
(BOTH PARTITIONS IN ONE COMMAND) is what I am trying to
get done.

PLEASE JUST GIVE ME THE EXACT COPY OF WHAT I NEED TO TYPE
IN. I'M NOT A TECHIE AND DON'T KNOW SCRIPTS, other than
the few I have run when reading an article, but please
give me what I need to copy/paste into a notepad file on
my desktop.

NOTE: I USE THE FULL VERSION OF EXECUTIVE SOFTWARE FOR
SPEEDING UP MY HARD DRIVE ALREADY, so I don't need
anything for defrag. Are there any other scripts,
commands, routines that I can run to check my hard disk
for errors, or improve it's performance beyond chkdsk and
defrag?
 
Thanks in Advance for Reading this...My Drive has 2
partitions and I am told I can have some sort of a script
in a notepad file on my desktop and just click on it and
it will run chkdsk on both partitions in one easy step.
(I want to run the chkdsk command that will check both
partitions, do any repairs it can do - I'm not sure of
all the functionality provided for in Windows XP, but
whatever will scan for errors and repair my hard driveS
(BOTH PARTITIONS IN ONE COMMAND) is what I am trying to
get done.

PLEASE JUST GIVE ME THE EXACT COPY OF WHAT I NEED TO TYPE
IN. I'M NOT A TECHIE AND DON'T KNOW SCRIPTS, other than
the few I have run when reading an article, but please
give me what I need to copy/paste into a notepad file on
my desktop.

NOTE: I USE THE FULL VERSION OF EXECUTIVE SOFTWARE FOR
SPEEDING UP MY HARD DRIVE ALREADY, so I don't need
anything for defrag. Are there any other scripts,
commands, routines that I can run to check my hard disk
for errors, or improve it's performance beyond chkdsk and
defrag?

Drew x 3,

This question would probably be better asked in alt.msdos.batch.nt.
However, here is a start.

Copy and paste the following 2 lines into Notepad.

@echo y|chkdsk c: /f
@echo y|chkdsk d: /f

Note, the character after the "y" is a Shift - Backslash, aka "pipe".
Don't stick in extra spaces anywhere. I'm assuming that your second
partition is d:.

Save as file name fixdisks.cmd, file type All Files, in c:\. Now open
Windows Explorer (Start - right click Explore), look in c:\, and
create a shortcut for fixdisks.cmd (right click on fixdisks.cmd,
choose "Create Shortcut"). Copy the shortcut to your desktop.

Note that you cannot actually fix the disk while you're logged on - it
will only queue up a chkdsk for the next time the system is restarted.

Cheers,
Chuck
Paranoia comes from experience - and is not necessarily a bad thing.
 
-----Original Message-----


Drew x 3,

This question would probably be better asked in alt.msdos.batch.nt.
However, here is a start.

Copy and paste the following 2 lines into Notepad.

@echo y|chkdsk c: /f
@echo y|chkdsk d: /f

Note, the character after the "y" is a Shift - Backslash, aka "pipe".
Don't stick in extra spaces anywhere. I'm assuming that your second
partition is d:.

Save as file name fixdisks.cmd, file type All Files, in c:\. Now open
Windows Explorer (Start - right click Explore), look in c:\, and
create a shortcut for fixdisks.cmd (right click on fixdisks.cmd,
choose "Create Shortcut"). Copy the shortcut to your desktop.

Note that you cannot actually fix the disk while you're logged on - it
will only queue up a chkdsk for the next time the system is restarted.

Cheers,
Chuck
Paranoia comes from experience - and is not necessarily a bad thing.
.

The batch file sounds like a good idea.
I haven't tried this myself but once you have your batch
file could you not schedule it to run sometime overnight
and then leave the computer in stand-by or hibernate mode
instead of turning it off?? This way it could start and
run chkdsk with nobody present.

Is there a command that you could add to the batch file
that would put it back into stand-by or hibernate? If not
you could schedule the task to start one hour before you
arrive in the morning - this would give it time to
complete and when you got to work your computer would be
booted, chkdsk'd and ready to go.

Bill
 
-----Original Message-----
Backslash,
aka "pipe". a
bad thing.

The batch file sounds like a good idea.
I haven't tried this myself but once you have your batch
file could you not schedule it to run sometime overnight
and then leave the computer in stand-by or hibernate mode
instead of turning it off?? This way it could start and
run chkdsk with nobody present.

Is there a command that you could add to the batch file
that would put it back into stand-by or hibernate? If not
you could schedule the task to start one hour before you
arrive in the morning - this would give it time to
complete and when you got to work your computer would be
booted, chkdsk'd and ready to go.

Bill
.
Found it!!!! Go here.

http://www.informationweek.com/story/showArticle.jhtml?
articleID=15600170

The batch file was such a good idea that someone had to
have written up a 'How to . . '

Bill
 

Bill,

Try posting the link as
<http://www.informationweek.com/story/showArticle.jhtml?articleID=15600170>.

Hella easier to read the link that way. A useful article too.

At any rate, as you suggested, if you add "shutdown -r" as a third
line, the batch will start shutdown and restart immediately. If you
have no running tasks that will generate a dialogue when asked to
shutdown. Enter "shutdown" at a command prompt for further
explanation.

Cheers,
Chuck
Paranoia comes from experience - and is not necessarily a bad thing.
 
So can you post the code here guys the article is erased LOL the big bug MSBrother watching us.
 
Back
Top