Search found 341 matches

by miskox
28 Dec 2019 14:13
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 107
Views: 69107

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

FYI: first version (.cpp) has 131 lines (including some 50 lines of comments and help). Version 7.2 (.c) has (7.3 source is not available yet) has 1573 lines.

Saso
by miskox
27 Dec 2019 03:16
Forum: DOS Batch Forum
Topic: Set statement not working
Replies: 2
Views: 781

Re: Set statement not working

First you must replace ' with ": set "FullTarget1=Docfxit 192.168.168.9" set "FullTarget2=DocfxitLT 192.168.168.7" set "FullTarget3=ErrolLT530 192.168.2.5" set "FullTarget4=CONSOLE2-I5 192.168.168.16" Then replace: If defined FullTarget4 (If /i not %FullTarget4%.=="". echo. %FullTarget4%>>%~f0.txt) ...
by miskox
25 Dec 2019 12:38
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 107
Views: 69107

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

I received the information that option /l is broken on XP. The update to v7.1 is supposed to fix that. Although I have to wait for feedback since I can't test on XP anymore. Virustotal scans of version 7.1: x86: https://www.virustotal.com/gui/file/86099ad973b84af66e2e4e517d8a6d67b66222e2c6246b0747a...
by miskox
25 Dec 2019 12:25
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 107
Views: 69107

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

Steffen: thanks again for all the updates. If required you can remove the XP support (I will use the latest version supported by XP (as mentioned I only need CP852 <-> CP1250 conversion)).

As it looked like for a simple project...

Saso
by miskox
13 Nov 2019 10:49
Forum: DOS Batch Forum
Topic: Determine if laptop is running on AC or battery
Replies: 7
Views: 1518

Re: Determine if laptop is running on AC or battery

Your first solution works great on laptop. Sorry for a false alarm.

Thanks.

Saso
by miskox
11 Nov 2019 04:30
Forum: DOS Batch Forum
Topic: Determine if laptop is running on AC or battery
Replies: 7
Views: 1518

Re: Determine if laptop is running on AC or battery

Sorry for a late reply. You might be right! I was running it on a desktop computer. I will try that on a laptop computer. I use XP on that machine but WMIC works.

I will let you know about the results.

Thanks.
Saso
by miskox
11 Nov 2019 04:29
Forum: DOS Batch Forum
Topic: Play a sound (.wav) file, without opening an application
Replies: 4
Views: 1298

Re: Play a sound (.wav) file, without opening an application

You could ECHO BEL (0x07) (or many of them).

Saso
by miskox
08 Nov 2019 10:25
Forum: DOS Batch Forum
Topic: Determine if laptop is running on AC or battery
Replies: 7
Views: 1518

Re: Determine if laptop is running on AC or battery

Thank Steffen! I get ERROR. WMIC does not work. Error I get: ERROR: Description = Not found Is this helpful: https://devblogs.microsoft.com/scripting/powertip-use-powershell-to-determine-if-a-laptop-is-running-on-battery/ or this: https://devblogs.microsoft.com/scripting/using-windows-powershell-to-...
by miskox
08 Nov 2019 06:14
Forum: DOS Batch Forum
Topic: Determine if laptop is running on AC or battery
Replies: 7
Views: 1518

Determine if laptop is running on AC or battery

This topic https://www.dostips.com/forum/viewtopic.php?f=3&t=9345#p60689 could be useful. I would like to know if a laptop is running on AC or on battery. Just a few days ago I was doing some work on my laptop when electricity was interrupted (for 2+ hours) because main power line 110kV was damaged ...
by miskox
15 May 2019 03:29
Forum: DOS Batch Forum
Topic: Preparation before concatenation
Replies: 7
Views: 1676

Re: Preparation before concatenation

If file format allows this then you could use

Code: Select all

copy *.m3u* new_file.m3u
Saso
by miskox
14 Apr 2019 07:00
Forum: DOS Batch Forum
Topic: NEED HELP WITH CHESS TOURNMENT FILES
Replies: 3
Views: 1357

Re: NEED HELP WITH CHESS TOURNMENT FILES

Though OP should reply, here is a link to wiki with some info regarding PGN file format: https://en.wikipedia.org/wiki/Portable_Game_Notation

Saso
by miskox
22 Mar 2019 02:42
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 107
Views: 69107

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

What was at first a 'simple' problem for me (converting .txt files between CP852 and CP1250 -see https://www.dostips.com/forum/viewtopic.php?p=50289#p50289) is now an ongoing project. Steffen once wrote I don't expect to get bug reports because the utility will not be found and used that often. How ...