From: Todd Vargo on
Pegasus [MVP] wrote:
> wolf_tracks(a)invalid.com wrote:
>> Selecting Properties worked. A choice for MS script came up, and
>> selecting it produce a small window with "Hello World" in it.

This sounds like your system has .vbs files set to default to open in
Notepad.
To change this, open Explorer> Tools> Folder Options.
Click the "File Types" tab, type "VBS" to locate the VBS extension.
Press the "Advanced" button and select which action you want to be default
and press the "Set Default" button.

>>
>> There seem to be too many ways to start a script.
>>
>> Any comments about the strange download of the tutor or intro file?
>>
>
> There are exactly four ways to launch a VB Script:
> a) Right-click the shortcut. This is common for all shortcuts, not just VB
> Script.
> b) Typing the script name at the command prompt (which is the same as
> double-clicking it in Explorer).
> c) With the command cscript.exe [parms] NameOfScript.vbs
> d) With the command wscript.exe [parms] NameOfScript.vbs

e) Double-click the vbscript file itself (forgot to include the obvious).
f) Type the script name in the Run command dialog.
g) Call one script from another using Wshell.Run method
h) Batch file or other program
i) Task Scheduler
j) Run key in registry
.... etc.

Caveat to any of these where only script.vbs is provided, the script must be
located in the current directory or located along PATH. In the case of the
Run dialog, in XP. that will typically be the users home directory.

>
> There are certain subtle differences between c) and d) which you will come
> to appreciate as you dig deeper into VB Scripting.
>
> What is strange about downloading the tutor/intro file? Which file is it,
> in fact? Did you download the standard help file script56.chm from the
> Micorosoft site?

From: Todd Vargo on
mbyerley wrote:
> "Dave "Crash" Dummy" <invalid(a)invalid.invalid> wrote in message
....
>> Another thing you can do is right click on a .vbs file, select
>> "Properties," and see what is specified to open the file.
>
> Dave,
> He is using notepad and when he saves, he is not selecting "All
> Files(*.*)", so notepad appends a .TXT on the end of the filename, so when
> he clicks on it it keeps opening notepad.
>
> Thats why I hate "hide extensions of known filetypes" as the default
> setting for file viewing.

Notepad should not append .TXT to known file types like .VBS when specified.
However, you can always force any file name by enclosing it in double
quotes.

"testscript.vbs"

--
Todd Vargo

(Post questions to group only. Remove "z" to email personal messages)

From: Pegasus [MVP] on


<wolf_tracks(a)invalid.com> wrote in message
news:el1likMOLHA.4120(a)TK2MSFTNGP02.phx.gbl...
> On 8/10/2010 12:44 PM, Pegasus [MVP] wrote:
>>> Selecting Properties worked. A choice for MS script came up, and
>>> selecting it produce a small window with "Hello World" in it.
>>>
>>> There seem to be too many ways to start a script.
>>>
>>> Any comments about the strange download of the tutor or intro file?
>>>
>>
>> There are exactly four ways to launch a VB Script:
>> a) Right-click the shortcut. This is common for all shortcuts, not just
>> VB Script.
>> b) Typing the script name at the command prompt (which is the same as
>> double-clicking it in Explorer).
>> c) With the command cscript.exe [parms] NameOfScript.vbs
>> d) With the command wscript.exe [parms] NameOfScript.vbs
>>
>> There are certain subtle differences between c) and d) which you will
>> come to appreciate as you dig deeper into VB Scripting.
>>
>> What is strange about downloading the tutor/intro file? Which file is
>> it, in fact? Did you download the standard help file script56.chm from
>> the Micorosoft site?
> From above, "I went to the other link, doc website, and downloaded the
> script56 chm file. When I opened it, a dialog came up that looked like a
> Help dialog. In the large window on the right, it says navigation to the
> web canceled. I'm using FFox. Is it supposed to open web pages. ".

Have a look here - "Ways of getting rid of the warning when opening a file":
http://smallvoid.com/article/ie-attachment-manager.html
Right-click the blocked file, and select Properties, and on the General-tab
click Unblock.

> Shortcut? Is this the same as "Open with" right-click?
> I don't use Explorer.
> Where do I find the exe file? Maybe that's part of the guide, I couldn't
> download?

What .exe file?

From: Pegasus [MVP] on


"Dave "Crash" Dummy" <invalid(a)invalid.invalid> wrote in message
news:edDz0cMOLHA.3732(a)TK2MSFTNGP02.phx.gbl...
> Pegasus [MVP] wrote:
>>> Selecting Properties worked. A choice for MS script came up, and
>>> selecting it produce a small window with "Hello World" in it.
>>>
>>> There seem to be too many ways to start a script.
>>>
>>> Any comments about the strange download of the tutor or intro file?
>>>
>>>
>>
>> There are exactly four ways to launch a VB Script: a) Right-click the
>> shortcut. This is common for all shortcuts, not just VB Script. b)
>> Typing the script name at the command prompt (which is the same as
>> double-clicking it in Explorer). c) With the command cscript.exe
>> [parms] NameOfScript.vbs d) With the command wscript.exe [parms]
>> NameOfScript.vbs
>>
>> There are certain subtle differences between c) and d) which you will
>> come to appreciate as you dig deeper into VB Scripting.
>
> Speaking of subtle differences, there may be four ways to /run/ a
> script, but there are many more ways to /open/ a script, like with a
> text editor, and I think that is where the OP got into trouble.

Maybe, in which case he needs to become aware of the difference between
"starting" or "running" a script and "editing" it.

From: mbyerley on

<wolf_tracks(a)invalid.com> wrote in message
news:uoqnB7NOLHA.3732(a)TK2MSFTNGP02.phx.gbl...
> On 8/10/2010 1:43 PM, mbyerley wrote:
>> <wolf_tracks(a)invalid.com> wrote in message
>> news:el1likMOLHA.4120(a)TK2MSFTNGP02.phx.gbl...
>>> On 8/10/2010 12:44 PM, Pegasus [MVP] wrote:
>>>>> Selecting Properties worked. A choice for MS script came up, and
>>>>> selecting it produce a small window with "Hello World" in it.
>>>>>
>>>>> There seem to be too many ways to start a script.
>>>>>
>>>>> Any comments about the strange download of the tutor or intro file?
>>>>>
>>>>
>>>> There are exactly four ways to launch a VB Script:
>>>> a) Right-click the shortcut. This is common for all shortcuts, not just
>>>> VB Script.
>>>> b) Typing the script name at the command prompt (which is the same as
>>>> double-clicking it in Explorer).
>>>> c) With the command cscript.exe [parms] NameOfScript.vbs
>>>> d) With the command wscript.exe [parms] NameOfScript.vbs
>>>>
>>>> There are certain subtle differences between c) and d) which you will
>>>> come to appreciate as you dig deeper into VB Scripting.
>>>>
>>>> What is strange about downloading the tutor/intro file? Which file is
>>>> it, in fact? Did you download the standard help file script56.chm from
>>>> the Micorosoft site?
>>> From above, "I went to the other link, doc website, and downloaded the
>>> script56 chm file. When I opened it, a dialog came up that looked like a
>>> Help dialog. In the large window on the right, it says navigation to the
>>> web canceled. I'm using FFox. Is it supposed to open web pages. ".
>>
>> The *.chm file has to be on a local drive or you will get the display
>> you
>> describe.
>>
>>> Shortcut? Is this the same as "Open with" right-click?
>>> I don't use Explorer.
>>> Where do I find the exe file? Maybe that's part of the guide, I couldn't
>>> download?
>
> It is on a local drive. script56.chm is in my download folder.
>

If you attempt to open a *.chm file from a remote server or a network
share, you will get the behavior you describe. It is because of a security
restriction MS incorporated a few years ago. Of course I don't expect you
to take my word for it, but Google can explain it to you in intimate detail.

> 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/>
>