Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi all (again)! I'll try to be as clear as possible, it wont be easy. (If you arent able of understanding the second part of the post, forget about it, look only to the first one)
>>By batch file, I need to get 2 files
ie:1.txt:
abc
123
xyz2.txt:
dos
windows
linux>>And put them togheter, like this:
abc dos
123 windows
xyz linux>>How may I do this??????
---------secondpart---------------
Let's suppose these other files:
1.txt:
1232.txt:
xyzI know how to concatenate those files by the way I want (so they make a string "123xyz"). I make it like this: (thanks to laurence)
for %%a in (FOR %%v in (f100LFF''20 l102 w q) do ECHO %%v>>replc.scr
debug.exe 1.txt < replc.scr
copy 1.txt+2.txt 3.txtI know that those commands (f100LFF''20...) are put in a script file that is runned by debug.exe. That creates 2 spaces at the begginig of the 1st string of 1.txt, and (I don't know why) changes the way it is copyed
When I make "copy 1.txt+2.txt 3.txt", instead of 3.txt get like this:
123
xyzIt gets like this:
123xyzAnd that's what I wanna do! BUT: When I make this process with files with more than 1 string, it doesn't work. Let's suppose I make that process with those 1.txt and 2.txt from the begginning of the post. It gets like this:
abc
123
xyzdos
windows
linuxSo, i could get 1.txt and 2.txt and separate them in strings, one string by file. But those files (1.txt and 2.txt) may be really BIG (depending on the way the batch is used) So, that's not a solution.
-------------------------------
Please help! I hope I were clear!! I know I weren't so clear, sorry, English ain't my first language (portuguese is).
I'm gonna say it again:IF YOU DIDN'T UNDERSTAND THE SECOND PART OF THE POST, FORGET IT!! LOOK ONLY TO THE FIRST ONE!!
Thanks a lot.
SECRET_DOOM
email: secret_doom@hotmail.com
PS: Im using w98.
PS2: Laurence, forget about that batch! I'm developing a better version

You know these topics are covered regularly in alt:msdos.batchWhy don't you start hanging out there?

Laurence,
Unfortunately, because of their general bad reputation for porn/warez/spam, alot of ISPs have stopped (especially corporate) providing access to Newsgroups. As a matter of fact, I haven't been able to access newsgroups for years because of that fact.
-Michael

It's owned by Google now, but that above link will redirect you. Also Google has exposed their search engine on the newsgroups so you can easily search the content for the question you asked.

![]() |
Fax software
|
keyboard not working in d...
|

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