1.

Solve : COPY,CREATE?

Answer»

I've got a big problem:

I have to analyze several files and I want to do some automatism:

There are 7 subdirectories, in these subs there are several files,
I need from each directory one file, it's called f.e. 6006011A1_db.txt in the NEXT folder 6006021A1_db.txt and so on...so I can copy them like _db.txt(9 question mark for each letter) right?
So my AIM is I need to copy these files from each subdirectory to an output directory and put them together to one file in the order of the BOLD number...

Is that possible?
this is my code:

Code: [Select]ECHO on
md OUTPUT
xcopy ?????????_db.txt ..\OUTPUT /E
copy .\OUTPUT\?????????_db.txt NEW.txt /E

PAUSE
I dont want to copy the directories only the files in the subs...
then with all copied files I want to create one file in order of the number...

THANKS for answers...



Discussion

No Comment Found