Search found 175 matches
- 06 Aug 2013 11:13
- Forum: DOS Batch Forum
- Topic: proxy list downloader
- Replies: 5
- Views: 19832
Re: proxy list downloader
The -G arguments seems not to effect anything (but I don't understand the manuals description) so I will ask on some other place, near to linux.
- 06 Aug 2013 08:01
- Forum: DOS Batch Forum
- Topic: proxy list downloader
- Replies: 5
- Views: 19832
proxy list downloader
With help of people from this forum, I have made this downloader, which should download proxy lists from different servers. Now I realized that server hidemyadd.com enables to filter out some sort of IPs, so you can save time when reading the lists. In this moment I am debuging hidemyass so there is...
- 06 Aug 2013 07:50
- Forum: DOS Batch Forum
- Topic: Filesize
- Replies: 5
- Views: 4273
Re: Filesize
penpen:
Thanks for reply. Your solution works.
How can I find topics created by me in this forum?
Thanks for reply. Your solution works.
How can I find topics created by me in this forum?
- 06 Aug 2013 04:19
- Forum: DOS Batch Forum
- Topic: Filesize
- Replies: 5
- Views: 4273
Filesize
Hello, I am back after few years trying to familiarize with some codes we made here in past. I am running one script which should detect file size at its start. It looks like this: @echo off REM REQUIREMENTS: CURL, GREP Setlocal EnableDelayedExpansion SET proxy_1=proxy_samai_ru_1.htm SET source_1=ht...
- 06 Sep 2012 04:25
- Forum: DOS Batch Forum
- Topic: script to move files with modulus
- Replies: 9
- Views: 5629
Re: script to move files with modulus
OK I fixed it but I have problem. I have run the script and my files disapeared, they are not in the folder moved. Edit: New fix Setlocal EnableDelayedExpansion @echo off mkdir moved SET c=0 FOR /F %%B IN ('dir *.jpg /b /o:n') DO ( SET /A c=!c!+1 echo !c! set /a remains = c % 6 REM IF !remains! NEQ ...
- 06 Sep 2012 04:09
- Forum: DOS Batch Forum
- Topic: script to move files with modulus
- Replies: 9
- Views: 5629
Re: script to move files with modulus
Or should it be like so with delayedexpansion Setlocal EnableDelayedExpansion @echo off mkdir moved SET c=0 FOR /F %%B IN ('dir *.jpg /b /o:n') DO ( SET /A c=!c!+1 echo !c! set /a remains = c % 6 REM IF !remains! NEQ 0 move %%B /moved ) pause But the arithmetic does not work here and echo displays c+1
- 06 Sep 2012 03:52
- Forum: DOS Batch Forum
- Topic: script to move files with modulus
- Replies: 9
- Views: 5629
Re: script to move files with modulus
I know there's a lot of mistakes yet, but can you tell me what mistakes are in the ocde? @echo off mkdir moved SET c=0 FOR /F %%B IN ('dir *.jpg /b /o:n') DO ( SET c=c+1 set /a remains = c %% 6 IF %%remains NEQ 0 ( move %%B /moved ) ) pause Command set /a remains = c % 6 shows error: Operator not fo...
- 06 Sep 2012 02:08
- Forum: DOS Batch Forum
- Topic: script to move files with modulus
- Replies: 9
- Views: 5629
Re: script to rename files
Yes, I changed from rename to move, because it is more effective. Can you advice SET calculation for modulus? How to calculate this remains = x modulus 6 I am trying something like REM SET /A r = %%x %%%% 6 SET /A X = 6 echo 1) SET /A r = %%x %%%% 6 echo %%x echo 2) SET /A r = %%x %%% 6 echo %%x giv...
- 05 Sep 2012 16:35
- Forum: DOS Batch Forum
- Topic: script to move files with modulus
- Replies: 9
- Views: 5629
script to move files with modulus
Can you help with this? I need script to move files into different folder. There are images exported from video, so they have number of frames, e.g. from a0000.jpg to .. a0997.jpg and I would like to go from a0000.jpg to .. a0997.jpg and move every 2nd - 7th image. (one image skipped in the folder, ...
- 15 Aug 2012 04:15
- Forum: DOS Batch Forum
- Topic: How batch rename files
- Replies: 4
- Views: 4208
Re: How batch rename files
Great, works well. Thanks
- 15 Aug 2012 03:34
- Forum: DOS Batch Forum
- Topic: How batch rename files
- Replies: 4
- Views: 4208
How batch rename files
Hello,
how batch rename files in this format:
000_362 flames 4 small.bmp
000_363 flames 4 bigger.bmp
000_435 trees.bmp
013_435 trees.bmp
010_4728 palms&bushes.bmp
to:
362_000 flames 4 small.bmp
363_000 flames 4 bigger.bmp
435_000 trees.bmp
435_013 trees.bmp
4728_010 palms&bushes.bmp
?
how batch rename files in this format:
000_362 flames 4 small.bmp
000_363 flames 4 bigger.bmp
000_435 trees.bmp
013_435 trees.bmp
010_4728 palms&bushes.bmp
to:
362_000 flames 4 small.bmp
363_000 flames 4 bigger.bmp
435_000 trees.bmp
435_013 trees.bmp
4728_010 palms&bushes.bmp
?
- 03 Aug 2012 04:29
- Forum: DOS Batch Forum
- Topic: script with modulus
- Replies: 4
- Views: 4057
Re: script with modulus
I thought !V!%%T as modulus.
I find that this is not the way I should go to get my results. I find different approach. You can delete this thread.
I find that this is not the way I should go to get my results. I find different approach. You can delete this thread.
- 03 Aug 2012 03:01
- Forum: DOS Batch Forum
- Topic: script with modulus
- Replies: 4
- Views: 4057
script with modulus
In a file, I have series of values like these: 0,093333333 0,011666667 0,35 0,02 0,186666667 0,021666667 0,14 0,013333333 0,163333333 0,02 0,35 (there are periodical decimals) These values per second. I need to get full value per x seconds. I tried to do some script for it: @echo off Setlocal Enable...
- 08 Jul 2012 06:17
- Forum: DOS Batch Forum
- Topic: Double quotes in For loop input [SOLVED]
- Replies: 42
- Views: 46591
Re: Double quotes in For loop input [SOLVED]
Just before he sent his version to me I find out my own version of trimming with help of subroutine: @echo off setlocal enabledelayedexpansion call :sar filein.htm korea.htm "<div style=.display:none.>[0-9]*<\/div>" "" call :sar fileina.htm file.htm "<span style=.display:non...
- 08 Jul 2012 06:13
- Forum: DOS Batch Forum
- Topic: Double quotes in For loop input [SOLVED]
- Replies: 42
- Views: 46591
Final script
Foxidrive helped me to finish the script with trimming of spaces - this is his work: @echo off setlocal enabledelayedexpansion call :sar filein.htm fileina.htm "<div style=.display:none.>[0-9]*<\/div>" "" call :sar fileina.htm file.htm "<span style=.display:none.>[0-9]*<\/sp...