This will cause the batch file to stall waiting for you to confirm that you want to overwrite the file. John's suggestion should work. In any event, I know that the following works. I did try it on an XP machine. Be sure to use the "File type" as "All files" or you will get a txt file extension. Normally, the C drive is where Windows is located. If you are attempting to run chkdsk on a non-system drive, none of the nonsense with the "y" is needed.
If your D drive is, in fact, your system drive, then replace C with D in the first line. Test the checkmydisk. Your computer should shut down, reboot, and perform a chkdsk. If you don't have an admin account with a password, consider creating one. Or you can use the AT command in a Command Prompt window. Post back if you want directions on how to use the AT command. In the future, when you get an error message, please post them completely, The following is not helpful: "it has some kinds of initial error at 0xc and schtask error on DLL".
In reply to LemP's post on March 21, The command works perfectly fine here, in a simple one line batch file: chk. This is because you have no open files on the drive letter C, D, E?
Scanning for bad sectors is something completely different than scanning a drive for file system errors. Bad sectors are a physical defect in the hard drive, which may or may not be related to an open file, and which is also why Windows XP will allow you to perform such a task.
And since we're on the topic of Scandisk and Defrag for Win9x and how it constantly restarts:. I know that the best way to overcome this problem is to use a third-party application that doesn't hiccup like the Microsoft counterparts do. I also know that running Scandisk or Defrag even under Safe Mode won't always do the trick.
Privacy Policy Terms of Service. Posted by: Don Chantry 08 Apr Comments of a political nature are discouraged. Please limit your remarks to paragraphs. If you want to see your comment posted, pay attention to these items. All comments are reviewed, and may be edited or removed at the discretion of the moderator.
If you want to ask a question click here. Need tech support? Ask Your Computer or Internet Question. Chkdsk can be run as a command-line application or it can be run with a graphical user interface. You can run it accordingly. But what to do, if corruption strikes early? Are you prepared with your backups? Are you ready to face the data loss situations? Be ready for the worst when no backups exist. When any file is deleted, then the scan will not recover it.
0コメント