Search found 397 matches

by miskox
14 Jul 2018 14:29
Forum: DOS Batch Forum
Topic: dir *3*.* does not work as expected
Replies: 3
Views: 2521

dir *3*.* does not work as expected

Hello all! Put this .cmd in an empty folder: @echo off break>FreeYD_2.1.2.exe break>Pro_V2.1.9.exe break>Pro_V3.exe break>Pro_V3_1_5.exe break>Pro_V3_2_8.exe dir *3*.* del *.exe echo exe files deleted dir break>GIHO_TubeGet_FreeYD_1.2.7.exe break>GIHO_TubeGet_FreeYD_2.1.2.exe break>GIHO_TubeGet_Pro_...
by miskox
18 May 2018 04:47
Forum: DOS Batch Forum
Topic: date time subtraction
Replies: 2
Views: 1878

Re: date time subtraction

Maybe this is useful:

viewtopic.php?p=40009#p40009

Saso
by miskox
08 May 2018 07:15
Forum: DOS Batch Forum
Topic: stamps
Replies: 25
Views: 11070

Re: stamps

Sorry for a short delay (I was offline for more than a week). Dave! Great! I just have another challenge: can available quantity of stamps be added? For example: Maybe I don't have stamp 'C' (1.00 EUR) at hand so optimal solution for 0.60 EUR of C+0.20 cannot be used. So next best solution might wor...
by miskox
26 Apr 2018 00:20
Forum: DOS Batch Forum
Topic: stamps
Replies: 25
Views: 11070

Re: stamps

@Dave: Thanks! Great! Your code is too complicated to understand. Could you please make a list of stamps (values/display) more user friendly so new stamps could be added or removed with ease. One more thing: how can I use comma as a decimal point? If I replace '0.20' with '0,20' I get divide by zero...
by miskox
25 Apr 2018 14:00
Forum: DOS Batch Forum
Topic: Extract data from website (another problem)
Replies: 1
Views: 1812

Re: Extract data from website (another problem)

I checked .html file: looks like I need these: - category is between id='table1' name=' and '><thead> - operating systems supported are between <br><br></td><td> and <br></td><td> If there is more than one they are separated by <br> Well, I don't know how to get this information. Anyone? Saso
by miskox
25 Apr 2018 11:02
Forum: DOS Batch Forum
Topic: stamps
Replies: 25
Views: 11070

Re: stamps

Wow!

Thank you all! Thanks Dave for finding that 'mistake'.

At first it looked like an easy task and it turned out to be a great exercise.

Thank you all.

Saso
by miskox
24 Apr 2018 05:31
Forum: DOS Batch Forum
Topic: stamps
Replies: 25
Views: 11070

Re: stamps

Well...wow. Thanks Steffen. I knew you experts can do it in a more efficient way.

Saso
by miskox
24 Apr 2018 04:52
Forum: DOS Batch Forum
Topic: Extract data from website (another problem)
Replies: 1
Views: 1812

Extract data from website (another problem)

Hello! Here https://www.dostips.com/forum/viewtopic.php?f=3&t=7852#p52292 Hackoo provided very useful tool to extract links from a website. I have this html (107 of them) 1200.html - see attached .zip (it is from lenovo.com). Hackoo's solution gives me this: http://support.lenovo.com/en_US/downloads...
by miskox
24 Apr 2018 01:55
Forum: DOS Batch Forum
Topic: stamps
Replies: 25
Views: 11070

stamps

Hello! Below is a program that calculates what stamps I need for a specific value (value entered is in cents! - this might probably easiy be changed: maybe: append "00" to the entered value, get tokens 1 and 2, delimited by a comma and then first two digits of token 2). So the result is optimized to...
by miskox
23 Apr 2018 02:57
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 130
Views: 122282

Re: CONVERTCP.exe - Convert text from one code page to another

This having said, there is still a risk just in case you immediately access the new file while there might be yet unwritten data in the buffer. E.g. if you convert a file using CONVERTCP in a script and you want to process the new file in the very next line of the script then you might get trouble ...
by miskox
13 Apr 2018 00:19
Forum: DOS Batch Forum
Topic: you can download files with certutil
Replies: 9
Views: 26349

Re: you can download files with certutil

Update:

target folders must exist (the same goes for BITS).

Saso
by miskox
12 Apr 2018 02:45
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 130
Views: 122282

Re: CONVERTCP.exe - Convert text from one code page to another

Thanks again Steffen! Though I never had this problem it is good to have new version. Test file supplied has 40,000+ lines - my test file had more. So strange how I never encountered the problem. Saso P.S.: Steffen: maybe you could add a date below your name in the first post when you changed the fi...
by miskox
12 Apr 2018 02:38
Forum: DOS Batch Forum
Topic: you can download files with certutil
Replies: 9
Views: 26349

Re: you can download files with certutil

Very good! At work I cannot use wget.exe - it does not work. BITS transfer works but it is veeeery slow. certutil.exe solution can be compared with wget.exe - downloads at full speed. Though input and output files must (probably) be set (no wildcard downloading for example, or complete web sites). O...
by miskox
12 Apr 2018 02:31
Forum: DOS Batch Forum
Topic: Why REM inside a block?
Replies: 14
Views: 7081

Re: Why REM inside a block?

Hello all!

Sorry for a 'short' (long?) delay in giving an answer (I was ill, my wife had a surgery... so priorities change).

Thank you all for your tests, thoughts...

Saso
by miskox
16 Feb 2018 05:42
Forum: DOS Batch Forum
Topic: Why REM inside a block?
Replies: 14
Views: 7081

Why REM inside a block?

Hello all! I just saw this post https://www.dostips.com/forum/viewtopic.php?p=9#p9 Quote: fc "%file1%" "%file2%">NUL&&( echo the files are equal rem keep this rem as last command in the block )||( echo the files are different ) Question: why should that REM line be there? Thanks. Saso