From: Al Dunbar on


<wolf_tracks(a)invalid.com> wrote in message
news:up0WqKOQLHA.2064(a)TK2MSFTNGP05.phx.gbl...
> On 8/17/2010 9:46 AM, Al Dunbar wrote:
>>
>>
>> "Al Dunbar" <alandrub(a)hotmail.com> wrote in message
>> news:OY3$hIXPLHA.2100(a)TK2MSFTNGP02.phx.gbl...
>>>
>>>
>>> <wolf_tracks(a)invalid.com> wrote in message
>>> news:#S#OXPPPLHA.5076(a)TK2MSFTNGP05.phx.gbl...
>>>> On 8/15/2010 8:40 AM, Al Dunbar wrote:
>>>>>
>>>>>
>>>>> "Pegasus [MVP]" <news(a)microsoft.com> wrote in message
>>>>> news:OinB6AEPLHA.2100(a)TK2MSFTNGP04.phx.gbl...
>>>>>>
>>>>>>
>>>>>> <wolf_tracks(a)invalid.com> wrote in message
>>>>>> news:#1xLGVDPLHA.5576(a)TK2MSFTNGP02.phx.gbl...
>>>>>>> OK,I've been gone for 3 days, and apparently gotten over the "local
>>>>>>> disk" problem. I have Help file download with Help open. If I print
>>>>>>> all of VBScript, how many pages am I going to get? 400? 20? Yikes, I
>>>>>>> see navigation to web site was canceled.
>>>>>>
>>>>>> You don't print out anything. Just the the help file as it is
>>>>>> intended: As an on-scrreen look-up tool.
>>>>>
>>>>> Some people learn more easily from the printed word. If that is the
>>>>> case
>>>>> for the OP, I would recommend he purchase a book rather than try to
>>>>> print out any material designed for on-line access. Wrox Press
>>>>> carries a
>>>>> few that make reasonably good references. Assuming these are still in
>>>>> print...
>>>>>
>>>>>
>>>>> /Al
>>>>>
>>>>>
>>>> Odd though that it has a Print menu. Yes,I just discovered Wrox and
>>>> bought a used VBS book harking back to 1999. I doubt much has changed.
>>>
>>> Nothing substantive has changed in VBScript, including some of the
>>> known bugs. WSH, on the other hand, has gone through a couple of minor
>>> version changes since then. Most of these were associated with the
>>> introduction of new versions of Windows.
>>
>> Oops, forgot to mention: it's not the help file that has the print menu,
>> but the help application. But even if it did, I suspect that the
>> expectation would be for the odd person print out a page or two for
>> reference, not the entire thing as a book. Since its structure is
>> hyperlinked, there doesn't seem to be a simple way to organize it into a
>> complete reference without doing a lot of work. Better to do the work to
>> look things up as needed, and use the VBS
>
> Got side tracked with interesting results. I did buy a used VBS book,
> circa 1999. It appears VBS is really for web apps.

No, that is only one of its uses.

> I couldn't really find out one creates a file like abc.vbs that has
> pure VBS code in it w/o html.

Easy. But you can put ONLY pure VBS code in a .vbs file not HTML:

1. create a file called HW.vbs
2. insert eh following pure VBS code in it:
msgbox "hello world"
3. double-click the file in windows explorer.

> Above somewhere, someone brought wscript.exe (and another exe)

wscript.exe and cscript.exe are both standard components in windows. They
implement WSH (Windows Script Host), which can execute "pure" vbscript code
in a .vbs file, "pure" jscript code in a .js file, or WSH scripts in .wsf
files (which contain vbscript and/or jscript code along with WSH-specific
XML code.

> to my attention. I'll look again at was said, but I think to execute a
> abc.vbs file, I'd have to get into command code enter wscript.exe abc.vbs.

No. You can double-click a .vbs file, or execute it either directly, or
indirectly by running cscript or wscript from any executable or script
capable of running a program, and passing the name of the .vbs file as a
parameter.

> If it turns out I can execute a abc.vbs file, then my next question is can
> I execute it from JavaScript.

How are you running your JavaScript? If you are running it embedded in a web
page, you will face the same security restrictions as when you try to run an
executable.

> As it turns out, using vbs is the wrong way for me to go, but I'm still
> curious. The right way is Visual Basic. By almost luck, when a friend
> moved, he gave me two VB 5 books, and the compiler (Interpreter?)

VB may or may not be your best option, but version 5?

> Why VB. I'm using a scientific app that allows one to extend facilities of
> the app by executing vbs files from it (I guess that answers my exe
> question from above.) The user invokes a RunVBScript command. The app has
> about 20 commands, and they are all there to provide some modicum of
> ability to run other apps that control h/w. As it turns out, that app is
> pretty limited, and one can write stand-alone VG programs with a solid GUI
> i/f (allows pushbuttons, scrolls, text entry, etc., that will i/f with the
> other program the app works with. No need to even run the app. Just use
> VB.
>
> Still curious about VBS. My guess is that it is nowhere as powerful as
> using VB, but isn't really used for of with html.

VBScript is a scripting language, VB is a programming language. If by
"power" you mean number crunching capability, you are correct. But there are
some applications (other than those embedded in html) for which it is a
better choice than VB. For one thing, it is generally available on all
current versions of windows.

/Al


From: wolf_tracks on
On 8/20/2010 10:13 PM, Al Dunbar wrote:
>
>
> <wolf_tracks(a)invalid.com> wrote in message
> news:up0WqKOQLHA.2064(a)TK2MSFTNGP05.phx.gbl...
>> On 8/17/2010 9:46 AM, Al Dunbar wrote:
>>>
>>>
>>> "Al Dunbar" <alandrub(a)hotmail.com> wrote in message
>>> news:OY3$hIXPLHA.2100(a)TK2MSFTNGP02.phx.gbl...
>>>>
>>>>
>>>> <wolf_tracks(a)invalid.com> wrote in message
>>>> news:#S#OXPPPLHA.5076(a)TK2MSFTNGP05.phx.gbl...
>>>>> On 8/15/2010 8:40 AM, Al Dunbar wrote:
>>>>>>
>>>>>>
>>>>>> "Pegasus [MVP]" <news(a)microsoft.com> wrote in message
>>>>>> news:OinB6AEPLHA.2100(a)TK2MSFTNGP04.phx.gbl...
>>>>>>>
>>>>>>>
>>>>>>> <wolf_tracks(a)invalid.com> wrote in message
>>>>>>> news:#1xLGVDPLHA.5576(a)TK2MSFTNGP02.phx.gbl...
>>>>>>>> OK,I've been gone for 3 days, and apparently gotten over the "local
>>>>>>>> disk" problem. I have Help file download with Help open. If I print
>>>>>>>> all of VBScript, how many pages am I going to get? 400? 20?
>>>>>>>> Yikes, I
>>>>>>>> see navigation to web site was canceled.
>>>>>>>
>>>>>>> You don't print out anything. Just the the help file as it is
>>>>>>> intended: As an on-scrreen look-up tool.
>>>>>>
>>>>>> Some people learn more easily from the printed word. If that is the
>>>>>> case
>>>>>> for the OP, I would recommend he purchase a book rather than try to
>>>>>> print out any material designed for on-line access. Wrox Press
>>>>>> carries a
>>>>>> few that make reasonably good references. Assuming these are still in
>>>>>> print...
>>>>>>
>>>>>>
>>>>>> /Al
>>>>>>
>>>>>>
>>>>> Odd though that it has a Print menu. Yes,I just discovered Wrox and
>>>>> bought a used VBS book harking back to 1999. I doubt much has changed.
>>>>
>>>> Nothing substantive has changed in VBScript, including some of the
>>>> known bugs. WSH, on the other hand, has gone through a couple of minor
>>>> version changes since then. Most of these were associated with the
>>>> introduction of new versions of Windows.
>>>
>>> Oops, forgot to mention: it's not the help file that has the print menu,
>>> but the help application. But even if it did, I suspect that the
>>> expectation would be for the odd person print out a page or two for
>>> reference, not the entire thing as a book. Since its structure is
>>> hyperlinked, there doesn't seem to be a simple way to organize it into a
>>> complete reference without doing a lot of work. Better to do the work to
>>> look things up as needed, and use the VBS
>>
>> Got side tracked with interesting results. I did buy a used VBS book,
>> circa 1999. It appears VBS is really for web apps.
>
> No, that is only one of its uses.
Yes, as I mentioned below about the app executing the command RunVBScript.
>
>> I couldn't really find out one creates a file like abc.vbs that has
>> pure VBS code in it w/o html.
>
> Easy. But you can put ONLY pure VBS code in a .vbs file not HTML:
>
> 1. create a file called HW.vbs
> 2. insert the following pure VBS code in it:
> msgbox "hello world"
> 3. double-click the file in windows explorer.
>
I tried that in some other fashion, probably through RunVBScript, and it
worked.
>> Above somewhere, someone brought wscript.exe (and another exe)
>
> wscript.exe and cscript.exe are both standard components in windows.
> They implement WSH (Windows Script Host), which can execute "pure"
wscript is for WHS? csript is for ?
> vbscript code in a .vbs file, "pure" jscript code in a .js file, or WSH
> scripts in .wsf files (which contain vbscript and/or jscript code along
> with WSH-specific XML code.
Isn't there a JavaScript and a jscript. Jscript a MS version of JavaScript?
>
>> to my attention. I'll look again at was said, but I think to execute a
>> abc.vbs file, I'd have to get into command code enter wscript.exe
>> abc.vbs.
>
> No. You can double-click a .vbs file, or execute it either directly, or
> indirectly by running cscript or wscript from any executable or script
> capable of running a program, and passing the name of the .vbs file as a
> parameter.
Yep, my helloword.vbs works double-click too.
>
>> If it turns out I can execute a abc.vbs file, then my next question is
>> can I execute it from JavaScript.
>
> How are you running your JavaScript? If you are running it embedded in a
> web page, you will face the same security restrictions as when you try
> to run an executable.
>
>> As it turns out, using vbs is the wrong way for me to go, but I'm
>> still curious. The right way is Visual Basic. By almost luck, when a
>> friend moved, he gave me two VB 5 books, and the compiler (Interpreter?)
>
> VB may or may not be your best option, but version 5?
Fine by me. I'm very sure it will for the app need mentioned below.
>
>> Why VB. I'm using a scientific app that allows one to extend
>> facilities of the app by executing vbs files from it (I guess that
>> answers my exe question from above.) The user invokes a RunVBScript
>> command. The app has about 20 commands, and they are all there to
>> provide some modicum of ability to run other apps that control h/w. As
>> it turns out, that app is pretty limited, and one can write
>> stand-alone VG programs with a solid GUI i/f (allows pushbuttons,
>> scrolls, text entry, etc., that will i/f with the other program the
>> app works with. No need to even run the app. Just use VB.
>>
>> Still curious about VBS. My guess is that it is nowhere as powerful as
>> using VB, but isn't really used for of with html.
>
> VBScript is a scripting language, VB is a programming language. If by
scripting vs language. Viva la difference? Interpreter vs compiler?
> "power" you mean number crunching capability, you are correct. But there
> are some applications (other than those embedded in html) for which it
> is a better choice than VB. For one thing, it is generally available on
> all current versions of windows.
>
> /Al
>
>


--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39� 15' 7" N, 121� 2' 32" W, 2700 feet

Solid waste produced to generate electricity per person
over a lifetime:
Nuclear power -- 2 pounds in a coke can
Fossil (coal) fuel -- 68.5 tons in six 12-ton RR cars

-- Power to Save the World, Gwyneth Cravens

Web Page: <www.speckledwithstars.net/>

From: Al Dunbar on


<wolf_tracks(a)invalid.com> wrote in message
news:u9MjYkVQLHA.4988(a)TK2MSFTNGP04.phx.gbl...
> On 8/20/2010 10:13 PM, Al Dunbar wrote:
>>
>>
>> <wolf_tracks(a)invalid.com> wrote in message
>> news:up0WqKOQLHA.2064(a)TK2MSFTNGP05.phx.gbl...
>>> On 8/17/2010 9:46 AM, Al Dunbar wrote:
>>>>
>>>>
>>>> "Al Dunbar" <alandrub(a)hotmail.com> wrote in message
>>>> news:OY3$hIXPLHA.2100(a)TK2MSFTNGP02.phx.gbl...
>>>>>
>>>>>
>>>>> <wolf_tracks(a)invalid.com> wrote in message
>>>>> news:#S#OXPPPLHA.5076(a)TK2MSFTNGP05.phx.gbl...
>>>>>> On 8/15/2010 8:40 AM, Al Dunbar wrote:
>>>>>>>
>>>>>>>
>>>>>>> "Pegasus [MVP]" <news(a)microsoft.com> wrote in message
>>>>>>> news:OinB6AEPLHA.2100(a)TK2MSFTNGP04.phx.gbl...
>>>>>>>>
>>>>>>>>
>>>>>>>> <wolf_tracks(a)invalid.com> wrote in message
>>>>>>>> news:#1xLGVDPLHA.5576(a)TK2MSFTNGP02.phx.gbl...
>>>>>>>>> OK,I've been gone for 3 days, and apparently gotten over the
>>>>>>>>> "local
>>>>>>>>> disk" problem. I have Help file download with Help open. If I
>>>>>>>>> print
>>>>>>>>> all of VBScript, how many pages am I going to get? 400? 20?
>>>>>>>>> Yikes, I
>>>>>>>>> see navigation to web site was canceled.

<snip>

>>> Above somewhere, someone brought wscript.exe (and another exe)
>>
>> wscript.exe and cscript.exe are both standard components in windows.
>> They implement WSH (Windows Script Host), which can execute "pure"
> wscript is for WHS? csript is for ?
>> vbscript code in a .vbs file, "pure" jscript code in a .js file, or WSH
>> scripts in .wsf files (which contain vbscript and/or jscript code along
>> with WSH-specific XML code.

> Isn't there a JavaScript and a jscript. Jscript a MS version of
> JavaScript?

Yes, JScript is very much like a version of JavaScript. I have precious
little experience with JScript and absolutely none with JavaScript, so
ignore anything else I might say about them ;-)

>>> Why VB. I'm using a scientific app that allows one to extend
>>> facilities of the app by executing vbs files from it (I guess that
>>> answers my exe question from above.) The user invokes a RunVBScript
>>> command. The app has about 20 commands, and they are all there to
>>> provide some modicum of ability to run other apps that control h/w. As
>>> it turns out, that app is pretty limited, and one can write
>>> stand-alone VG programs with a solid GUI i/f (allows pushbuttons,
>>> scrolls, text entry, etc., that will i/f with the other program the
>>> app works with. No need to even run the app. Just use VB.
>>>
>>> Still curious about VBS. My guess is that it is nowhere as powerful as
>>> using VB, but isn't really used for of with html.
>>
>> VBScript is a scripting language, VB is a programming language. If by

> scripting vs language. Viva la difference? Interpreter vs compiler?

Sort of. Ask ten experts and you will get ten answers. All different. And
they will nitpick each other's opinions.

/Al


From: Evertjan. on
Al Dunbar wrote on 25 aug 2010 in microsoft.public.scripting.vbscript:

>> Isn't there a JavaScript and a jscript. Jscript a MS version of
>> JavaScript?

> Yes, JScript is very much like a version of JavaScript.

No, it just IS a version of Javascript.

The "sort of official" name of Jacascript being ECMA-script.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
From: Al Dunbar on


"Evertjan." <exjxw.hannivoort(a)interxnl.net> wrote in message
news:Xns9DDF5DF1738D7eejj99(a)194.109.133.242...
> Al Dunbar wrote on 25 aug 2010 in microsoft.public.scripting.vbscript:
>
>>> Isn't there a JavaScript and a jscript. Jscript a MS version of
>>> JavaScript?
>
>> Yes, JScript is very much like a version of JavaScript.
>
> No, it just IS a version of Javascript.
>
> The "sort of official" name of Jacascript being ECMA-script.

What you say is very much like the truth. ;-)

/Al