How do I open a text file from a DOS prompt?

Posted on 2007-03-30
Last Modified: 2007-12-19
I am trying to run Symantec Ghost to clone a machine.  The process starts in DOS mode and fails and then tells me "Details output to file: Ghosterr.txt."  It then brings me to a DOS prompt:
My question is how do I open the Ghosterr.txt file from that prompt?  I'm sure this is an easy question, but I don't have a clue.  As soon as I reboot the machine, that directory is removed from my C: drive.
Thank you!
Question by:ITBanker
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
LVL 20

Expert Comment

by:Dufo G. Belski
ID: 18823939
C:\GHOST>type Ghosterr.txt

If that scrolls too fast, try

C:\GHOST>type Ghosterr.txt |more
LVL 20

Expert Comment

by:Dufo G. Belski
ID: 18823951

C:\GHOST>edit Ghosterr.txt

Author Comment

ID: 18824050
I'm sorry to be so ignorant, but what is the keystroke before "more" in your first response:

C:\GHOST>type Ghosterr.txt |more

When I typed C:\GHOST>edit Ghosterr.txt, I got the response "Bad command or file name".
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

LVL 20

Expert Comment

by:Dufo G. Belski
ID: 18824147
OK, first, don't type C:\GHOST>.  That was just to illustrate the DOS prompt.  Type
edit Ghosterr.txt or type Ghosterr.txt.  The pipe character | is above the Enter key.  Hold down Shift and hit the backslash key.

Author Comment

ID: 18824336
Here is what I actually typed:
type ghosterr.txt |more
The response:  "Bad command or file name

Then I typed:
edit ghosterr.txt
Same response.

When I type "type ghosterr.txt" a whole bunch of text scrolls past.  I understand that the "|more" switch is supposed to stop that, but it doesn't appear to be working.
LVL 20

Expert Comment

by:Dufo G. Belski
ID: 18824397
Is there a printer?  Try this:

type ghosterr.txt >lpt1

It works for me even though I have a network printer.

Author Comment

ID: 18824424
I have both a network printer and a local USB printer, but the response I'm getting is:

Write fault error writing device LPT1
Abort, Retry, Ignore, Fail?

Sorry to be so difficult.  I'll have to give you more points.  :)
LVL 67

Expert Comment

ID: 18825106
ITBanker, the problem is 'probably' that you've booted from a floppy into a 'limited' DOS mode?  This is the way we ghost our machines.

So your options are to drop either edit, more, or (if you're really brave and a semi-old-timer like myself, edlin) onto that same disk (or perhaps its already there but not part of the path).

If that's the case, try this at the prompt (assuming A: is the floppy or boot device you're running ghost from)

dir A:\more.* /s
dir A:\edit.* /s

If either of these returns anything, take the path that was returned and use that in your full command statement.
Ex: If it returns that more is located in A:\DosFiles
then you'd type

type ghost.err| a:\dosfiles\more
to pause each screen (the above assuming that ghost.err is in the current folder).

Otherwise, download edit from here:
LVL 20

Accepted Solution

Dufo G. Belski earned 250 total points
ID: 18825236
I agree with sirbounty about the possibility of limited DOS mode.

One other option if you are booting from floppy.  If you have the copy command available, you could try

copy ghosterr.txt a:

then take the disk to another machine and read the file.

Author Comment

ID: 18825278
That is EXACTLY what I needed!!  THANK YOU SO MUCH, asyscokid!!

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of my most closely kept secrets is revealed in this discussion How to output text on the same line This question was recently posted in EE by Simon336697 (…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question