Search found 9 matches

by novmar
25 Oct 2013 05:31
Forum: DOS Batch Forum
Topic: [SOLVED] copy every 3 line in new x.txt file
Replies: 8
Views: 9016

Re: copy every 3 line in new x.txt file

Tnx Endoro & foxidrive, now is OK
by novmar
25 Oct 2013 01:56
Forum: DOS Batch Forum
Topic: [SOLVED] copy every 3 line in new x.txt file
Replies: 8
Views: 9016

Re: copy every 3 line in new x.txt file

tnx this is it, but in x.txt I have line (example)

2*G:\..\....\..\....\xxx - xxxx xxx xxx xxx.mp3

and result is (cut txt line on first space)
G:\..\....\..\....\xxx

I need all line to copy in y.txt (without 2*)
by novmar
25 Oct 2013 01:15
Forum: DOS Batch Forum
Topic: [SOLVED] copy every 3 line in new x.txt file
Replies: 8
Views: 9016

[SOLVED] copy every 3 line in new x.txt file

I have x.txt file and I wont copy every 3 line in new y.txt file x.txt 1*aaa 2*bb 3*ccc 4*dddd 5*zzzzzz 6*yy 7*dklfmrmfs 8*fmkmmkd 9*lizzzi 10*ttot 11*eefsd 12*cvhrtrr 13*vffwwrr 14* wwerw and result in y.txt is... ccc yy lizzzi cvhrtrr I know how to remove number and * and copy lines to new .txt Fo...
by novmar
20 Oct 2013 13:34
Forum: DOS Batch Forum
Topic: copy and rename files
Replies: 5
Views: 4643

Re: copy and rename files

I found one solution and is work

Code: Select all

For /f "tokens=2,3 delims=;" %%a in (x.txt) do copy C:\x-folder\%%a.jpg c:\x-folder\Renamed\%%b.jpg


but this code doesn't recognize CRO letters (ščćžđ)
by novmar
20 Oct 2013 10:46
Forum: DOS Batch Forum
Topic: copy and rename files
Replies: 5
Views: 4643

Re: copy and rename files

yes, without > is work tnx I have one question + if I have x.txt with... date;name-x;12456 date;name-x;1212 data;name-y;1213 data;name-y;57213 data;name-y;125513 data;name-z;11300 and *.jpg file with name name-x.jpg name-y.jpg name-z.jpg now, I know how set code if I have one .jpg For /f "token...
by novmar
19 Oct 2013 07:38
Forum: DOS Batch Forum
Topic: copy and rename files
Replies: 5
Views: 4643

Re: copy and rename files

tnx for help foxidrive, I made code what I need

For /f %%a in (x.txt) do copy C:\x-folder\xyz.jpg > c:\test\%%a.jpg
by novmar
18 Oct 2013 05:04
Forum: DOS Batch Forum
Topic: copy and rename files
Replies: 5
Views: 4643

copy and rename files

Hi, I don't know how to do this, so please help me. I have "xyz.jpg" file and I want to copied several times the same .jpg file and rename into x-folder, but name must read from x.txt file. xyz.jpg must stay unchanged. xyz.jpg -> c:\x-folder\txt(first line).jpg ... 3865.jpg xyz.jpg -> c:\x...
by novmar
09 Oct 2013 14:03
Forum: DOS Batch Forum
Topic: BATCH compare or difference in time
Replies: 2
Views: 3713

BATCH compare or difference in time

I need a batch script which, when run twice, create empty xxx.txt Time between first and second start script is max 10 seconds. I know how to... ...first batch start ... to create txt file with current time ...second batch start ... create xxx.txt file @echo off IF EXIST a.txt goto skip ) ELSE ( ech...