smercer Posted April 18, 2005 Share Posted April 18, 2005 Hi allI 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"start /wait c:\windows\Scandskw.exe /customalso tryed:start /wait c:\windows\Scandskw.exeand Scandisk /customand Scandisk -customand even that don't work.Could someone please help me here? thanks in addvance!! Link to comment Share on other sites More sharing options...
Tihiy Posted April 18, 2005 Share Posted April 18, 2005 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. Link to comment Share on other sites More sharing options...
smercer Posted April 18, 2005 Author Share Posted April 18, 2005 You cannot use /custom parameter under Windows.<{POST_SNAPBACK}>Thanks... Is there a way to boot to dos to perform this and another task and then shutdown (turn off) the computer?Thanks again. Link to comment Share on other sites More sharing options...
oftentired Posted April 18, 2005 Share Posted April 18, 2005 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 Link to comment Share on other sites More sharing options...
smercer Posted April 23, 2005 Author Share Posted April 23, 2005 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<{POST_SNAPBACK}>Thanks for that. I did find the site useful Link to comment Share on other sites More sharing options...
MDGx Posted May 1, 2005 Share Posted May 1, 2005 Here are all valid ScanDskw.exe switches:http://www.mdgx.com/newtip18.htm#SHSUse Scandskw.exe + scandisk.exe from WinME with 95/98/98SE:http://www.mdgx.com/98-5.htm#WDIWUnattended Defrag + ScanDisk:http://www.mdgx.com/lastweek.htm#UNDEFSCANStart.exe switches:http://www.mdgx.com/last4.htm#SMUHope this helps. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now