Search found 503 matches

by carlos
13 Sep 2018 19:14
Forum: DOS Batch Forum
Topic: Any difference in MODE or CHCP when setting code page?
Replies: 2
Views: 4356

Re: Any difference in MODE or CHCP when setting code page?

Only on windows 2000 and windows xp: "chcp" do a clear of the screen (like cls) after change the codepage from a double byte codepage to a single byte codepage and viceversa. With "mode con cp select" it not happen. Evidence: Before change from 932 codepage to 850 using chcp : https://image.ibb.co/j...
by carlos
12 Sep 2018 07:47
Forum: DOS Batch Forum
Topic: consolesoft.com is closing
Replies: 13
Views: 13192

Re: consolesoft.com is closing

Thanks.
I will support the site a little bit more time., but I will apply code signing of the executables.
I hope have nice notices about this.
by carlos
02 Sep 2018 11:35
Forum: DOS Batch Forum
Topic: consolesoft.com is closing
Replies: 13
Views: 13192

consolesoft.com is closing

Hi, I've been away from batch programming for some time. I was maintaining since 2014 my personal site on windows console programming: consolesoft.com Sometimes in this forum I published some links to it. Someone recently wrote me for my bg program. The bg program is a collection of program for do t...
by carlos
15 Jun 2018 19:05
Forum: DOS Batch Forum
Topic: CONVERTCP.exe - Convert text from one code page to another
Replies: 134
Views: 213955

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

Thanks aGerman, i get the last version.
The only thing I did not like was having to download the source code file, the readme and the pdf file of the codes separately. I would have liked a zip file that had everything necessary.
by carlos
06 May 2018 14:52
Forum: DOS Batch Forum
Topic: Create nul and all ascii characters with only batch
Replies: 110
Views: 112505

Re: Create nul and all ascii characters with only batch

On this thread (https://www.dostips.com/forum/viewtopic.php?f=3&t=8513), with sst user we found that the codepage used affect the result of the .chr files. The case is when the user uses a native double byte code page like 932 or 950. Here, is a patched version. :: This code creates one single byte....
by carlos
06 May 2018 14:49
Forum: DOS Batch Forum
Topic: Create nul and all ascii characters with only batch
Replies: 110
Views: 112505

Re: Create nul and all ascii characters with only batch

batmanbatman wrote:
06 May 2018 08:53
The program is not work in win10. copy file /b newfile /a is not work in win10.
@batmanbatman please you can provide more details about your windows 10 version, like codepage that you use?
by carlos
03 May 2018 10:12
Forum: DOS Batch Forum
Topic: Alternate method to get TAB, Carriage return and possibly all others
Replies: 35
Views: 34762

Re: Alternate method to get TAB, Carriage return and possibly all others

I replace utf-8 by 437 trying avoid the utf-8 bug on xp, but finally the bug also extend to utf-7. If you look the unofficial patch source it covers utf-8 and utf-7. I got is a nice technique and a real replacement for certutil. For xp and windows 2000 we always can use debug.exe for generate binary...
by carlos
02 May 2018 15:59
Forum: DOS Batch Forum
Topic: [Info] Saving current codepage
Replies: 13
Views: 12980

Re: [Info] Saving current codepage

@aGerman I tested on russian, and is ok. I write the output to the first post. I look with a hexadecimal editor and the space next to the colon is a space. Maybe that you mentions applies to other version of windows on russian, like xp. Screenshot: https://image.ibb.co/g8vp67/Virtual_Box_win2000_rus...
by carlos
02 May 2018 13:55
Forum: DOS Batch Forum
Topic: [Info] Saving current codepage
Replies: 13
Views: 12980

Re: [Info] Saving current codepage

Carlos May I ask you how you did the tests? Did you find the messages in the internet, or did you change the localization on your computer, or did you read the strings out of the MUI files? Steffen @aGerman: I install a real windows 2000 of each specified language on a virtualbox machine, then I sa...
by carlos
02 May 2018 11:48
Forum: DOS Batch Forum
Topic: [Info] Saving current codepage
Replies: 13
Views: 12980

Re: [Info] Saving current codepage

Thanks @Compo. I prefer the second version that you provide. I think is a bad idea silent a message error. I tested the second version and also works ok. I put that on the first message, because is more clean code. Remove the end dot using the name expansion is a elegant technique. Eventually if in ...
by carlos
02 May 2018 07:19
Forum: DOS Batch Forum
Topic: [Info] Saving current codepage
Replies: 13
Views: 12980

Re: [Info] Saving current codepage

Mmm, i don't know the availability of the mode command on different versions of windows. Also, I have tested the routine using chcp for getting the current chcp. If it works, I not see a reason for change it. The only advantage that I now see of use mode instead chcp is for change the codepage on wi...
by carlos
01 May 2018 20:38
Forum: DOS Batch Forum
Topic: Alternate method to get TAB, Carriage return and possibly all others
Replies: 35
Views: 34762

Re: Alternate method to get TAB, Carriage return and possibly all others

@penpen, now I see that the core of the function is rely on a internal conversion from utf-7 to utf-16le using set /p. I test on windows 10 ok, with some changes, I use codepage 437 instead utf-8 and works ok, also I encode the utf16 file to utf-7 with convertcp and the result encoded is a little mo...
by carlos
01 May 2018 15:39
Forum: DOS Batch Forum
Topic: Alternate method to get TAB, Carriage return and possibly all others
Replies: 35
Views: 34762

Re: Alternate method to get TAB, Carriage return and possibly all others

@penpen: nice technique, is new for me. Please you can explain it a little bit.? Also, If I remember well, the utf-8 bug on windows xp only affects when you run code in a batch file, because cmd tries convert the source code of the batch file to that codepage calling to a winapi function with a inco...
by carlos
01 May 2018 14:56
Forum: DOS Batch Forum
Topic: [Info] Saving current codepage
Replies: 13
Views: 12980

[Info] Saving current codepage

I'm doing some test on windows in different languages, for save the current codepage, for restore later with chcp command. I see almost two codes for save the current codepages, but that fails on some languages. Chcp outputs: German: ( it have a dot at the end ) Aktive Codepage: 850. Chinese Traditi...
by carlos
30 Apr 2018 21:13
Forum: DOS Batch Forum
Topic: Alternate method to get TAB, Carriage return and possibly all others
Replies: 35
Views: 34762

Re: Alternate method to get TAB, Carriage return and possibly all others

@sst seems that is needed relaunch the cmd instance as you says because cmd.exe use a internal variable CurrentCP that is only initialized when it start the first time, this variable is used on some internal methods, regarding of the call to chcp.exe, that calls to winapi functions SetConsoleOutputC...