Home work help!!

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

drlove5150

Thread Starter
Joined
Oct 1, 2003
Messages
1
Need help with homework. I need to create a bootable disk in DOS. I have to be able to edit a batch file from this disk. I have to create a batch file that will display the hard drive directory on the screen and display one page at a time.
 

Squashman

Trusted Advisor
Joined
Apr 4, 2003
Messages
19,786
Have you done a google search for Dos Batch Files.

From a dos prompt:
format a: /s
Will create a bootable diskette
Or you can download one from:
http://www.bootdisk.com/bootdisk.htm



dir | more
Will dislplay the contents of a directory one screen at a time.
 
Joined
Sep 30, 2003
Messages
69
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.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top