Search found 3 matches
- 29 Dec 2015 02:52
- Forum: DOS Batch Forum
- Topic: naming a file in a certain way
- Replies: 4
- Views: 3130
Re: naming a file in a certain way
Hi folks! I need to specify my case. local is the place where files are left and where the batch is. I was thinking if it's possible to automate that renaming process - for now it has been made manually? It's the second phase that actually needs that new name. So how to rename (SET /P phase) file wi...
- 29 Dec 2015 01:51
- Forum: DOS Batch Forum
- Topic: naming a file in a certain way
- Replies: 4
- Views: 3130
Re: naming a file in a certain way
Hi, folks! I was wondering how to get rid of this manual renaming (SET /P and so on). It would be best if it all could be done automatically within this batch: (local is the place where renamed files are left, but the next phase needs that new name.) @ECHO OFF setlocal dir XYZ0*.dat SET /P file=Give...
- 28 Dec 2015 06:57
- Forum: DOS Batch Forum
- Topic: naming a file in a certain way
- Replies: 4
- Views: 3130
naming a file in a certain way
Hi, all! I need to fetch (using ftp) a file from server to a directory on our server In our directory are all the previous files They are named like …XX010.dat, XX011.dat File comes with original name ABC.dat How do I change the name like this: the next file must be renamed like XX012.dat Thanks, Ilpo