Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am trying to read the contents of a file "make.err" into the buffer of my batch script. i dont really want to use edit. this may not be in the right forum but being DOS related i thought it was right. i need it to run on windows XP.
ie:
@echo off
echo contents of make.err:
(want to load the contents of make.err here)

XP is not DOS, ut what does this mean:
"load the contents of make.err here"
as in, load into what?
=====================================
If at first you don't succeed, you're about average.M2

i am using the CMD prompt which was based off DOS prompt.
"as in, load into what?"
the buffer of my batch script

CMD.EXE is the NT command interpreter that has nothing to share with COMMAND.COM the DOS system shell module. In XP there is no DOS and what you name DOS prompt actually is the System Console. To run 16 bit applications XP relies on NTVDM (NT Virtual DOS Machine) emulator.
So stated, please, may you explain what is the meaning of "the buffer of my batch"? As that concept is unknown to me and to M2 too that, I do assure, is a master of batch.

i hope this helps. this is what i am trying to
do. i just don't know what the command is.
(its a jpg image, if you dont have images enabled: http://e-motz.com/images/batch_make.jpg

I hope the following is what you need, this is a straightforward script; batches can do more complex jobs.
@echo off
echo.Contents of make.err:
echo.
more < make.err
echo.
pause

batch is great! thank you. worked like a charm, and yes, this is part of a more complex batch script but the rest was irrelevant to the topic of this post. thank you...
thank you! :)

MTec007, didn't you read the warning before you posted your message? "DO NOT post questions related to NT Batch (DOS command prompt) scripting on this forum. Use the Programming forum.
Use the Windows NT, 2000 or XP forum for questions regarding the Windows NT, 2000 or XP "DOS" command prompt."Life's more painless for the brainless.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |