Code:
@ECHO OFF
ECHO Y.|Chkdsk D: /F /X
That's the simple way of doing it, there was another method that worked on more finiky things that don't except pipes but I can't remember sorry.
Though the code above will do what you need it to do.
I would recommend using var's for each drive letter and shortcuts that determine the drive letter.
Ex.
Code:
@ECHO OFF
ECHO Y.|Chkdsk %1: /F /X
Shortcut:
Or something like that, might take a few tries to get the syntax correct and such on that one (the colon char might need to be removed from the batch and put into the shortcut instead).
After which you can make a sub folder in your menu system/startmenu and add a shortcut for each one, or whatever you want.
Regardless the 1st box of of code will do what you need it to do.
Just remember, "ECHO." means LF-CR or CR probably to be more precise (ie return or enter whatever you wanna call it) .
Bookmarks