I'm told VBS comes with MS OSes, and that if I had an example script of a vbs program, I could see how it works by double clicking on the file. Does someone have a simple program that I could try that on? Maybe something that simply prints some text or prints the results of a simple calculation. I'm using Win 7. -- 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/>
![]() |
0 |
![]() |
wolf_tracks@invalid.com wrote: > I'm told VBS comes with MS OSes, and that if I had an example script of > a vbs program, I could see how it works by double clicking on the file. > Does someone have a simple program that I could try that on? Maybe > something that simply prints some text or prints the results of a simple > calculation. I'm using Win 7. -----------------Demo.vbs---------------- MsgBox "Hello, World!" ---------------------------------------------- Useful link: http://technet.microsoft.com/en-us/scriptcenter/default.aspx Absolutely, positively must-have download (watch wrap): http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&DisplayLang=en Protocol pointer. Limit signature to four lines. -- Crash Atheism is a matter of faith, too.
![]() |
0 |
![]() |
On 8/10/2010 6:03 AM, Dave "Crash" Dummy wrote: > wolf_tracks@invalid.com wrote: >> I'm told VBS comes with MS OSes, and that if I had an example script >> of a vbs program, I could see how it works by double clicking on the >> file. Does someone have a simple program that I could try that on? >> Maybe something that simply prints some text or prints the results of >> a simple calculation. I'm using Win 7. > > -----------------Demo.vbs---------------- > MsgBox "Hello, World!" > ---------------------------------------------- > > Useful link: > http://technet.microsoft.com/en-us/scriptcenter/default.aspx > > Absolutely, positively must-have download (watch wrap): > http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&DisplayLang=en > > > Protocol pointer. Limit signature to four lines. OK, I used notepad to put the line of text above into a a vbs file, tryit.vbs. Clicking on it twice only brought it up in Notepad. What is watch wrap? I then went to the first link and found a similar one line piece of code. I presume that it would work as described, but was surprised to see that it needs to be done in the command window. Is that generally how one executes scripts? 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. -- 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/>
![]() |
0 |
![]() |
<wolf_tracks@invalid.com> wrote in message news:Ofoq95JOLHA.3732@TK2MSFTNGP02.phx.gbl... > On 8/10/2010 6:03 AM, Dave "Crash" Dummy wrote: >> wolf_tracks@invalid.com wrote: >>> I'm told VBS comes with MS OSes, and that if I had an example script >>> of a vbs program, I could see how it works by double clicking on the >>> file. Does someone have a simple program that I could try that on? >>> Maybe something that simply prints some text or prints the results of >>> a simple calculation. I'm using Win 7. >> >> -----------------Demo.vbs---------------- >> MsgBox "Hello, World!" >> ---------------------------------------------- >> >> Useful link: >> http://technet.microsoft.com/en-us/scriptcenter/default.aspx >> >> Absolutely, positively must-have download (watch wrap): >> http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&DisplayLang=en >> >> >> Protocol pointer. Limit signature to four lines. > OK, I used notepad to put the line of text above into a a vbs file, > tryit.vbs. Clicking on it twice only brought it up in Notepad. What is > watch wrap? > The wrap is that you put the code into a file called wolf.vbs.txt. Now if you make it wolf.vbs then it will work.
![]() |
0 |
![]() |
On 8/10/2010 8:24 AM, Pegasus [MVP] wrote: > > > <wolf_tracks@invalid.com> wrote in message > news:Ofoq95JOLHA.3732@TK2MSFTNGP02.phx.gbl... >> On 8/10/2010 6:03 AM, Dave "Crash" Dummy wrote: >>> wolf_tracks@invalid.com wrote: >>>> I'm told VBS comes with MS OSes, and that if I had an example script >>>> of a vbs program, I could see how it works by double clicking on the >>>> file. Does someone have a simple program that I could try that on? >>>> Maybe something that simply prints some text or prints the results of >>>> a simple calculation. I'm using Win 7. >>> >>> -----------------Demo.vbs---------------- >>> MsgBox "Hello, World!" >>> ---------------------------------------------- >>> >>> Useful link: >>> http://technet.microsoft.com/en-us/scriptcenter/default.aspx >>> >>> Absolutely, positively must-have download (watch wrap): >>> http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&DisplayLang=en >>> >>> >>> >>> Protocol pointer. Limit signature to four lines. >> OK, I used notepad to put the line of text above into a a vbs file, >> tryit.vbs. Clicking on it twice only brought it up in Notepad. What is >> watch wrap? >> > > The wrap is that you put the code into a file called wolf.vbs.txt. Now > if you make it wolf.vbs then it will work. Clicking it twice does not work. Notepad comes up. I'm using Win7. -- 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/>
![]() |
0 |
![]() |
wolf_tracks@invalid.com wrote: > On 8/10/2010 8:24 AM, Pegasus [MVP] wrote: >> >> >> <wolf_tracks@invalid.com> wrote in message >> news:Ofoq95JOLHA.3732@TK2MSFTNGP02.phx.gbl... >>> On 8/10/2010 6:03 AM, Dave "Crash" Dummy wrote: >>>> wolf_tracks@invalid.com wrote: >>>>> I'm told VBS comes with MS OSes, and that if I had an example script >>>>> of a vbs program, I could see how it works by double clicking on the >>>>> file. Does someone have a simple program that I could try that on? >>>>> Maybe something that simply prints some text or prints the results of >>>>> a simple calculation. I'm using Win 7. >>>> >>>> -----------------Demo.vbs---------------- >>>> MsgBox "Hello, World!" >>>> ---------------------------------------------- >>>> >>>> Useful link: >>>> http://technet.microsoft.com/en-us/scriptcenter/default.aspx >>>> >>>> Absolutely, positively must-have download (watch wrap): >>>> http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&DisplayLang=en >>>> >>>> >>>> >>>> >>>> Protocol pointer. Limit signature to four lines. >>> OK, I used notepad to put the line of text above into a a vbs file, >>> tryit.vbs. Clicking on it twice only brought it up in Notepad. What is >>> watch wrap? >>> >> >> The wrap is that you put the code into a file called wolf.vbs.txt. Now >> if you make it wolf.vbs then it will work. > Clicking it twice does not work. Notepad comes up. I'm using Win7. Actually, what I meant by "watch wrap" was beware of the newsreader inserting a line break in the long link, but Pegasus' warning is good, too. Ok, try this. Copy the text between the dash lines and save it as "demo.hta," and see if that runs. ------------------------------------------------- <html><head><title>demo</title></head> <body> <script type="text/vbs"> document.writeLn "Hello, World!" </script> </body> </html> ------------------------------------------------- Another thing you can do is right click on a .vbs file, select "Properties," and see what is specified to open the file. -- Crash Atheism is a matter of faith, too.
![]() |
0 |
![]() |
"Dave "Crash" Dummy" <invalid@invalid.invalid> wrote in message news:OPEh3VKOLHA.1796@TK2MSFTNGP05.phx.gbl... > wolf_tracks@invalid.com wrote: >> On 8/10/2010 8:24 AM, Pegasus [MVP] wrote: >>> >>> >>> <wolf_tracks@invalid.com> wrote in message >>> news:Ofoq95JOLHA.3732@TK2MSFTNGP02.phx.gbl... >>>> On 8/10/2010 6:03 AM, Dave "Crash" Dummy wrote: >>>>> wolf_tracks@invalid.com wrote: >>>>>> I'm told VBS comes with MS OSes, and that if I had an example script >>>>>> of a vbs program, I could see how it works by double clicking on the >>>>>> file. Does someone have a simple program that I could try that on? >>>>>> Maybe something that simply prints some text or prints the results of >>>>>> a simple calculation. I'm using Win 7. >>>>> >>>>> -----------------Demo.vbs---------------- >>>>> MsgBox "Hello, World!" >>>>> ---------------------------------------------- >>>>> >>>>> Useful link: >>>>> http://technet.microsoft.com/en-us/scriptcenter/default.aspx >>>>> >>>>> Absolutely, positively must-have download (watch wrap): >>>>> http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&DisplayLang=en >>>>> >>>>> >>>>> >>>>> Protocol pointer. Limit signature to four lines. >>>> OK, I used notepad to put the line of text above into a a vbs file, >>>> tryit.vbs. Clicking on it twice only brought it up in Notepad. What is >>>> watch wrap? >>>> >>> >>> The wrap is that you put the code into a file called wolf.vbs.txt. Now >>> if you make it wolf.vbs then it will work. >> Clicking it twice does not work. Notepad comes up. I'm using Win7. > > Actually, what I meant by "watch wrap" was beware of the newsreader > inserting a line break in the long link, but Pegasus' warning is good, > too. > > Ok, try this. Copy the text between the dash lines and save it as > "demo.hta," and see if that runs. > ------------------------------------------------- > <html><head><title>demo</title></head> > <body> > <script type="text/vbs"> > document.writeLn "Hello, World!" > </script> > </body> > </html> > ------------------------------------------------- > > 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. > Crash > > Atheism is a matter of faith, too.
![]() |
0 |
![]() |
On 8/10/2010 10:07 AM, mbyerley wrote: > "Dave "Crash" Dummy"<invalid@invalid.invalid> wrote in message > news:OPEh3VKOLHA.1796@TK2MSFTNGP05.phx.gbl... >> wolf_tracks@invalid.com wrote: >>> On 8/10/2010 8:24 AM, Pegasus [MVP] wrote: >>>> >>>> >>>> <wolf_tracks@invalid.com> wrote in message >>>> news:Ofoq95JOLHA.3732@TK2MSFTNGP02.phx.gbl... >>>>> On 8/10/2010 6:03 AM, Dave "Crash" Dummy wrote: >>>>>> wolf_tracks@invalid.com wrote: >>>>>>> I'm told VBS comes with MS OSes, and that if I had an example script >>>>>>> of a vbs program, I could see how it works by double clicking on the >>>>>>> file. Does someone have a simple program that I could try that on? >>>>>>> Maybe something that simply prints some text or prints the results of >>>>>>> a simple calculation. I'm using Win 7. >>>>>> >>>>>> -----------------Demo.vbs---------------- >>>>>> MsgBox "Hello, World!" >>>>>> ---------------------------------------------- >>>>>> >>>>>> Useful link: >>>>>> http://technet.microsoft.com/en-us/scriptcenter/default.aspx >>>>>> >>>>>> Absolutely, positively must-have download (watch wrap): >>>>>> http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&DisplayLang=en >>>>>> >>>>>> >>>>>> >>>>>> Protocol pointer. Limit signature to four lines. >>>>> OK, I used notepad to put the line of text above into a a vbs file, >>>>> tryit.vbs. Clicking on it twice only brought it up in Notepad. What is >>>>> watch wrap? >>>>> >>>> >>>> The wrap is that you put the code into a file called wolf.vbs.txt. Now >>>> if you make it wolf.vbs then it will work. >>> Clicking it twice does not work. Notepad comes up. I'm using Win7. >> >> Actually, what I meant by "watch wrap" was beware of the newsreader >> inserting a line break in the long link, but Pegasus' warning is good, >> too. >> >> Ok, try this. Copy the text between the dash lines and save it as >> "demo.hta," and see if that runs. >> ------------------------------------------------- >> <html><head><title>demo</title></head> >> <body> >> <script type="text/vbs"> >> document.writeLn "Hello, World!" >> </script> >> </body> >> </html> >> ------------------------------------------------- >> >> 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. > > > > > >> Crash >> >> Atheism is a matter of faith, too. > > I thought I made that clear there is no dangling .txt. The only suffix is vbs. -- 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/>
![]() |
0 |
![]() |
On 8/10/2010 9:02 AM, Dave "Crash" Dummy wrote: > wolf_tracks@invalid.com wrote: >> On 8/10/2010 8:24 AM, Pegasus [MVP] wrote: >>> >>> >>> <wolf_tracks@invalid.com> wrote in message >>> news:Ofoq95JOLHA.3732@TK2MSFTNGP02.phx.gbl... >>>> On 8/10/2010 6:03 AM, Dave "Crash" Dummy wrote: >>>>> wolf_tracks@invalid.com wrote: >>>>>> I'm told VBS comes with MS OSes, and that if I had an example script >>>>>> of a vbs program, I could see how it works by double clicking on the >>>>>> file. Does someone have a simple program that I could try that on? >>>>>> Maybe something that simply prints some text or prints the results of >>>>>> a simple calculation. I'm using Win 7. >>>>> >>>>> -----------------Demo.vbs---------------- >>>>> MsgBox "Hello, World!" >>>>> ---------------------------------------------- >>>>> >>>>> Useful link: >>>>> http://technet.microsoft.com/en-us/scriptcenter/default.aspx >>>>> >>>>> Absolutely, positively must-have download (watch wrap): >>>>> http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&DisplayLang=en >>>>> >>>>> >>>>> >>>>> >>>>> Protocol pointer. Limit signature to four lines. >>>> OK, I used notepad to put the line of text above into a a vbs file, >>>> tryit.vbs. Clicking on it twice only brought it up in Notepad. What is >>>> watch wrap? >>>> >>> >>> The wrap is that you put the code into a file called wolf.vbs.txt. Now >>> if you make it wolf.vbs then it will work. >> Clicking it twice does not work. Notepad comes up. I'm using Win7. > > Actually, what I meant by "watch wrap" was beware of the newsreader > inserting a line break in the long link, but Pegasus' warning is good, too. > > Ok, try this. Copy the text between the dash lines and save it as > "demo.hta," and see if that runs. > ------------------------------------------------- > <html><head><title>demo</title></head> > <body> > <script type="text/vbs"> > document.writeLn "Hello, World!" > </script> > </body> > </html> > ------------------------------------------------- > > Another thing you can do is right click on a .vbs file, select > "Properties," and see what is specified to open the file. 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? -- 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/>
![]() |
0 |
![]() |
wolf_tracks@invalid.com wrote: Re: Your tag line: > 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 I'm not saying coal is better (or worse) but, gee... them must be pretty small railroad cars... A railroad car can carry about 240,000 pounds... John
![]() |
0 |
![]() |
> 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?
![]() |
0 |
![]() |
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. > 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? -- Crash Committed to the search for intraterrestrial intelligence.
![]() |
0 |
![]() |
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. ". 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? -- 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/>
![]() |
0 |
![]() |
<wolf_tracks@invalid.com> wrote in message news:el1likMOLHA.4120@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? > > -- > 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/> >
![]() |
0 |
![]() |
mbyerley wrote: > "Dave "Crash" Dummy" <invalid@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)
![]() |
0 |
![]() |
Pegasus [MVP] wrote: > wolf_tracks@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?
![]() |
0 |
![]() |
On 8/10/2010 1:43 PM, mbyerley wrote: > <wolf_tracks@invalid.com> wrote in message > news:el1likMOLHA.4120@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. -- 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/>
![]() |
0 |
![]() |
<wolf_tracks@invalid.com> wrote in message news:el1likMOLHA.4120@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?
![]() |
0 |
![]() |
"Dave "Crash" Dummy" <invalid@invalid.invalid> wrote in message news:edDz0cMOLHA.3732@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.
![]() |
0 |
![]() |
<wolf_tracks@invalid.com> wrote in message news:uoqnB7NOLHA.3732@TK2MSFTNGP02.phx.gbl... > On 8/10/2010 1:43 PM, mbyerley wrote: >> <wolf_tracks@invalid.com> wrote in message >> news:el1likMOLHA.4120@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/> >
![]() |
0 |
![]() |
On 8/10/2010 4:47 PM, Pegasus [MVP] wrote: > > > <wolf_tracks@invalid.com> wrote in message > news:el1likMOLHA.4120@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? I think I missed this question above. I'm referring to an earlier one by "Crash". Useful link: http://technet.microsoft.com/en-us/scriptcenter/default.aspx Absolutely, positively must-have download (watch wrap): http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&DisplayLang=en I think the last one is the troublesome one. >> 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? Someone above mentioned two exe files. wscript.exe was one I think. Ah, cscript. The smallvoid link seems to apply to XP. I'm using Win 7. -- 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/>
![]() |
0 |
![]() |
<wolf_tracks@invalid.com> wrote in message news:#ifi6BWOLHA.2276@TK2MSFTNGP06.phx.gbl... > I think I missed this question above. I'm referring to an earlier one by > "Crash". > Useful link: > http://technet.microsoft.com/en-us/scriptcenter/default.aspx > > Absolutely, positively must-have download (watch wrap): > http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&DisplayLang=en Yes, Script56.chm is the helpfile I also mentioned. >>> Where do I find the exe file? Maybe that's part of the guide, I >>> couldn't download? > >> >> What .exe file? > Someone above mentioned two exe files. wscript.exe was one I think. Ah, > cscript. > The smallvoid link seems to apply to XP. I'm using Win 7. I mentioned cscript.exe and wscript.exe. Both exist in the System32 folder. They do not need to be downloaded or installed or anything - they just work.
![]() |
0 |
![]() |
"Todd Vargo" <tlvargo@sbcglobal.netz> wrote in message news:i3sldp$g1g$1@news.eternal-september.org... > mbyerley wrote: >> "Dave "Crash" Dummy" <invalid@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. I suspect the OP created a text document "new file" and then renamed it as "test script.vbs". With know filetype extensions hidden, the file looks like it is named "test script.vbs" when it is actually named "test script.vbs.txt". > However, you can always force any file name by enclosing it in double > quotes. > > "testscript.vbs" True, but for the times one forgets, I think it is more helpful to disable the filetype hiding feature. /Al
![]() |
0 |
![]() |
Al Dunbar wrote: > "Todd Vargo" <tlvargo@sbcglobal.netz> wrote in message > news:i3sldp$g1g$1@news.eternal-september.org... >> mbyerley wrote: >>> "Dave "Crash" Dummy" <invalid@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. > > I suspect the OP created a text document "new file" and then renamed it as > "test script.vbs". With know filetype extensions hidden, the file looks > like it is named "test script.vbs" when it is actually named "test > script.vbs.txt". > >> However, you can always force any file name by enclosing it in double >> quotes. >> >> "testscript.vbs" > > True, but for the times one forgets, I think it is more helpful to disable > the filetype hiding feature. I suspect you missed OP's post that said, "Selecting Properties worked. A choice for MS script came up, and selecting it produce a small window with "Hello World" in it." AFAIK, WSH will not run a file with a .txt extension without some registry tweaking (at least in Win9x and XP). I agree 100% with unhiding file extensions. That is the first thing I do on any machine I have control. -- Todd Vargo (Post questions to group only. Remove "z" to email personal messages)
![]() |
0 |
![]() |
"Todd Vargo" <tlvargo@sbcglobal.netz> wrote in message news:i421tv$jae$1@news.eternal-september.org... -snip- > I agree 100% with unhiding file extensions. That is the first thing I do > on any machine I have control. I've unsuccessfully toyed with vbscripts to set up new systems to my liking, with things like unhiding file extensions, changes to toolbars, status bar & explorer bar, folder view, etc. There are IE internet options that would also like to configure through VBScript. Have you been successful with scripting such changes, or do you do it manually? -Paul Randall
![]() |
0 |
![]() |
On 2010-08-10 13:13, wolf_tracks@invalid.com wrote: > I'm told VBS comes with MS OSes, and that if I had an example script of > a vbs program, I could see how it works by double clicking on the file. > Does someone have a simple program that I could try that on? Maybe > something that simply prints some text or prints the results of a simple > calculation. I'm using Win 7. I'm using SciTE. It's free and does what I want in VBScript, javascript and c++. http://www.scintilla.org/SciTE.html Open it, type this in, save it as a VBScript file (blah.vbs) and hit F5 to run it: WScript.Echo "Hello World" Maybe you'll need to make sure CScript is the one parsing it so you don't get those annoying WScript popups. I'm using the "lite" (A single file executable called Sc1) version of SciTE. I have configured it to use my fav font: Consolas, and I have tweaked some of the syntax highlighting colors. Other than that it is stock.
![]() |
0 |
![]() |
"Paul Randall" <paulr901@cableone.net> wrote: > > "Todd Vargo" <tlvargo@sbcglobal.netz> wrote in message > news:i421tv$jae$1@news.eternal-september.org... > > -snip- > >> I agree 100% with unhiding file extensions. That is the first thing I do >> on any machine I have control. > > I've unsuccessfully toyed with vbscripts to set up new systems to my liking, > with things like unhiding file extensions, changes to toolbars, status bar & > explorer bar, folder view, etc. There are IE internet options that would > also like to configure through VBScript. > > Have you been successful with scripting such changes, or do you do it > manually? Always via unattended setup, scripted with *.INF (the NATIVE method for ANY setup on Windows since 15 years now). Stefan
![]() |
0 |
![]() |
"Stefan Kanthak" <postmaster@[127.0.0.1]> wrote in message news:%231Pk5d$OLHA.5644@TK2MSFTNGP04.phx.gbl... > "Paul Randall" <paulr901@cableone.net> wrote: >> >> "Todd Vargo" <tlvargo@sbcglobal.netz> wrote in message >> news:i421tv$jae$1@news.eternal-september.org... >> >> -snip- >> >>> I agree 100% with unhiding file extensions. That is the first thing I do >>> on any machine I have control. >> >> I've unsuccessfully toyed with vbscripts to set up new systems to my >> liking, >> with things like unhiding file extensions, changes to toolbars, status >> bar & >> explorer bar, folder view, etc. There are IE internet options that would >> also like to configure through VBScript. >> >> Have you been successful with scripting such changes, or do you do it >> manually? > > Always via unattended setup, scripted with *.INF (the NATIVE method > for ANY setup on Windows since 15 years now). Thanks for the advice, Stefan I'm looking for a way to do this on computers that come with the OS preinstalled which typically having an unattended way to restore the system to 'out of the box' condition, such as a restore partition or DVD or with a user-created Ghost image made prior to the computer's first boot up. It is this restored and booted system that I want to customize to my liking. I've played with that 'out of the box' image for some 2005-era Compaq laptops with WXP-Home. HP/Compaq includes a huge number of Python scripts which I assume are used to set things up during the first boot, but I think it would be easier for me to learn how to make the registry changes needed for my customized system than to learn how to change the first-boot process. -Paul Randall
![]() |
0 |
![]() |
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. -- 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/>
![]() |
0 |
![]() |
<wolf_tracks@invalid.com> wrote in message news:#1xLGVDPLHA.5576@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.
![]() |
0 |
![]() |
"Pegasus [MVP]" <news@microsoft.com> wrote in message news:OinB6AEPLHA.2100@TK2MSFTNGP04.phx.gbl... > > > <wolf_tracks@invalid.com> wrote in message > news:#1xLGVDPLHA.5576@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
![]() |
0 |
![]() |
"Paul Randall" <paulr901@cableone.net> wrote: > > "Stefan Kanthak" <postmaster@[127.0.0.1]> wrote in message > news:%231Pk5d$OLHA.5644@TK2MSFTNGP04.phx.gbl... >> Always via unattended setup, scripted with *.INF (the NATIVE method >> for ANY setup on Windows since 15 years now). > > Thanks for the advice, Stefan > > I'm looking for a way to do this on computers that come with the OS > preinstalled which typically having an unattended way to restore the system > to 'out of the box' condition, such as a restore partition or DVD or with a > user-created Ghost image made prior to the computer's first boot up. It is > this restored and booted system that I want to customize to my liking. These OEM Preinstallations are almost always spoiled with unwanted and superfluous (trial) software, often carry remainders from previous (un)installations, or show even signs of multiple attempts of a factory setup and customization. The best thing to do with such an installation: trash it after inspection. Carefully look for a \i386\UNATTEND.TEXT or \i386\WINNT.SIF (their contents are copied to C:\Windows\$winnt$.inf) during setup, or a \SYSPREP\ folder. The \SUPPORT\TOOLS\DEPLOY.CAB on any of your Windows 2000/XP/2003 setup media contains two *.CHM which describe these files. The current DEPLOY.CAB is also available here: <http://www.microsoft.com/downloads/details.aspx?FamilyID=673a1019-8e3e-4be0-ac31-70dd21b5afa7> You can use the \i386 found on the harddisk to (re)build your own setup media (in case you have none) or a so called "distribution share" (to be used with RIS): integrate the current service pack and all the hotfixes into the media (http://technet.microsoft.com/en-us/library/cc755981.aspx), the necessary device drivers too, and use the \i386\WINNT.SIF to run your own scripts during setup. This will give you a CLEAN setup to start with. > I've played with that 'out of the box' image for some 2005-era Compaq > laptops with WXP-Home. HP/Compaq includes a huge number of Python scripts > which I assume are used to set things up during the first boot, but I think > it would be easier for me to learn how to make the registry changes needed > for my customized system than to learn how to change the first-boot process. OEMs almost always use SYSPREP(.INF) and/or OOBE(.INI) as starting point. See the above mentioned *.CHMs. Stefan
![]() |
0 |
![]() |
On 8/15/2010 8:40 AM, Al Dunbar wrote: > > > "Pegasus [MVP]" <news@microsoft.com> wrote in message > news:OinB6AEPLHA.2100@TK2MSFTNGP04.phx.gbl... >> >> >> <wolf_tracks@invalid.com> wrote in message >> news:#1xLGVDPLHA.5576@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. -- 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/>
![]() |
0 |
![]() |
<wolf_tracks@invalid.com> wrote in message news:#S#OXPPPLHA.5076@TK2MSFTNGP05.phx.gbl... > On 8/15/2010 8:40 AM, Al Dunbar wrote: >> >> >> "Pegasus [MVP]" <news@microsoft.com> wrote in message >> news:OinB6AEPLHA.2100@TK2MSFTNGP04.phx.gbl... >>> >>> >>> <wolf_tracks@invalid.com> wrote in message >>> news:#1xLGVDPLHA.5576@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. /Al
![]() |
0 |
![]() |
Paul Randall wrote: > "Todd Vargo" <tlvargo@sbcglobal.netz> wrote in message > news:i421tv$jae$1@news.eternal-september.org... > > -snip- > >> I agree 100% with unhiding file extensions. That is the first thing I do >> on any machine I have control. > > I've unsuccessfully toyed with vbscripts to set up new systems to my > liking, with things like unhiding file extensions, changes to toolbars, > status bar & explorer bar, folder view, etc. There are IE internet > options that would also like to configure through VBScript. > > Have you been successful with scripting such changes, or do you do it > manually? Manually since I typically do not expect the encounter in advance, and I do not want to wait until some later time/date when I will have a flash drive handy. I like to dive right in. Also, I used to export certain registry keys to import into future installations, but discontinued that practice since I have discontinued use of and/or replaced various utilities that those keys would point to over the years. IE has evolved many things over the years that there is really nothing one can consider standard between IE versions or even OS versions, but if you wanted to copy features of one system to another of the same type, it should be fairly simple to export/import through regedit. -- Todd Vargo (Post questions to group only. Remove "z" to email personal messages)
![]() |
0 |
![]() |
"Stefan Kanthak" <postmaster@[127.0.0.1]> wrote in message news:uxq9GdKPLHA.2100@TK2MSFTNGP04.phx.gbl... > "Paul Randall" <paulr901@cableone.net> wrote: >> >> "Stefan Kanthak" <postmaster@[127.0.0.1]> wrote in message >> news:%231Pk5d$OLHA.5644@TK2MSFTNGP04.phx.gbl... > >>> Always via unattended setup, scripted with *.INF (the NATIVE method >>> for ANY setup on Windows since 15 years now). >> >> Thanks for the advice, Stefan >> >> I'm looking for a way to do this on computers that come with the OS >> preinstalled which typically having an unattended way to restore the >> system >> to 'out of the box' condition, such as a restore partition or DVD or with >> a >> user-created Ghost image made prior to the computer's first boot up. It >> is >> this restored and booted system that I want to customize to my liking. > > These OEM Preinstallations are almost always spoiled with unwanted and > superfluous (trial) software, often carry remainders from previous > (un)installations, or show even signs of multiple attempts of a factory > setup and customization. > > The best thing to do with such an installation: trash it after inspection. > Carefully look for a \i386\UNATTEND.TEXT or \i386\WINNT.SIF (their > contents > are copied to C:\Windows\$winnt$.inf) during setup, or a \SYSPREP\ folder. > > The \SUPPORT\TOOLS\DEPLOY.CAB on any of your Windows 2000/XP/2003 setup > media contains two *.CHM which describe these files. > > The current DEPLOY.CAB is also available here: > <http://www.microsoft.com/downloads/details.aspx?FamilyID=673a1019-8e3e-4be0-ac31-70dd21b5afa7> > > You can use the \i386 found on the harddisk to (re)build your own setup > media (in case you have none) or a so called "distribution share" (to > be used with RIS): integrate the current service pack and all the hotfixes > into the media (http://technet.microsoft.com/en-us/library/cc755981.aspx), > the necessary device drivers too, and use the \i386\WINNT.SIF to run your > own scripts during setup. > > This will give you a CLEAN setup to start with. > >> I've played with that 'out of the box' image for some 2005-era Compaq >> laptops with WXP-Home. HP/Compaq includes a huge number of Python >> scripts >> which I assume are used to set things up during the first boot, but I >> think >> it would be easier for me to learn how to make the registry changes >> needed >> for my customized system than to learn how to change the first-boot >> process. > > OEMs almost always use SYSPREP(.INF) and/or OOBE(.INI) as starting point. > See the above mentioned *.CHMs. Thanks for the detailed explaination. I will try it when I get some free time next month. I had planned on asking for help in the WXP newsgroup with modifying theOEM's setup mechanism to avoid the 'crapware' installation and have a fairly clean system. -Paul Randall
![]() |
0 |
![]() |
"Todd Vargo" <tlvargo@sbcglobal.netz> wrote in message news:i4chh5$cri$1@news.eternal-september.org... > Paul Randall wrote: >> "Todd Vargo" <tlvargo@sbcglobal.netz> wrote in message >> news:i421tv$jae$1@news.eternal-september.org... >> >> -snip- >> >>> I agree 100% with unhiding file extensions. That is the first thing I do >>> on any machine I have control. >> >> I've unsuccessfully toyed with vbscripts to set up new systems to my >> liking, with things like unhiding file extensions, changes to toolbars, >> status bar & explorer bar, folder view, etc. There are IE internet >> options that would also like to configure through VBScript. >> >> Have you been successful with scripting such changes, or do you do it >> manually? > > Manually since I typically do not expect the encounter in advance, and I > do not want to wait until some later time/date when I will have a flash > drive handy. I like to dive right in. > > Also, I used to export certain registry keys to import into future > installations, but discontinued that practice since I have discontinued > use of and/or replaced various utilities that those keys would point to > over the years. IE has evolved many things over the years that there is > really nothing one can consider standard between IE versions or even OS > versions, but if you wanted to copy features of one system to another of > the same type, it should be fairly simple to export/import through > regedit. Thanks for letting me know your reasons for doing it manually. I've been using IE6 since I got my first WXP system, but I think I will soon be forced to modernize. -Paul Randall
![]() |
0 |
![]() |
"Al Dunbar" <alandrub@hotmail.com> wrote in message news:OY3$hIXPLHA.2100@TK2MSFTNGP02.phx.gbl... > > > <wolf_tracks@invalid.com> wrote in message > news:#S#OXPPPLHA.5076@TK2MSFTNGP05.phx.gbl... >> On 8/15/2010 8:40 AM, Al Dunbar wrote: >>> >>> >>> "Pegasus [MVP]" <news@microsoft.com> wrote in message >>> news:OinB6AEPLHA.2100@TK2MSFTNGP04.phx.gbl... >>>> >>>> >>>> <wolf_tracks@invalid.com> wrote in message >>>> news:#1xLGVDPLHA.5576@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
![]() |
0 |
![]() |
On 8/17/2010 9:46 AM, Al Dunbar wrote: > > > "Al Dunbar" <alandrub@hotmail.com> wrote in message > news:OY3$hIXPLHA.2100@TK2MSFTNGP02.phx.gbl... >> >> >> <wolf_tracks@invalid.com> wrote in message >> news:#S#OXPPPLHA.5076@TK2MSFTNGP05.phx.gbl... >>> On 8/15/2010 8:40 AM, Al Dunbar wrote: >>>> >>>> >>>> "Pegasus [MVP]" <news@microsoft.com> wrote in message >>>> news:OinB6AEPLHA.2100@TK2MSFTNGP04.phx.gbl... >>>>> >>>>> >>>>> <wolf_tracks@invalid.com> wrote in message >>>>> news:#1xLGVDPLHA.5576@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. I couldn't really find out one creates a file like abc.vbs that has pure VBS code in it w/o html. Above somewhere, someone brought wscript.exe (and another exe) 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. If it turns out I can execute a abc.vbs file, then my next question is can I execute it from JavaScript. 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?) 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. -- 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/>
![]() |
0 |
![]() |
<wolf_tracks@invalid.com> wrote in message news:up0WqKOQLHA.2064@TK2MSFTNGP05.phx.gbl... > On 8/17/2010 9:46 AM, Al Dunbar wrote: >> >> >> "Al Dunbar" <alandrub@hotmail.com> wrote in message >> news:OY3$hIXPLHA.2100@TK2MSFTNGP02.phx.gbl... >>> >>> >>> <wolf_tracks@invalid.com> wrote in message >>> news:#S#OXPPPLHA.5076@TK2MSFTNGP05.phx.gbl... >>>> On 8/15/2010 8:40 AM, Al Dunbar wrote: >>>>> >>>>> >>>>> "Pegasus [MVP]" <news@microsoft.com> wrote in message >>>>> news:OinB6AEPLHA.2100@TK2MSFTNGP04.phx.gbl... >>>>>> >>>>>> >>>>>> <wolf_tracks@invalid.com> wrote in message >>>>>> news:#1xLGVDPLHA.5576@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
![]() |
0 |
![]() |
On 8/20/2010 10:13 PM, Al Dunbar wrote: > > > <wolf_tracks@invalid.com> wrote in message > news:up0WqKOQLHA.2064@TK2MSFTNGP05.phx.gbl... >> On 8/17/2010 9:46 AM, Al Dunbar wrote: >>> >>> >>> "Al Dunbar" <alandrub@hotmail.com> wrote in message >>> news:OY3$hIXPLHA.2100@TK2MSFTNGP02.phx.gbl... >>>> >>>> >>>> <wolf_tracks@invalid.com> wrote in message >>>> news:#S#OXPPPLHA.5076@TK2MSFTNGP05.phx.gbl... >>>>> On 8/15/2010 8:40 AM, Al Dunbar wrote: >>>>>> >>>>>> >>>>>> "Pegasus [MVP]" <news@microsoft.com> wrote in message >>>>>> news:OinB6AEPLHA.2100@TK2MSFTNGP04.phx.gbl... >>>>>>> >>>>>>> >>>>>>> <wolf_tracks@invalid.com> wrote in message >>>>>>> news:#1xLGVDPLHA.5576@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/>
![]() |
0 |
![]() |
<wolf_tracks@invalid.com> wrote in message news:u9MjYkVQLHA.4988@TK2MSFTNGP04.phx.gbl... > On 8/20/2010 10:13 PM, Al Dunbar wrote: >> >> >> <wolf_tracks@invalid.com> wrote in message >> news:up0WqKOQLHA.2064@TK2MSFTNGP05.phx.gbl... >>> On 8/17/2010 9:46 AM, Al Dunbar wrote: >>>> >>>> >>>> "Al Dunbar" <alandrub@hotmail.com> wrote in message >>>> news:OY3$hIXPLHA.2100@TK2MSFTNGP02.phx.gbl... >>>>> >>>>> >>>>> <wolf_tracks@invalid.com> wrote in message >>>>> news:#S#OXPPPLHA.5076@TK2MSFTNGP05.phx.gbl... >>>>>> On 8/15/2010 8:40 AM, Al Dunbar wrote: >>>>>>> >>>>>>> >>>>>>> "Pegasus [MVP]" <news@microsoft.com> wrote in message >>>>>>> news:OinB6AEPLHA.2100@TK2MSFTNGP04.phx.gbl... >>>>>>>> >>>>>>>> >>>>>>>> <wolf_tracks@invalid.com> wrote in message >>>>>>>> news:#1xLGVDPLHA.5576@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
![]() |
0 |
![]() |
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)
![]() |
0 |
![]() |
"Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message news:Xns9DDF5DF1738D7eejj99@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
![]() |
0 |
![]() |
Al Dunbar wrote on 26 aug 2010 in microsoft.public.scripting.vbscript: > "Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message > news:Xns9DDF5DF1738D7eejj99@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. Sort of Jaca? > What you say is very much like the truth. ;-) The result at least should be true: <script type='text/javascript'> var result = true != false; </script> -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
![]() |
0 |
![]() |
"Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message news:Xns9DE09B04A7E99eejj99@194.109.133.242... > Al Dunbar wrote on 26 aug 2010 in microsoft.public.scripting.vbscript: > >> "Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message >> news:Xns9DDF5DF1738D7eejj99@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. > > Sort of Jaca? So Jacascript actually has EJMA-script as its official name? ;-) >> What you say is very much like the truth. ;-) > > The result at least should be true: > > <script type='text/javascript'> > var result = true != false; > </script> I find this a bit more intuitive: <script type='text/vbscript'> result = not ( true = false ) </script> But did you get the gist of my "very much like" comment? A person named Jane looks very much like my wife. The fact that she also *is* my wife does not negate that first statement. She certainly does not look unlike my wife as a result of being my wife. /Al
![]() |
0 |
![]() |
Al Dunbar wrote on 27 aug 2010 in microsoft.public.scripting.vbscript: > I find this a bit more intuitive: > <script type='text/vbscript'> > result = not ( true = false ) > </script> I prefer the ideas of Edsger Dijkstra [1930-2002] about Basic. Felt intuitivity leads to sloppy programming. There is beauty in Javascript that fails in VBS. Example, the sloppy allowance in vbs of this faulty statement: if a = b then c = d end if > But did you get the gist of my "very much like" comment? A person > named Jane looks very much like my wife. The fact that she also *is* > my wife does not negate that first statement. She certainly does not > look unlike my wife as a result of being my wife. "I just saw a son of my parents, who is not my brother." A statement that validates only for much less than 50% of humanity. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
![]() |
0 |
![]() |
| | I prefer the ideas of Edsger Dijkstra [1930-2002] about Basic. | Felt intuitivity leads to sloppy programming. | There is beauty in Javascript that fails in VBS. | | Example, the sloppy allowance in vbs of this faulty statement: | | if a = b then c = d end if | I don't see the problem with that. If it's sunny then we're going to the beach. I don't find that I get confused re-reading my code, thinking that the beach turned into the sun. I find that arrogance about one's chosen language tends to be in relation to the terseness of it. C++ people are stuck with annoying semi-colons, but that doesn't stop a lot of them from holding forth about their "superior" language. And many Perl users seem to think they're the Chosen People. But "We're number 1!" is simply childish, no matter what the topic. PS - Al, I'd suggest that you don't take up this issue with your wife. She may not appreciate that you're thinking about women who look like her -- even if they are her. :)
![]() |
0 |
![]() |
| Got side tracked with interesting results. I did buy a used VBS book, | circa 1999. It appears VBS is really for web apps. It started out as a web scripting language to compete with Netscape. Many people assumed Netscape would then incorporate VBScript. It never did. Likewise with ActiveX. By 1998 people were asking for a GUI scripting tool to replace the outdated DOS command line. MS used VBS in that, creating the WSH. By adding "CreateObject" they extended VBS to handle COM libraries. There's a great deal that VBS can do, but very little it can do by itself. It's strength is that it can use nearly any COM library with a Dispatch interface. ("late binding") Today VBS is for use with WSH, in ASP, and in HTAs. (Scripted GUI programs that run in IE, using the DOM to provide functionality.) You can use it online, but only for IE. I use VBScript on my own website. In general I try to avoid any script because it's unsafe and I don't enable it in the browser myself. But IE is way behind in support for CSS, and I want to do things (like "flyout menus") that won't work in at least some versions of IE. So I use PHP to load one version of each webpage for IE and another, script-free version of the page for all other browsers. Since the IE page goes only to IE I can use VBS for the script. | | 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. | VBS is a script, subset version of VB. The language is very similar. At it's simplest, VB is designed so that beginners can essentially write script, using only variant data types and ActiveX Controls, with garbage collection. But that's just the training wheels. VB is normally used with strong data typing, uses the Win32 API, and one can dispense with the ActiveX .ocx file wrappers. In that usage VB is comparable to C++, producing native code executables. (But the methodology is different from C++, since VB is designed to be safer, with garbage collection, simplified string operations, and less direct access to memory addresses.) That all needs to be differentiated from VB.Net, which is often referred to as "VB" these days. VB5 and 6 are VB. They're very similar, with VB6 being a minor update. Starting with VB.Net (sometimes misleading called "VB7") Microsoft dropped support for VB while adding a VB-like language to the .Net system, which is essentially a Java clone running JIT-compiled code on top of a VM. Note that if you use VB, VB5/6 are supported from Win95 through Win7, but I don't think the runtime for VB5 is pre-installed on Vista/7. You'd need to install that on target machines. If you use VB6 it's essentially dependency free on 2000/ME/XP/Vista/7. (The runtimes can be installed on earlier Windows versions.)
![]() |
0 |
![]() |
| Got side tracked with interesting results. I did buy a used VBS book, | circa 1999. It appears VBS is really for web apps. It started out as a web scripting language to compete with Netscape. Many people assumed Netscape would then incorporate VBScript. It never did. Likewise with ActiveX. By 1998 people were asking for a GUI scripting tool to replace the outdated DOS command line. MS used VBS in that, creating the WSH. By adding "CreateObject" they extended VBS to handle COM libraries. There's a great deal that VBS can do, but very little it can do by itself. It's strength is that it can use nearly any COM library with a Dispatch interface. ("late binding") Today VBS is for use with WSH, in ASP, and in HTAs. (Scripted GUI programs that run in IE, using the DOM to provide functionality.) You can use it online, but only for IE. I use VBScript on my own website. In general I try to avoid any script because it's unsafe and I don't enable it in the browser myself. But IE is way behind in support for CSS, and I want to do things (like "flyout menus") that won't work in at least some versions of IE. So I use PHP to load one version of each webpage for IE and another, script-free version of the page for all other browsers. Since the IE page goes only to IE I can use VBS for the script. | | 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. | VBS is a script, subset version of VB. The language is very similar. At it's simplest, VB is designed so that beginners can essentially write script, using only variant data types and ActiveX Controls, with garbage collection. But that's just the training wheels. VB is normally used with strong data typing, uses the Win32 API, and one can dispense with the ActiveX .ocx file wrappers. In that usage VB is comparable to C++, producing native code executables. (But the methodology is different from C++, since VB is designed to be safer, with garbage collection, simplified string operations, and less direct access to memory addresses.) That all needs to be differentiated from VB.Net, which is often referred to as "VB" these days. VB5 and 6 are VB. They're very similar, with VB6 being a minor update. Starting with VB.Net (sometimes misleading called "VB7") Microsoft dropped support for VB while adding a VB-like language to the .Net system, which is essentially a Java clone running JIT-compiled code on top of a VM. Note that if you use VB, VB5/6 are supported from Win95 through Win7, but I don't think the runtime for VB5 is pre-installed on Vista/7. You'd need to install that on target machines. If you use VB6 it's essentially dependency free on 2000/ME/XP/Vista/7. (The runtimes can be installed on earlier Windows versions.)
![]() |
0 |
![]() |
| | I prefer the ideas of Edsger Dijkstra [1930-2002] about Basic. | Felt intuitivity leads to sloppy programming. | There is beauty in Javascript that fails in VBS. | | Example, the sloppy allowance in vbs of this faulty statement: | | if a = b then c = d end if | I don't see the problem with that. If it's sunny then we're going to the beach. I don't find that I get confused re-reading my code, thinking that the beach turned into the sun. I find that arrogance about one's chosen language tends to be in relation to the terseness of it. C++ people are stuck with annoying semi-colons, but that doesn't stop a lot of them from holding forth about their "superior" language. And many Perl users seem to think they're the Chosen People. But "We're number 1!" is simply childish, no matter what the topic. PS - Al, I'd suggest that you don't take up this issue with your wife. She may not appreciate that you're thinking about women who look like her -- even if they are her. :)
![]() |
0 |
![]() |
Mayayana wrote on 27 aug 2010 in microsoft.public.scripting.vbscript: >| I prefer the ideas of Edsger Dijkstra [1930-2002] about Basic. >| Felt intuitivity leads to sloppy programming. >| There is beauty in Javascript that fails in VBS. >| >| Example, the sloppy allowance in vbs of this faulty statement: >| >| if a = b then c = d end if >| > > I don't see the problem with that. Then you are not a Basic native speaker. there are two forms of If-then: ============== if a then b ============== and the young William Gates invention: ============== if a then b end if ============== so the below is an error and should flagged down as an error: ============== if a then b end if ============== end it is flagged down in many Basics but not in in MS-VBS. > If it's sunny > then we're going to the beach. I don't find that I > get confused re-reading my code, thinking that the > beach turned into the sun. Why should you be. It can be sunny on the beach and minus 40, immaterial if in degrees Celcius or Farenheit. > I find that arrogance Wow, we are talking VBS here, arrogance is off topic. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
![]() |
0 |
![]() |
"Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message news:Xns9DE161EA0B94Feejj99@194.109.133.242... > Al Dunbar wrote on 27 aug 2010 in microsoft.public.scripting.vbscript: > >> I find this a bit more intuitive: > >> <script type='text/vbscript'> >> result = not ( true = false ) >> </script> > > I prefer the ideas of Edsger Dijkstra [1930-2002] about Basic. > Felt intuitivity leads to sloppy programming. Perhaps. When did he actually say that? And did he ever have a chance to comment on 21st century platforms? In reality, I agree with him. I have seen a lot of sloppy VBS code (some my own). But a corollary might be that a language that is so rigid in its syntax rules might hamper ingenuity in some. Yes, there are aspects of vbscript syntax that could result in sloppy coding. But for this very reason, many serious scripters develop discipline strategies to ward that off. > There is beauty in Javascript that fails in VBS. Beauty, they say, is in the eye of the beholder, though. I don't find Javascript code particularly esthetic, likely because I find it more difficult to follow than vbscript. Admitedly, that is because I use vbscript and not Javascript. For relative comparisons, I will have to defer to those equally conversant in, and happy with, both languages. Know anyone in that category? > Example, the sloppy allowance in vbs of this faulty statement: > > if a = b then c = d end if Well, what vbscript allows is a moot point, as those (apparent) weaknesses will never be addressed (along with the known bugs). A good thing too, as that would probably break a lot of code. /Al
![]() |
0 |
![]() |
"Mayayana" <mayayana@invalid.nospam> wrote in message news:i58dmo$r2t$1@news.eternal-september.org... <snip> > I find that arrogance > about one's chosen language tends to be in relation > to the terseness of it. Interesting observation. I prefer this one: language arrogance is not healthy regardless of the chosen language. These are tools, guys, let's not get our shorts tied in knots arguing the number of angels on the head of a pin! > C++ people are stuck with > annoying semi-colons, but that doesn't stop a lot > of them from holding forth about their "superior" > language. True. But those who actually like the semi-colons do not agree that they are stuck with them. They are probably happy not to have too many colons, otherwise they will be forced to cleanse. > And many Perl users seem to think they're > the Chosen People. But "We're number 1!" is simply > childish, no matter what the topic. LOL. Do you know *any* language that has no zealots?? > PS - Al, I'd suggest that you don't take up this > issue with your wife. She may not appreciate that > you're thinking about women who look like her -- > even if they are her. :) Hmm, for a computer geek, you seem to have some fairly sophisticated views about relations between the sexes. I'll keep your advice in mind. /Al
![]() |
0 |
![]() |
Al Dunbar wrote: > > > "Mayayana" <mayayana@invalid.nospam> wrote in message > news:i58dmo$r2t$1@news.eternal-september.org... > > <snip> > >> I find that arrogance >> about one's chosen language tends to be in relation >> to the terseness of it. > > Interesting observation. I prefer this one: language arrogance is not > healthy regardless of the chosen language. These are tools, guys, let's > not get our shorts tied in knots arguing the number of angels on the > head of a pin! > >> C++ people are stuck with >> annoying semi-colons, but that doesn't stop a lot >> of them from holding forth about their "superior" >> language. > > True. But those who actually like the semi-colons do not agree that they > are stuck with them. They are probably happy not to have too many > colons, otherwise they will be forced to cleanse. > >> And many Perl users seem to think they're >> the Chosen People. But "We're number 1!" is simply >> childish, no matter what the topic. > > LOL. Do you know *any* language that has no zealots?? > >> PS - Al, I'd suggest that you don't take up this >> issue with your wife. She may not appreciate that >> you're thinking about women who look like her -- >> even if they are her. :) > > Hmm, for a computer geek, you seem to have some fairly sophisticated > views about relations between the sexes. I'll keep your advice in mind. The One True Faith is Assembler. All else are varying degrees of heresy. :-) -- Crash Committed to the search for intraterrestrial intelligence.
![]() |
0 |
![]() |
| >| Example, the sloppy allowance in vbs of this faulty statement: | >| | >| if a = b then c = d end if | >| | > | > I don't see the problem with that. | | Then you are not a Basic native speaker. | So what? Do you want historical credentials or workable code. It works gine for me. The End If can be used or skipped. It also provides the option for extensive code within it: If a = b then c = d e = f g - h = i End If | | > I find that arrogance about one's chosen | > language tends to be in relation | > to the terseness of it. | | Wow, we are talking VBS here, | arrogance is off topic. | Indeed....I rest my case. :)
![]() |
0 |
![]() |
Evertjan. wrote: > Mayayana wrote on 27 aug 2010 in microsoft.public.scripting.vbscript: > >> | I prefer the ideas of Edsger Dijkstra [1930-2002] about Basic. >> | Felt intuitivity leads to sloppy programming. >> | There is beauty in Javascript that fails in VBS. >> | >> | Example, the sloppy allowance in vbs of this faulty statement: >> | >> | if a = b then c = d end if >> | >> >> I don't see the problem with that. > > Then you are not a Basic native speaker. > > there are two forms of If-then: > > ============== > if a then b > ============== > > and the young William Gates invention: > > ============== > if a then > b > end if > ============== > > so the below is an error and should flagged down as an error: > > ============== > if a then b end if > ============== > > end it is flagged down in many Basics but not in in MS-VBS. > > >> If it's sunny >> then we're going to the beach. I don't find that I >> get confused re-reading my code, thinking that the >> beach turned into the sun. > > Why should you be. It can be sunny on the beach and minus 40, > immaterial if in degrees Celcius or Farenheit. > >> I find that arrogance > > Wow, we are talking VBS here, > arrogance is off topic. Arrogance is /always/ on topic with programmers. :-) -- Crash "It is not necessary to change. Survival is not mandatory." ~ W. Edwards Deming ~
![]() |
0 |
![]() |
| The One True Faith is Assembler. All else are varying degrees of heresy. :-) | -- :) The president looks down on the VP and the rubbish man looks down on the garbage man.... but they're all stuck on the same self-imposed ladder to nowhere.
![]() |
0 |
![]() |
Al Dunbar wrote on 28 aug 2010 in microsoft.public.scripting.vbscript: >> Example, the sloppy allowance in vbs of this faulty statement: >> >> if a = b then c = d end if > > Well, what vbscript allows is a moot point, as those (apparent) > weaknesses will never be addressed (along with the known bugs). A good > thing too, as that would probably break a lot of code. The story goes that years ago MS corrected this in an update, and then some really big websites, [like cnn.com and/or bbc.co.uk ?], I remember, came crashing to a full stop, because the programmers had written sloppily about this. In a speedy update the error correction was undone. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
![]() |
0 |
![]() |
"Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message news:Xns9DE2BBD71518Aeejj99@194.109.133.242... > Al Dunbar wrote on 28 aug 2010 in microsoft.public.scripting.vbscript: > >>> Example, the sloppy allowance in vbs of this faulty statement: >>> >>> if a = b then c = d end if >> >> Well, what vbscript allows is a moot point, as those (apparent) >> weaknesses will never be addressed (along with the known bugs). A good >> thing too, as that would probably break a lot of code. > > The story goes that years ago MS corrected this in an update, and then > some really big websites, [like cnn.com and/or bbc.co.uk ?], I remember, > came crashing to a full stop, because the programmers had written sloppily > about this. LOL. We are our own worst enemies when it comes to scuttling the improvements we wish for... > In a speedy update the error correction was undone. Quite ironic /Al
![]() |
0 |
![]() |