Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #12083
| From | "Mayayana" <mayayana@invalid.nospam> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Re: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle) |
| Date | 2019-04-18 08:35 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <q99r2k$u4b$1@dont-email.me> (permalink) |
| References | <q943oc$kiv$1@gioia.aioe.org> <15wfltoi321aw.1mu2g2082zaym$.dlg@40tude.net> <q96ofv$jd3$1@gioia.aioe.org> <ix0f8eayditt$.nynhug80474v.dlg@40tude.net> <q99737$1l9v$1@gioia.aioe.org> |
"R.Wieser" <address@not.available> wrote | And I'm not even sure if I want to /install/ PowerShell for this one-off | action ... | Microsoft have pushed it for years now. So far I have yet to find something I need it for. You'd like it. It's all command line applets, like DOS, meant to lure Linux server managers to Windows. Though I think th fan base is mostly IT people -- corporate admins who can pass around specialized scripts. | > You can use VBScript's ASCII mode (text) stream to | > do binary file reading/editing. | | Are you sure ? Some time ago I tried to use the ReadAll method (trying to | read a double-byte character textfile so I could convert it into ASCII), and | got rather puzzeled by the returned contents. It turned out that although | the method returned a string the size of the file, it only filled it | partially (IIRC it stopped on encountering a certain character) which left | the remainder with whatever was in memory at that time (it didn't even zero | the buffer out!). | It stops at nulls. Here's the solution: https://www.jsware.net/jsware/scrfiles.php5#bints Things to know: ReadAll stops at the first null, assuming it's an end-of-file marker. Textstream is intended to only be used for text. The WSH planners assumed scripters wouldn't need or know about binary. So the results are pre- digested. An ANSI string is interpreted according to the local codepage. (I dont' know why they call it ASCII. It's ANSI.) The class above provides workarounds. It will work on any computer with a non-Asian codepage. (Japan, China and Korea use a system that doesn't have a character-to- byte correspondence.) The class can read unicode and leave in the nulls, as asterisks, or not. It can also handle binary data. For English, every second byte is a null and every first byte is the ASCII character, up to 127, so in English the unicode format is superfluous. There's also the other option. Is it ADODB.Stream? I'm not sure. I've rarely used it so I'm not really familiar with the methods or the Windows version support.
Back to microsoft.public.scripting.vbscript | Previous | Next — Previous in thread | Next in thread | Find similar
CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle) "R.Wieser" <address@not.available> - 2019-04-16 10:22 +0200
Re: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle) "Mayayana" <mayayana@invalid.nospam> - 2019-04-16 08:22 -0400
Re: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle) "R.Wieser" <address@not.available> - 2019-04-16 14:53 +0200
Re: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle) "Mayayana" <mayayana@invalid.nospam> - 2019-04-16 09:11 -0400
Re: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle) "R.Wieser" <address@not.available> - 2019-04-16 17:43 +0200
Re: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle) JJ <jj4public@vfemail.net> - 2019-04-17 13:29 +0700
Re: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle) "R.Wieser" <address@not.available> - 2019-04-17 10:35 +0200
Re: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle) JJ <jj4public@vfemail.net> - 2019-04-18 09:24 +0700
Re: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle) "R.Wieser" <address@not.available> - 2019-04-18 08:56 +0200
Re: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle) "Mayayana" <mayayana@invalid.nospam> - 2019-04-18 08:35 -0400
Re: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle) "Mayayana" <mayayana@invalid.nospam> - 2019-04-18 10:25 -0400
Re: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle) "R.Wieser" <address@not.available> - 2019-04-18 18:50 +0200
Re: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle) JJ <jj4public@vfemail.net> - 2019-04-19 12:32 +0700
Re: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle) "R.Wieser" <address@not.available> - 2019-04-19 08:04 +0200
Dictionary oddity (was: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle)) JJ <jj4public@vfemail.net> - 2019-04-20 22:37 +0700
Re: Dictionary oddity (was: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle)) "Mayayana" <mayayana@invalid.nospam> - 2019-04-20 12:22 -0400
Re: Dictionary oddity (was: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle)) "R.Wieser" <address@not.available> - 2019-04-20 20:02 +0200
Re: Dictionary oddity JJ <jj4public@vfemail.net> - 2019-04-21 18:33 +0700
Re: Dictionary oddity (was: CreateShortcut on cmd.exe - how to set fullscreen mode ? (not WindowStyle)) "R.Wieser" <address@not.available> - 2019-04-20 19:34 +0200
Re: Dictionary oddity JJ <jj4public@vfemail.net> - 2019-04-21 18:55 +0700
Re: Dictionary oddity "R.Wieser" <address@not.available> - 2019-04-21 15:13 +0200
csiph-web