Thank you
Foxidrive
penpen
and
einstein1969
for your big help
I have tried all your suggestions in my bach file and get good results.
Jorgegs
Search found 22 matches
- 05 Aug 2016 13:16
- Forum: DOS Batch Forum
- Topic: error in date time calculations
- Replies: 18
- Views: 15181
- 09 Jul 2016 13:47
- Forum: DOS Batch Forum
- Topic: error in date time calculations
- Replies: 18
- Views: 15181
Re: error in date time calculations
Well friends
With your help I can now solve all my posed questions
Thanks foxidrive for your time
Thanks penpen
Thanks einstein1969
Your help was very estimable
Jorgegs
With your help I can now solve all my posed questions
Thanks foxidrive for your time
Thanks penpen
Thanks einstein1969
Your help was very estimable
Jorgegs
- 09 Jul 2016 00:30
- Forum: DOS Batch Forum
- Topic: error in date time calculations
- Replies: 18
- Views: 15181
Re: error in date time calculations
Good morning einstein1969 Your first solution is perfect. for /F "tokens=1-8 delims=:.," %%a in ("%t1%:%time: =0%") do set /a "a=(((1%%e-1%%a)*60)+1%%f-1%%b)*6000+1%%g%%h-1%%c%%d, a+=(a>>31)&8640000" echo time elapsed:%a%cs set /a a=%a%/100 But I get problem with yo...
- 06 Jul 2016 14:22
- Forum: DOS Batch Forum
- Topic: error in date time calculations
- Replies: 18
- Views: 15181
Re: error in date time calculations
Thank you penpen for the explanation about the calculation octal error Your solution is very good. I have tried in a part of my long batch file, and the result is optimal. I must change forward all the other situations in my batch file. My problem was also, because when I use set /a or set var with ...
- 02 Jul 2016 22:42
- Forum: DOS Batch Forum
- Topic: error in date time calculations
- Replies: 18
- Views: 15181
Re: error in date time calculations
Thanks for the solutions But using all, I get the problem when origen beginning date (example year:month/time) 2016/12 23:09:08,33 and the end time is greater in date, and less in time example 2017/01 09:08:09,54 When the process runs by night and pass midnight In this case, is there some solution t...
- 30 Jun 2016 13:27
- Forum: DOS Batch Forum
- Topic: error in date time calculations
- Replies: 18
- Views: 15181
Re: error in date time calculations
Thanks einstein1969 I submit to you: with the new proposed for ........., a/=100 I get time elapsed=:-352749 with the first solution for ..... time elapsed %a%cs and after dividing by 100 is correct and I get time elapsed=:8 I do'nt understand why The last proposed for.....,a/=100 , do'nt work corre...
- 29 Jun 2016 23:14
- Forum: DOS Batch Forum
- Topic: error in date time calculations
- Replies: 18
- Views: 15181
Re: error in date time calculations
Thank you "foxidrive" It was the first time I use the ingmur service. Could you see the sended images ? Which are the numbers in time calculations, who causes possible problems ? 0, 8 , 9, space ??? The system proposed by Einstein1969, Works perfect. In "my system calculations" W...
- 29 Jun 2016 00:42
- Forum: DOS Batch Forum
- Topic: error in date time calculations
- Replies: 18
- Views: 15181
Re: error in date time calculations
Thank you Einstein1969 It Works !!!! I try it and repeat the same operation 6 times with different elapsed results. 1 elapsed time 7307 cs 73 sec 2 elapsed time 3930 cs 39 sec 3 elapsed time 3428 cs 34 sec 4 elapsed time 7533 cs 75 sec 5 elapsed time 3637 cs 36 sec In this cases there is a small 2 o...
- 28 Jun 2016 13:07
- Forum: DOS Batch Forum
- Topic: error in date time calculations
- Replies: 18
- Views: 15181
Re: error in date time calculations
Thanks Foxidrive I put the image with a correct functional and the same with error marked with red circle The number of files are correct, there is one more due to the register of the action in the prior operation You can see the difference of time between both identical procedures If the time calcu...
- 27 Jun 2016 05:09
- Forum: DOS Batch Forum
- Topic: error in date time calculations
- Replies: 18
- Views: 15181
error in date time calculations
Hello Friends I have a big problem which I do’nt know how to bypass. I have a long batch file which works perfect. It makes long (hours elapsed) backup from divers selected directories, and controls the elapsed individual times and the total, according to the directories selected. It works perfect a...
- 30 May 2016 06:17
- Forum: DOS Batch Forum
- Topic: Extract only numeric content without spaces
- Replies: 11
- Views: 10010
Re: Extract only numeric content without spaces
This is fantastic
Thanks for your help.
For me the command FOR is the understanded one.
It is very powerful and for me to complicated.
It is a pity that I do'nt know how to use it.
In any case, thanks, thanks, thanks.
Jorgegs
Thanks for your help.
For me the command FOR is the understanded one.
It is very powerful and for me to complicated.
It is a pity that I do'nt know how to use it.
In any case, thanks, thanks, thanks.
Jorgegs
- 30 May 2016 01:14
- Forum: DOS Batch Forum
- Topic: Extract only numeric content without spaces
- Replies: 11
- Views: 10010
Re: Extract only numeric content without spaces
Thank you "foxidrive". I put you in a "DOS" monument Now I get this result var-Directories=26 var-Files=1037 var-Size=46.702.989 var-sizeondisk=46.702.989 But I need only the numbers as content for 4 separate var, without names and = symbol. Because i need them to add the numbers...
- 29 May 2016 22:59
- Forum: DOS Batch Forum
- Topic: Extract only numeric content without spaces
- Replies: 11
- Views: 10010
Re: Extract only numeric content without spaces
Fantastic
Thanks for your answer to my problem.
The only question with this solution, is that I get the result all in one var
I need the result in 4 different var.
In any case thank you very much for your great helpfulness
Jorgegs
Thanks for your answer to my problem.
The only question with this solution, is that I get the result all in one var
I need the result in 4 different var.
In any case thank you very much for your great helpfulness
Jorgegs
- 29 May 2016 13:45
- Forum: DOS Batch Forum
- Topic: Extract only numeric content without spaces
- Replies: 11
- Views: 10010
Re: Extract only numeric content without spaces
Thanks for your answer Sorry for the examples Dudir.exe is a renamed program by me, which gives me the var result using FOR /f "tokens=1*delims=:" %%G in ('findstr /n "^" D:\1G\GORIGEN.txt') do if %%G equ 1 SET jgGLINEA=%%H FOR /f "tokens=1*delims=:" %%G in ('findstr /n...
- 29 May 2016 12:42
- Forum: DOS Batch Forum
- Topic: Extract only numeric content without spaces
- Replies: 11
- Views: 10010
Extract only numeric content without spaces
Hello friends I have a result in two var like this Files: 134571 Directories: 3 Which I get with the help from the friend Squashman in this fórum with this expresión dudir.exe -n -q |findstr /b /i "Files: Directories:" >file2.txt or with FOR /f "tokens=1*delims=:" %%G in ('findst...