To make a batch file and edit it from your dos bootable disk, when computer is off, insert bootable disk, turn pc on, at dos prompt (a:\) type the following with out quotes
"edit a:\harddrive.bat" this will open a screen where you can type in the contents for the batch file.
Contents for batch file:
cls
@echo off
ECHO This batch file will display the contents of the hard drive
ECHO one screen at a time.
pause
cd c:\
dir /p
ECHO The preceding was the contents of this computers
ECHO hard drive. Pressing any key will exit this batch file.
pause
exit
type the text above EXACTLY as it appears (spaces and everything) I have tried it and it works perfectly.
once you have the text typed in, press ALT+F, then press S, then press ALT+F, then press X. this will save the file and exit the editor and put you back at the dos prompt. now test your new batch file. at the dos prompt (needs to say A:\) type "harddrive.bat" and press enter. Follow on screen instructions. |