Solved

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

Posted on 2007-03-30
10
581 Views
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:
C:\GHOST>
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!
0
Comment
Question by:ITBanker
  • 5
  • 4
10 Comments
 
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
0
 
LVL 20

Expert Comment

by:Dufo G. Belski
ID: 18823951
Or,

C:\GHOST>edit Ghosterr.txt
0
 
LVL 1

Author Comment

by:ITBanker
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".
0
 
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.
0
 
LVL 1

Author Comment

by:ITBanker
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.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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.
0
 
LVL 1

Author Comment

by:ITBanker
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.  :)
0
 
LVL 67

Expert Comment

by:sirbounty
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
or
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: http://www.uv.tietgen.dk/staff/mlha/Download/DOS/microsoft/US/edit.com
0
 
LVL 20

Accepted Solution

by:
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.
0
 
LVL 1

Author Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to use robocopy to move a complete directory structure 6 123
DOSBox Keyboard 3 71
Pros and Cons of setting up a batch processing server? 8 64
For loop to add numbers 3 60
TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

912 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now