Search found 3 matches
- 10 Sep 2019 05:23
- Forum: DOS Batch Forum
- Topic: Cmd For loop is allergic to certain file names
- Replies: 6
- Views: 7214
Re: Cmd For loop is allergic to certain file names
Sehr interessant Steffen. Vielen Dank
- 10 Sep 2019 03:05
- Forum: DOS Batch Forum
- Topic: Cmd For loop is allergic to certain file names
- Replies: 6
- Views: 7214
Re: Cmd For loop is allergic to certain file names
Thank you for that complex solution. Actually I found a way to do it the original manner with an if statement seeking if the file already has the "2011.01.15 " string in it. It involves quite a lot more code than your single 'for /f' statement But that exotic line of code will be interesting to unra...
- 08 Sep 2019 05:28
- Forum: DOS Batch Forum
- Topic: Cmd For loop is allergic to certain file names
- Replies: 6
- Views: 7214
Cmd For loop is allergic to certain file names
I can finally add a date at the beginning to a series of files located in one folder. I use this : @set var1="2011.01.15 " @set var2= @set var3= @for %%i in (*.txt) do call :extra %%i @goto :eof :extra @set var2=%1 @set var3=%var1%%var2% @ren %var2% %var3% @echo "-----" with these three files in the...