Search found 656 matches
- 12 Feb 2019 06:29
- Forum: DOS Batch Forum
- Topic: findstr /C:""" file.txt&&set found=1 FAILS
- Replies: 6
- Views: 10390
Re: findstr /C:""" file.txt&&set found=1 FAILS
Great! Thanks. I added extra quote (total of 4) but that didn't work either. I had problems with findstr /C:"^|" file.txt returns no matches, while findstr /C:"|" file.txt returns a match (or more). This does not work: findstr /C:"^"" file.txt But this (your version - first quote escaped) works: fin...
- 12 Feb 2019 02:59
- Forum: DOS Batch Forum
- Topic: findstr /C:""" file.txt&&set found=1 FAILS
- Replies: 6
- Views: 10390
findstr /C:""" file.txt&&set found=1 FAILS
Hello! I have .txt file: file.txt Some text Some more text with " quote This works: findstr /C:""" file.txt This fails: findstr /C:""" file.txt&&set found=1 returns: c:\findstr /C:""" file.txt&&set found=1 FINDSTR: Cannot open file.txt&&set FINDSTR: Cannot open found=1 If I want to redirect output t...
- 31 Jan 2019 01:14
- Forum: DOS Batch Forum
- Topic: Syntax error
- Replies: 3
- Views: 5387
Re: Syntax error
Try with this:
change
to
Correct everywhere.
Saso
change
Code: Select all
If "%_WinVer%==Windows 10" (
Code: Select all
If "%_WinVer%"=="Windows 10" (
Saso
- 16 Oct 2018 04:55
- Forum: DOS Batch Forum
- Topic: Deactivate admin privileges
- Replies: 2
- Views: 3968
Re: Deactivate admin privileges
Is scheduled task a solution?
Maybe you can create a scheduled task, run it and then delete it when it is done?
Saso
Maybe you can create a scheduled task, run it and then delete it when it is done?
Saso
- 14 Jul 2018 14:29
- Forum: DOS Batch Forum
- Topic: dir *3*.* does not work as expected
- Replies: 3
- Views: 5190
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_...
- 18 May 2018 04:47
- Forum: DOS Batch Forum
- Topic: date time subtraction
- Replies: 2
- Views: 3592
- 08 May 2018 07:15
- Forum: DOS Batch Forum
- Topic: stamps
- Replies: 25
- Views: 21108
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...
- 26 Apr 2018 00:20
- Forum: DOS Batch Forum
- Topic: stamps
- Replies: 25
- Views: 21108
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...
- 25 Apr 2018 14:00
- Forum: DOS Batch Forum
- Topic: Extract data from website (another problem)
- Replies: 1
- Views: 3157
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
- 25 Apr 2018 11:02
- Forum: DOS Batch Forum
- Topic: stamps
- Replies: 25
- Views: 21108
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
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
- 24 Apr 2018 05:31
- Forum: DOS Batch Forum
- Topic: stamps
- Replies: 25
- Views: 21108
Re: stamps
Well...wow. Thanks Steffen. I knew you experts can do it in a more efficient way.
Saso
Saso
- 24 Apr 2018 04:52
- Forum: DOS Batch Forum
- Topic: Extract data from website (another problem)
- Replies: 1
- Views: 3157
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...
- 24 Apr 2018 01:55
- Forum: DOS Batch Forum
- Topic: stamps
- Replies: 25
- Views: 21108
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...
- 23 Apr 2018 02:57
- Forum: DOS Batch Forum
- Topic: CONVERTCP.exe - Convert text from one code page to another
- Replies: 134
- Views: 289325
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 ...
- 13 Apr 2018 00:19
- Forum: DOS Batch Forum
- Topic: you can download files with certutil
- Replies: 9
- Views: 40212
Re: you can download files with certutil
Update:
target folders must exist (the same goes for BITS).
Saso
target folders must exist (the same goes for BITS).
Saso