Computing.Net > Forums > Disk Operating System > read file contents into batchscreen

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

read file contents into batchscreen

Reply to Message Icon

Name: MTec007
Date: May 14, 2008 at 20:46:43 Pacific
OS: XP Home 2002 SP2
CPU/Ram: Celeron 1.10GHz, 128
Product: HP Pavilion 510w
Comment:

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)



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: May 15, 2008 at 01:57:52 Pacific
Reply:

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


0

Response Number 2
Name: MTec007
Date: May 15, 2008 at 05:37:49 Pacific
Reply:

i am using the CMD prompt which was based off DOS prompt.

"as in, load into what?"

the buffer of my batch script


0

Response Number 3
Name: IVO
Date: May 15, 2008 at 08:08:46 Pacific
Reply:

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.


0

Response Number 4
Name: MTec007
Date: May 15, 2008 at 11:30:00 Pacific
Reply:

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


0


Response Number 5
Name: IVO
Date: May 15, 2008 at 13:53:25 Pacific
Reply:

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


0

Related Posts

See More



Response Number 6
Name: MTec007
Date: May 15, 2008 at 14:15:50 Pacific
Reply:

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! :)


0

Response Number 7
Name: markreflex
Date: May 24, 2008 at 06:09:46 Pacific
Reply:

stop posting CMD BOX questions in the DOS forum!


0

Response Number 8
Name: MTec007
Date: May 24, 2008 at 14:26:44 Pacific
Reply:

get over yourself.


0

Response Number 9
Name: Jennifer SUMN
Date: June 26, 2008 at 21:10:48 Pacific
Reply:

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.


0

Response Number 10
Name: MTec007
Date: July 16, 2008 at 15:48:37 Pacific
Reply:

no i didnt. i didnt see that posted any where.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: read file contents into batchscreen

Read file, put value to a variable www.computing.net/answers/dos/read-file-put-value-to-a-variable/13766.html

Reading file ... www.computing.net/answers/dos/reading-file-/1469.html

Sending file contents to environment var www.computing.net/answers/dos/sending-file-contents-to-environment-var/9895.html