Help - Search - Members - Calendar
Full Version: Scandisk /custom switch problem
MSFN Forums > Microsoft Software Products - Discussion & Support > Windows 95/98/98SE/ME

   
Google Internet Forums Unattended CD/DVD Guide
smercer
Hi all

I am creating a batch file for when the user shuts down on a Windows 98 machine.

I am geting an error:

"You typed parrameters that are invalid for ScanDisk for Windows"

CODE
start /wait c:\windows\Scandskw.exe /custom


also tryed:



CODE
start /wait c:\windows\Scandskw.exe

and

Scandisk /custom

and

Scandisk -custom

and even that don't work.

Could someone please help me here? thanks in addvance!!
Tihiy
You cannot use /custom parameter under Windows.

I remember you can use /a parameter for scandskw to perfom automatic scan.
Set parameters for checking in scandisk.
smercer
QUOTE (Tihiy @ Apr 18 2005, 07:40 PM)
You cannot use /custom parameter under Windows.
*


Thanks... Is there a way to boot to dos to perform this and another task and then shutdown (turn off) the computer?

Thanks again.
oftentired
Of course there is.

Create a batch file that will start scandisk with the parameters you need.

Then since Autoexec.bat is processed when booting to Real Mode DOS aim the last line of your autoexec.bat at that batch file you created.

You may find this website useful.

Using MS-DOS 7 Commands
smercer
QUOTE (oftentired @ Apr 19 2005, 01:26 AM)
Of course there is.

Create a batch file that will start scandisk with the parameters you need.

Then since Autoexec.bat is processed when booting to Real Mode DOS aim the last line of your autoexec.bat at that batch file you created.

You may find this website useful.

Using MS-DOS 7 Commands
*

Thanks for that. I did find the site useful
MDGx
Here are all valid ScanDskw.exe switches:
http://www.mdgx.com/newtip18.htm#SHS
Use Scandskw.exe + scandisk.exe from WinME with 95/98/98SE:
http://www.mdgx.com/98-5.htm#WDIW
Unattended Defrag + ScanDisk:
http://www.mdgx.com/lastweek.htm#UNDEFSCAN
Start.exe switches:
http://www.mdgx.com/last4.htm#SMU

Hope this helps.
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.