|
 |
asp_web_howto thread: Unknown Component
Message #1 by "John K" <kamau@s...> on Thu, 18 Jan 2001 12:00:51 +0300
|
|
I saw this in someone's code
set wscr=CreateObject("WScript.Shell")
anyone know what this object is capable of?
john
Message #2 by "TomMallard" <mallard@s...> on Thu, 18 Jan 2001 05:02:01 -0800
|
|
This is the windows scripting host, it is very versatile.
set wscr=CreateObject("WScript.Shell")
wscr.Run Iexplore.exe "http://msdn.microsoft.com/scripting"
This would open a browser with the url...it can run *.bat files, has access
to the registry so can automate configurations, limitless utility...
Goto: http://msdn.microsoft.com/scripting for downloads and details.
tom mallard
seattle
----- Original Message -----
From: "John K" <kamau@s...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Thursday, January 18, 2001 10:33 AM
Subject: [asp_web_howto] Unknown Component
| I saw this in someone's code
|
| set wscr=CreateObject("WScript.Shell")
|
| anyone know what this object is capable of?
|
| john
|
|
|
|
|
Message #3 by "John K" <kamau@s...> on Thu, 18 Jan 2001 17:06:47 +0300
|
|
Thanks
In the snippet I saw it was being used to change the start page of Internet
Explorer to the current page by editing the registry. using obj.RegRead
very powerfull object! Though the documentation in msdn is not very much.
john
> -----Original Message-----
> This is the windows scripting host, it is very versatile.
>
> set wscr=CreateObject("WScript.Shell")
> wscr.Run Iexplore.exe "http://msdn.microsoft.com/scripting"
>
> This would open a browser with the url...it can run *.bat
> files, has access
> to the registry so can automate configurations, limitless utility...
>
> Goto: http://msdn.microsoft.com/scripting for downloads and details.
>
> tom mallard
> seattle
> ----- Original Message -----
>
> | I saw this in someone's code
> |
> | set wscr=CreateObject("WScript.Shell")
> |
> | anyone know what this object is capable of?
> |
> | john
> |
Message #4 by "TomMallard" <mallard@s...> on Thu, 18 Jan 2001 07:35:13 -0800
|
|
WROX has a book on it..."Windows Scripting Host: Programmers Reference"...it
has more about what can be done with it. As you say, very powerful tool, I'm
using it more all the time.
Check out the "scripting components" link on msdn.microsoft.com/scripting,
it has a wizard that creates components out of scripts. These can then be
called by an asp page (or vice versa), configured to the network and
registered on the clients to run there. They can then be run as job packages
under NT scheduler. They take seconds to create and are xml files so the
CDATA section can be hand edited once created.
tom
----- Original Message -----
From: "John K" <kamau@s...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Thursday, January 18, 2001 6:06 AM
Subject: [asp_web_howto] Re: Unknown Component
| Thanks
| In the snippet I saw it was being used to change the start page of
Internet
| Explorer to the current page by editing the registry. using obj.RegRead
| very powerfull object! Though the documentation in msdn is not very much.
| john
|
|
|
| > -----Original Message-----
| > This is the windows scripting host, it is very versatile.
| >
| > set wscr=CreateObject("WScript.Shell")
| > wscr.Run Iexplore.exe "http://msdn.microsoft.com/scripting"
| >
| > This would open a browser with the url...it can run *.bat
| > files, has access
| > to the registry so can automate configurations, limitless utility...
| >
| > Goto: http://msdn.microsoft.com/scripting for downloads and details.
| >
| > tom mallard
| > seattle
| > ----- Original Message -----
| >
| > | I saw this in someone's code
| > |
| > | set wscr=CreateObject("WScript.Shell")
| > |
| > | anyone know what this object is capable of?
| > |
| > | john
| > |
|
Message #5 by "John K" <kamau@s...> on Fri, 19 Jan 2001 10:36:59 +0300
|
|
I'll make sure to get the book. Wrox seems to have one for everything.
Next we'll here "Brain Surgery with ASP" by Wrox Press.
I've just been to the microsoft site and they have some interesting stuff to
say about script components. i'll read more on it.
Are there any limits to using script components? as in can i write one and
use it in a visual basic products or is that illeagal?
thanks
john
> -----Original Message-----
> From: bounce-asp_web_howto-302817@p...
> [mailto:bounce-asp_web_howto-302817@p...]On Behalf Of
> TomMallard
> Sent: 18 January, 2001 6:35 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] Re: Unknown Component
>
>
> WROX has a book on it..."Windows Scripting Host: Programmers
> Reference"...it
> has more about what can be done with it. As you say, very
> powerful tool, I'm
> using it more all the time.
>
> Check out the "scripting components" link on
> msdn.microsoft.com/scripting,
> it has a wizard that creates components out of scripts. These
> can then be
> called by an asp page (or vice versa), configured to the network and
> registered on the clients to run there. They can then be run
> as job packages
> under NT scheduler. They take seconds to create and are xml
> files so the
> CDATA section can be hand edited once created.
>
> tom
Message #6 by "TomMallard" <mallard@s...> on Fri, 19 Jan 2001 05:21:25 -0800
|
|
I'm fairly certain they can be used by any program or script once they're
registered on the server. They act like COM objects. To use them in VB
projects you can create a type library with vbscript v5. Pretty limitless
utility...I'm using them more all the time.
tom
----- Original Message -----
From: "John K" <kamau@s...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Thursday, January 18, 2001 11:36 PM
Subject: [asp_web_howto] Re: Unknown Component
| I'll make sure to get the book. Wrox seems to have one for everything.
| Next we'll here "Brain Surgery with ASP" by Wrox Press.
| I've just been to the microsoft site and they have some interesting stuff
to
| say about script components. i'll read more on it.
| Are there any limits to using script components? as in can i write one and
| use it in a visual basic products or is that illeagal?
| thanks
|
| john
|
| > -----Original Message-----
| > From: bounce-asp_web_howto-302817@p...
| > [mailto:bounce-asp_web_howto-302817@p...]On Behalf Of
| > TomMallard
| > Sent: 18 January, 2001 6:35 PM
| > To: ASP Web HowTo
| > Subject: [asp_web_howto] Re: Unknown Component
| >
| >
| > WROX has a book on it..."Windows Scripting Host: Programmers
| > Reference"...it
| > has more about what can be done with it. As you say, very
| > powerful tool, I'm
| > using it more all the time.
| >
| > Check out the "scripting components" link on
| > msdn.microsoft.com/scripting,
| > it has a wizard that creates components out of scripts. These
| > can then be
| > called by an asp page (or vice versa), configured to the network and
| > registered on the clients to run there. They can then be run
| > as job packages
| > under NT scheduler. They take seconds to create and are xml
| > files so the
| > CDATA section can be hand edited once created.
| >
| > tom
|
|
 |