Computing.Net > Forums > Disk Operating System > Copy / Debug

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.

Copy / Debug

Reply to Message Icon

Name: Secret_Doom
Date: April 22, 2001 at 13:55:54 Pacific
Comment:

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
xyz

2.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:
123

2.txt:
xyz

I 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.txt

I 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
xyz

It gets like this:
123xyz

And 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
linux

So, 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



Sponsored Link
Ads by Google

Response Number 1
Name: Laurence
Date: April 24, 2001 at 10:43:38 Pacific
Reply:

Batfiles: The DOS batch file programming handbook


You know these topics are covered regularly in alt:msdos.batch

Why don't you start hanging out there?


0

Response Number 2
Name: Michael
Date: April 24, 2001 at 12:16:51 Pacific
Reply:

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


0

Response Number 3
Name: DoOMsdAY
Date: April 25, 2001 at 08:40:49 Pacific
Reply:

If you can't access them as a newsgroup, access them as a web page.

http://www.deja.com/


0

Response Number 4
Name: Secret_Doom
Date: April 25, 2001 at 10:40:22 Pacific
Reply:

Thanks for the replies.
I'm gonna try that link, doomd!


0

Response Number 5
Name: DoOMsdAY
Date: April 25, 2001 at 15:43:05 Pacific
Reply:

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.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon

Fax software keyboard not working in d...



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: Copy / Debug

Dos Batch command to re-boot a PC. www.computing.net/answers/dos/dos-batch-command-to-reboot-a-pc/3402.html

mkdir with actual Date as Foldernam www.computing.net/answers/dos/mkdir-with-actual-date-as-foldernam/13739.html

Script to copy and create Unique name www.computing.net/answers/dos/script-to-copy-and-create-unique-name/10735.html