Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #11810

Re: What should one read to learn VBScript?

From "Mayayana" <mayayana@invalid.nospam>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: What should one read to learn VBScript?
Date 2018-01-20 13:53 -0500
Organization A noiseless patient Spider
Message-ID <p4036k$eg5$1@dont-email.me> (permalink)
References (1 earlier) <mb506dljq7l3f6knt61r6k5a3n7gn6p4es@4ax.com> <p3qatb$b92$1@dont-email.me> <6k756d1fprigiuf1afg9bvbo41ocm288ea@4ax.com> <p3ug1p$u4g$1@dont-email.me> <35m66dd7vhl3tbjlsc5ujonci6sa51o7sg@4ax.com>

Show all headers | View raw


"Wally W." <ww84wa@aim.com> wrote

| It isn't necessarily an either-or choice.
|
| Cscript might have been useful in your diagnostics mode when you added
| msgbox lines for your debugging effort.
|

   It's hard to see how. And I don't need any of
the messages you added. I only need a message
if it doesn't work. Also, you're just talking about
testing. The whole thing is still designed as a
wscript operation: Drag/drop and wait for the
"Done." message. In other words, you're not
writing a console version. You're just running the
script via console.

  While I dislike console I'm also rather curious
about why people like it, aside from familiarity.
It obviously works for you but I honestly can't
think of anything I'd want cscript for.

   The other day I ran UPX in console, all the
while snarling that the authors can't be bothered
to finish the product by making a UI. A few years
ago I had to use console to swap out the hal.dll
file when I got a dual CPU. In between I've maybe
used it a couple of times for things I don't
remember. I use it if there's no choice. If I used
UPX on a regular basis I'd write a drag/drop
wrapper for it, like the UPX author should have
done a long time ago.

 Having to click a msgbox to dismiss it when debugging
is not something that gets on my nerves.... unless
it's in a long loop and I forgot to kill the msgbox
after the first loop. :) Sometimes that happens and
I have to kill wscript. But in general, running the test
is not what takes time.

| I prefer giving only one response to the diagnostics effort instead of
| three, and having all the diagnostic information available in a
| simultaneous display.
|
| If all is well, the 'wscript.echo' statements can be removed, and the
| GUI program will behave as intended.
|
   So you mainly use cscript for testing wscript
scripts? My example above was showing how it
was much easier to run command lines within my
script rather than typing in a window. Are there
actual tasks that you find easier in console? I
just can't think of any way it could be easier.

You can type something like:
cscript c:\script1.vbs c:\txt1.txt

....Or whatever one might do to pass txt1.txt to
script1.vbs as a commandline. But I can just drop
the file txt1.txt onto script1.vbs and I'm done. 

Back to microsoft.public.scripting.vbscript | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

What should one read to learn VBScript? Peter Percival <peterxpercival@hotmail.com> - 2018-01-17 12:55 +0000
  Re: What should one read to learn VBScript? "Mayayana" <mayayana@invalid.nospam> - 2018-01-17 10:25 -0500
    Re: What should one read to learn VBScript? "Mayayana" <mayayana@invalid.nospam> - 2018-01-17 21:50 -0500
    Re: What should one read to learn VBScript? Wally W. <ww84wa@aim.com> - 2018-01-17 22:49 -0500
    Re: What should one read to learn VBScript? Peter Percival <peterxpercival@hotmail.com> - 2018-01-18 12:42 +0000
    Re: What should one read to learn VBScript? Peter Percival <peterxpercival@hotmail.com> - 2018-01-19 21:28 +0000
      Re: What should one read to learn VBScript? Peter Percival <peterxpercival@hotmail.com> - 2018-01-19 21:59 +0000
        Re: What should one read to learn VBScript? "Mayayana" <mayayana@invalid.nospam> - 2018-01-19 18:06 -0500
          Re: What should one read to learn VBScript? Peter Percival <peterxpercival@hotmail.com> - 2018-01-20 14:15 +0000
      Re: What should one read to learn VBScript? "Mayayana" <mayayana@invalid.nospam> - 2018-01-19 17:06 -0500
        Re: What should one read to learn VBScript? Peter Percival <peterxpercival@hotmail.com> - 2018-01-20 14:20 +0000
          Re: What should one read to learn VBScript? "Mayayana" <mayayana@invalid.nospam> - 2018-01-20 09:40 -0500
      Re: What should one read to learn VBScript? Wally W. <ww84wa@aim.com> - 2018-01-19 17:20 -0500
        Re: What should one read to learn VBScript? "Mayayana" <mayayana@invalid.nospam> - 2018-01-19 17:52 -0500
    Re: What should one read to learn VBScript? Sohel Alam <alam.sohel1990@gmail.com> - 2018-05-14 17:19 -0700
  Re: What should one read to learn VBScript? Wally W. <ww84wa@aim.com> - 2018-01-17 22:44 -0500
    Re: What should one read to learn VBScript? Peter Percival <peterxpercival@hotmail.com> - 2018-01-18 12:40 +0000
    Re: What should one read to learn VBScript? "Mayayana" <mayayana@invalid.nospam> - 2018-01-18 09:27 -0500
      Re: What should one read to learn VBScript? Special Access <nonyabidnezz@hotmail.com> - 2018-01-18 21:57 -0500
      Re: What should one read to learn VBScript? Wally W. <ww84wa@aim.com> - 2018-01-19 20:53 -0500
        Re: What should one read to learn VBScript? "Mayayana" <mayayana@invalid.nospam> - 2018-01-19 23:20 -0500
          Re: What should one read to learn VBScript? Wally W. <ww84wa@aim.com> - 2018-01-20 10:33 -0500
            Re: What should one read to learn VBScript? Wally W. <ww84wa@aim.com> - 2018-01-20 10:44 -0500
            Re: What should one read to learn VBScript? "Mayayana" <mayayana@invalid.nospam> - 2018-01-20 13:53 -0500

csiph-web