Computing.Net > Forums > Disk Operating System > appending a line containing >

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.

appending a line containing >

Reply to Message Icon

Name: abdul_ahad
Date: May 22, 2006 at 09:25:20 Pacific
OS: msdos 7.10
CPU/Ram: Intel Celeron
Product: asus
Comment:

how do i append a line containing ">" (greater than sign) to an existing batch file from within another batch file
the line involved is

@ECHO %VAR%>%TEMP%.\$$$.TMP

this has to be done without using any external programs

i donot wish to sign



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: May 22, 2006 at 10:51:09 Pacific
Reply:

I think unless you use debug,
you're out of luck.

I'll stay tuned.


=====================================
If at first you don't succeed, you're about average.

M2



0

Response Number 2
Name: abdul_ahad
Date: May 22, 2006 at 18:26:43 Pacific
Reply:

what i was originally trying to do was make a batch file that gets user input and puts it into an environment variable
i know it has been done before, but now i have managed it with only one external programme (fc.exe)
i no longer need to do what i originally posted above because i modified the main batch file.
however i would like to present my batch file for comments/ideas from others out there
i am having a problem posting it here because the long lines are getting wrapped.
can someone please instruct me how to post without getting any lines wrapped


i donot wish to sign


0

Response Number 3
Name: Mechanix2Go
Date: May 22, 2006 at 20:33:33 Pacific
Reply:

Hi Abdul,

We have yet to find a way around the forum wrapping lines.

Meanwhile, you can email it to me.


If at first you don't succeed, you're about average.

M2


0

Response Number 4
Name: abdul_ahad
Date: May 23, 2006 at 09:27:32 Pacific
Reply:

http://www.computerhope.com/cgi-bin/yabb/YaBB.cgi?num=1148394708

i donot wish to sign


0

Response Number 5
Name: Mechanix2Go
Date: May 23, 2006 at 11:37:05 Pacific
Reply:

As he says, not for DOS, so I can't test it now.

Seems like a hard way to do an easy thing.


If at first you don't succeed, you're about average.

M2


0

Related Posts

See More



Response Number 6
Name: abdul_ahad
Date: May 23, 2006 at 18:15:47 Pacific
Reply:

what's the easy way?

i donot wish to sign


0

Response Number 7
Name: Mechanix2Go
Date: May 23, 2006 at 19:32:58 Pacific
Reply:

Create the needed line with this:

#### makeline.bat
@echo off > d.d

>> d.d echo e 100 40 45 43 48 4F 20 25 56 41 52 25 3E 25 54 45 4D
>> d.d echo e 110 50 25 2E 5C 24 24 24 2E 54 4D 50
>> d.d echo n theline
>> d.d echo rcx
>> d.d echo 1b
>> d.d echo w
>> d.d echo q

debug < d.d
### DONE

Then you can:

copy /b my.text+myline new.txt



=====================================
If at first you don't succeed, you're about average.

M2



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: appending a line containing >

Append to a Line in a .bat file www.computing.net/answers/dos/append-to-a-line-in-a-bat-file/984.html

append a file www.computing.net/answers/dos/append-a-file/13732.html

Append a txt with a DOS command www.computing.net/answers/dos/append-a-txt-with-a-dos-command/5418.html