chkdsk in a batch file - access denied

Hewlett-packard Hp pavilion dv9000 lapto...
January 8, 2012 at 19:22:11
Specs: XP, P4 3Ghz 3G ram
I'm attempting to make a batch file that will restart the computer and run a disk check and safe the log file on the desktop.
I attempted running the file and I got errors because I didn't have the path in ""
I got the error fixed, but the batch begin giving me an access denied. error. I trimmed the batch down to the simple chkdsk d: /I /C (to make it run quickly and run on my restore drive)
I continue to receive the error but I can type the same thing in a command prompt and it works perfectly. This eliminates it being a permissions error, or a the drive being locked.
I've restarted several times, and have no clue why it won't run in a batch file.

The Computer Dr
Chris Robertson

See More: chkdsk in a batch file - access denied

Report •

January 9, 2012 at 08:44:42
I don't know the reason but just to say that it works fine on my XP whether in command prompt or as a batch. Seems it is not your batch file that is at fault.

Always pop back and let us know the outcome - thanks

Report •
Related Solutions

Ask Question