Computing.Net > Forums > Disk Operating System > File merging with bat file trouble

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.

File merging with bat file trouble

Reply to Message Icon

Name: Rune Frederiksen
Date: October 9, 2003 at 08:58:05 Pacific
OS: Windows 2000 proffesional
CPU/Ram: .
Comment:

I sliced a file up in 18 parts for transfer through account with max file upload. I then created a batch code for merging them. They're all located in C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay and have names ranging from Ejay_1 to Ejay_18

When i try to run my code i get the message that the first file "Ejay_1.kg" couldn't be found

Here's my code:

@echo off
echo Generated by Rune Frederiksen
echo http://AoZclan.TK
echo The_giant_noodle@yahoo.dk
echo =================
echo Reconstructing Ejay.zip...
copy /b "C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_1.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_2.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_3.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_4.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_5.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_6.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay_7.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_8.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_9.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_10.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_11.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_12.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_13.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_14.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_15.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_16.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_17.kg"+"C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_18.kg" "C:\music\Ejay.zip"



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: October 9, 2003 at 13:06:48 Pacific
Reply:

The error may be due to the Copy command too long (never exceeding 127 chararcters is a good rule). So try the following

Copy /B "C:\Documents and Settings\jfe\Skrivebord\Jeppe\Ejay\Ejay_*.kg" "C:\music\Ejay.zip"

I hope this helps.


0
Reply to Message Icon

Related Posts

See More


Form submit to Foxbase Copying file over LAN usi...



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: File merging with bat file trouble

Help with Bat file www.computing.net/answers/dos/help-with-bat-file/13551.html

Strange troubles with .bat programming, Win 98... www.computing.net/answers/dos/strange-troubles-with-bat-programming-win-98/4990.html

*.bat file associations www.computing.net/answers/dos/bat-file-associations/13381.html