Search found 470 matches

by Liviu
28 Jan 2017 22:02
Forum: DOS Batch Forum
Topic: Foxidrive has left us
Replies: 23
Views: 4744

Re: Foxidrive has left us

Late to say goodbye, but no less sad to hear the news... It's longer than I remember since I first crossed paths with him on usenet, then here. R.I.P. foxidrive, or better yet, -- Regards, Mic, as you used to sign off.

Liviu
by Liviu
29 Nov 2015 02:47
Forum: DOS Batch Forum
Topic: revamped forum
Replies: 38
Views: 5415

Re: revamped forum

Is there a legend to the new icons in the main forum list? I'd guess that "white" = "read", "white+dot" = "posted into", and "blinking" is "heavier" than "static" though not sure how "weight" is assessed.

Liviu
by Liviu
10 Nov 2015 20:29
Forum: DOS Batch Forum
Topic: About codepage
Replies: 10
Views: 1889

Re: About codepage

I've not read all in your links but it seems they're referring only to utf-8, not 16, that is what i want to achieve. Not so, check $chrW.cmd in http://www.dostips.com/forum/viewtopic.php?p=33810#p33810 (which is part of the 1st link I posted). If you want to hardcode Unicode strings in the batch f...
by Liviu
09 Nov 2015 11:10
Forum: DOS Batch Forum
Topic: About codepage
Replies: 10
Views: 1889

Re: About codepage

i've discovered that the "chcp 65001" i was using enables the unicode 8 bit, while characters on the linked website are in the unicode 16 bit. Technically UTF-8 and UTF-16 are both Unicode encodings. Also note that running batch files under "chcp 65001" does not work at all unde...
by Liviu
25 Aug 2015 20:54
Forum: DOS Batch Forum
Topic: Terminal font & codepage 437
Replies: 4
Views: 2071

Re: Terminal font & codepage 437

So the choice of the raster font is the worst choice to make if you want to write an application that is executed in the same way on different PCs around the world? Pretty much, yes. and so in the case of raster fonts choosing the codepage it is irrelevant? As far as output goes, yes. The active co...
by Liviu
20 Aug 2015 10:35
Forum: DOS Batch Forum
Topic: Terminal font & codepage 437
Replies: 4
Views: 2071

Re: Terminal font & codepage 437

Terminal is a raster font, and is codepage specific. In your case the OEM codepage of the Windows installation is 850, and Terminal matches Lucida Console under chcp 850. That's the expected behavior, see for example http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/chcp...
by Liviu
28 Mar 2015 22:01
Forum: DOS Batch Forum
Topic: Functional carriage return literal within a batch script!
Replies: 5
Views: 5452

Re: Functional carriage return literal within a batch script

But I was curious to see if I could demonstrate that carriage returns truly are stripped after normal expansion. So I did an experiment. Nicely done. Also, obvious as it may be, here is a quick experiment to verify that CRs are stripped before special characters are processed. @echo off & setlo...
by Liviu
24 Mar 2015 00:16
Forum: DOS Batch Forum
Topic: NtfsDisable8dot3NameCreation policy works wrong
Replies: 4
Views: 2115

Re: NtfsDisable8dot3NameCreation policy works wrong

So, on Win7 I see that fsutil really has a bug. On the same time OS do it right and create 8.3 names on Boot (but not a system) volume Confirmed. Based on the added info, in the case of "fsutil 8dot3name set 3" there appear to be: - one bug in fsutil not recognizing the "system drive...
by Liviu
23 Mar 2015 12:06
Forum: DOS Batch Forum
Topic: NtfsDisable8dot3NameCreation policy works wrong
Replies: 4
Views: 2115

Re: NtfsDisable8dot3NameCreation policy works wrong

So, 8dot3 policy works not as described in MSDN. I don't see the problem based on what you quoted. SFN creation is disabled on C: because, as fsutil notes at the end of the last line, C: is a "non-system volume". Confusing as it may be, but the "system volume" is not necessarily...
by Liviu
22 Mar 2015 00:15
Forum: DOS Batch Forum
Topic: Is there an explanation for the result of SET/P and CLIP?
Replies: 7
Views: 2065

Re: Is there an explanation for the result of SET/P and CLIP

There are also these results in other versions of Windows? I use Win7. Confirmed in Win7 x64, as well as Server 2012 R2 (thus likely Windows 8.1, too). (Just as a side note, next time please specify which particular program you pasted into, since that may be relevant in other cases.) Here though, t...
by Liviu
19 Mar 2015 17:34
Forum: DOS Batch Forum
Topic: create dummy files of exact size
Replies: 15
Views: 4114

Re: create dummy files of exact size

Hi Sponge, the jScript code you call through cScript, is not an abbreviation for JavaScript. jScript is Microsoft's response to java which was popular in the 90's. Java was never specifically written to be run inside browsers, this misuse led to security weaknesses. To address these issues javaScri...
by Liviu
09 Mar 2015 09:06
Forum: DOS Batch Forum
Topic: echoing other language texts?
Replies: 5
Views: 1166

Re: echoing other language texts?

'cmd /u' does indeed turn " the output of internal commands to a pipe or file " to be Unicode, but it does not affect (or matter for) the console output itself - which was the original question here. The following will work correctly at a plain 'cmd' prompt as long as it's set to use a TT ...
by Liviu
08 Mar 2015 22:10
Forum: DOS Batch Forum
Topic: echoing other language texts?
Replies: 5
Views: 1166

Re: echoing other language texts?

@OperatorGK, that works indeed if one only needs characters from one single codepage, such as Cyrillic 866. However, I took OP's question to be about mixing multiple scripts in the same batch, which can't be done via chcp alone - for example, there is no one codepage to cover both Cyrillic and Greek...
by Liviu
07 Mar 2015 22:02
Forum: DOS Batch Forum
Topic: echoing other language texts?
Replies: 5
Views: 1166

Re: echoing other language texts?

In XP and earlier it's only possible if you already have an environment variable or a file/directory name containing those characters. In Windows 7 or later it's possible to build such strings in code from scratch, see http://www.dostips.com/forum/viewtopic.php?f=3&t=5358 and http://www.dostips....
by Liviu
19 Feb 2015 23:33
Forum: DOS Batch Forum
Topic: More fun with redirection and file handles
Replies: 10
Views: 2695

Re: More fun with redirection and file handles

- Reading from an output handle fails simply returns nothing (fails?), but there is no error message. 0<&1 set /p "ln=Why does read from output handle not generate an error message?" Focusing on just this tiniest bit of your whole exercise, but I think line-oriented input assumes an i...