Search found 9 matches

by Zick
05 Jul 2013 16:39
Forum: DOS Batch Forum
Topic: Rename files - # of week
Replies: 15
Views: 16271

Re: Rename files - # of week

BTW does something in that script change my PC settings somehow? Cause I had a simple batch @echo off start firefox https://docs.google.com/spreadsheet/ccc?key=0ArP_code and it worked well, now when I start it, it keeps opening the cmd till PC freezes... And my iexplorer is odd as well, it has some ...
by Zick
05 Jul 2013 16:21
Forum: DOS Batch Forum
Topic: Rename files - # of week
Replies: 15
Views: 16271

Re: Rename files - # of week

set /A week=(days+1)/7+1 Would this fix it? ---------- Oh, thx a lot!!! Next time I'll just move to another country! Less work than with this. Now how do I thumbs you up or reputation you or something. Thanks so much again, I'll go to bed after like 4 days of googling and randoming with a code... H...
by Zick
05 Jul 2013 16:16
Forum: DOS Batch Forum
Topic: Rename files - # of week
Replies: 15
Views: 16271

Re: Rename files - # of week

So yea, 28th week, it goes to 29th on 12-07 and 28th on 05-07, as if start of the week was Friday.
by Zick
05 Jul 2013 16:03
Forum: DOS Batch Forum
Topic: Rename files - # of week
Replies: 15
Views: 16271

Re: Rename files - # of week

28. week, as you said, but it's 27th. I think - not sure whether to trust that website, lol.
http://www.epochconverter.com/epoch/weeknumbers.php
by Zick
05 Jul 2013 15:46
Forum: DOS Batch Forum
Topic: Rename files - # of week
Replies: 15
Views: 16271

Re: Rename files - # of week

fri 05.07.2013
by Zick
05 Jul 2013 15:39
Forum: DOS Batch Forum
Topic: Rename files - # of week
Replies: 15
Views: 16271

Re: Rename files - # of week

But you have only 3 token: "05", "07", and "2013". I've tried 1-3, but there was no change, so I tried random stuff, no change either. Is it my PC settings then? Anything from 1-3 to 1-31 and the outcome is still the same %%d - for me is "Mon 31", not only &q...
by Zick
05 Jul 2013 15:21
Forum: DOS Batch Forum
Topic: Rename files - # of week
Replies: 15
Views: 16271

Re: Rename files - # of week

To make the code work on your computer you have to modify the upper for loop: the char after "delim=" part is the character between the numbers (or words), you may use two chars if needed. And the variables in the upper block are (%%d(Monday), %%e(31), %%f(12), %%g(2013)), lower block is ...
by Zick
05 Jul 2013 15:18
Forum: DOS Batch Forum
Topic: Rename files - # of week
Replies: 15
Views: 16271

Re: Rename files - # of week

Why does Aacini's answer not work? Did you get error messages or unexpected results? This is not helpful, for any reason: sadly it seems it's not working, for some reason Oh, sorry about that. I thought it'd do the same as it does to me... I didn't know about the PC differences, either way it renam...
by Zick
05 Jul 2013 08:03
Forum: DOS Batch Forum
Topic: Rename files - # of week
Replies: 15
Views: 16271

Rename files - # of week

I need to rename files like this "date ABC #ofWeek.week". One of the dozens answers I got (none of them working) is here: @echo off for /F "tokens=1-5 delims=/" %%d in ("%date%") do ( set ddmmyy=%%e.%%f.%%g set /A dd=1%%e-100, mm=1%%f-100, yy=%%g, yyM1=yy-1 ) :: Get Jul...