Search found 503 matches
- 30 Apr 2018 16:20
- Forum: DOS Batch Forum
- Topic: Alternate method to get TAB, Carriage return and possibly all others
- Replies: 35
- Views: 36043
Re: Alternate method to get TAB, Carriage return and possibly all others
It will very useful found a solution. @carlos I've found that, after issuing chcp command, initiating a new cmd instance on the same console would resolve the code page issue for that new cmd instance. So for that particular version of genchr that I've used as test case in the previous post, puttin...
- 27 Apr 2018 17:29
- Forum: DOS Batch Forum
- Topic: Alternate method to get TAB, Carriage return and possibly all others
- Replies: 35
- Views: 36043
Re: Alternate method to get TAB, Carriage return and possibly all others
Yes, I check that it affect the copy command in text mode (ignoring sometimes the 1a characters as end of file). I think that maybe the character before 1a character can be interpreted as a special codepoint in some multibyte codepage, thus turning the next 1a character loss the meaning of end of fi...
- 27 Apr 2018 07:53
- Forum: DOS Batch Forum
- Topic: Alternate method to get TAB, Carriage return and possibly all others
- Replies: 35
- Views: 36043
Re: Alternate method to get TAB, Carriage return and possibly all others
@sst Your code works correctly. But I found the cause why it not works on my pc, even with using chcp. This was the output: https://image.ibb.co/epm86x/tabtest.png The cause of the problem was a registry key that I export to this: cp_950.reg Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Co...
- 26 Apr 2018 19:11
- Forum: DOS Batch Forum
- Topic: Bug cmd windows 10 encoding utf-8 input redirection
- Replies: 2
- Views: 5738
Re: Bug cmd windows 10 encoding utf-8 input redirection
I use the type command, and also for /f and all convert to the same "nandu" text. Edit: I found that the problem was the font "Terminal", changing to font: "Lucida Console" show the correct characters. Thus, seems that the syntax-redirection.html documentation should be updated, because, it accept r...
- 26 Apr 2018 18:41
- Forum: DOS Batch Forum
- Topic: Cmd windows 10 allow variables with spaces at the right
- Replies: 3
- Views: 3857
Re: Cmd windows 10 allow variables with spaces at the right
Yes, I confirm it, is the same on windows xp. But today I write some code like that. I forget that feature.
- 26 Apr 2018 18:22
- Forum: DOS Batch Forum
- Topic: Bug cmd windows 10 encoding utf-8 input redirection
- Replies: 2
- Views: 5738
Bug cmd windows 10 encoding utf-8 input redirection
Hello, I found that internally cmd.exe interpret the content of a input redirection improperly.
I have this file encoded as utf-8:
If i run this command:
it output:
It convert improperly the ñ to n and the ú to u.
I have this file encoded as utf-8:
Code: Select all
ñandú
Code: Select all
chcp 65001
(set /p "content=") < in.txt
echo %content%
Code: Select all
nandu
- 26 Apr 2018 18:00
- Forum: DOS Batch Forum
- Topic: Cmd windows 10 allow variables with spaces at the right
- Replies: 3
- Views: 3857
Cmd windows 10 allow variables with spaces at the right
Hello. This is new for me.
On cmd.exe of windows 10 the variable names allow spaces:
it output:
On cmd.exe of windows 10 the variable names allow spaces:
Code: Select all
set var=a
set var =b
set var =c
echo %var%
echo %var %
echo %var %
Code: Select all
a
b
c
- 26 Apr 2018 17:58
- Forum: DOS Batch Forum
- Topic: Alternate method to get TAB, Carriage return and possibly all others
- Replies: 35
- Views: 36043
Re: Alternate method to get TAB, Carriage return and possibly all others
@sst I not get to work correctly the new NLSAscii.cmd using codepage 950. Also, this not work using codepage 950: ((for /L %%P in (1,1,70) do pause>nul)&set /p "TAB=")<"%COMSPEC%" set "TAB=%TAB:~0,1%" The difference between using the input redirection and use the Type command (both uses the DPATH en...
- 26 Apr 2018 16:42
- Forum: DOS Batch Forum
- Topic: CONVERTCP.exe - Convert text from one code page to another
- Replies: 134
- Views: 219320
Re: CONVERTCP.exe - Convert text from one code page to another
I think the user should not care about things like the internal way of do the work. I think is better that the program internally take the best decision for get the accurate work. If the conditions are accomplish, it should use thread, otherwise it should not use thread. But this decision should be ...
- 23 Apr 2018 16:24
- Forum: DOS Batch Forum
- Topic: Alternate method to get TAB, Carriage return and possibly all others
- Replies: 35
- Views: 36043
Re: New Universal method to get TAB, Carriage return and possibly all others
"Check with your Hex viewer." I found that set the correct codepage at the begin of the script is needed. Casually, playing with the nls files I set my codepage to 950. When I run GetMZBits again. It have corrupt data. Also if you run the routine for set the TAB variable using codepage 950 the varia...
- 21 Apr 2018 17:23
- Forum: DOS Batch Forum
- Topic: Alternate method to get TAB, Carriage return and possibly all others
- Replies: 35
- Views: 36043
Re: New Universal method to get TAB, Carriage return and possibly all others
Very interesting post sst. For the get the CR I not found this excellent: for /F %%Z in ('copy /Z "%~dpf0" nul') do set "CR=%%Z" Because it fails if the batch script have the readonly attribute. More details here: https://www.dostips.com/forum/viewtopic.php?f=3&t=4741&start=90#p40757 I prefer this i...
- 13 Apr 2018 11:09
- Forum: DOS Batch Forum
- Topic: you can download files with certutil
- Replies: 9
- Views: 36033
Re: you can download files with certutil
Very interesting. The only disadvantage is that the file is cached in two additional locations like this: %UserProfile%\AppData\LocalLow\Microsoft\CryptnetUrlCache\Content %UserProfile%\AppData\Local\Microsoft\Windows\INetCache\IE\43LG2WYW\ I found this using the -v parameter that show more info. ce...
- 31 Oct 2017 19:17
- Forum: DOS Batch Forum
- Topic: Enabling the internal debug outputs of cmd.exe
- Replies: 18
- Views: 39191
Re: Enabling the internal debug outputs of cmd.exe
Wow, excellent discovery @npocmakanpocmaka_ wrote:On windows 10 GeToken and Ungetting functions are no more printed.
Another way to do this on win10 is this line:
Should be last one in the file - without new lines or anything else behind the closing bracket.Code: Select all
break&(:#)
[/code]
- 04 Apr 2017 18:31
- Forum: DOS Batch Forum
- Topic: diamond.exe is still required 20 years after, curiosity
- Replies: 2
- Views: 4145
diamond.exe is still required 20 years after, curiosity
I try create a cabinet file with quantum compression, using iexpress.exe. But It requires diamond.exe. It is not present on windows 10. https://image.ibb.co/jow8tv/diamond_required.png I not know all the story, seems that diamond.exe was renamed makecab.exe round 1997. Anyways: diamond.exe support q...
- 02 Apr 2017 20:45
- Forum: DOS Batch Forum
- Topic: Rediscovery of BG.exe (now v3.4), the best batch utility ever created!
- Replies: 3
- Views: 5940
Re: Rediscovery of BG.exe (now v3.4), the best batch utility ever created!
I published the new version. It updates sprite.exe and bg.exe.
bg.exe font was not working ok on windows 10, I fixed it.
sprite.exe now uses an associative array. If in a command line you uses 10 times the same spr file with different coords, it read the spr file once time.
bg.exe font was not working ok on windows 10, I fixed it.
sprite.exe now uses an associative array. If in a command line you uses 10 times the same spr file with different coords, it read the spr file once time.