Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

.wsf vs .wsc

21 views
Skip to first unread message

syl

unread,
Mar 26, 2002, 1:14:08 PM3/26/02
to
Hi there!

Can sombody tell me when to create .wsf file and when .wsc. ie. what is the
difrence between windows scripting component and windows scripting file ?

10x!


Alex K. Angelopoulos

unread,
Mar 26, 2002, 12:31:06 PM3/26/02
to
A WSF is a script - you can directly run jobs it contains.

A WSC is a script component which needs to be registered on the system where it will be used, and is referenced from other scripts (or any engine capable of using COM objects) via its Programmatic Identifier or GUID.

"syl" <sy...@abv.bg> wrote in message news:ernyipO1BHA.2440@tkmsftngp03...

Michael Harris (MVP)

unread,
Mar 26, 2002, 10:08:19 PM3/26/02
to
"A WSC is a script component which needs to be registered ..."

Not exactly true...

set obj = getobject("script:component_path#component_id")

where

component_path can be:
c:\mypath\mywsc.wsc
\\server\share\mypath\mywsc.wsc
http://server/mysite/mypath/mywsc.wsc

#component_id is optional. You get the 1st component in the WSC by default. You only need #component id if there is more than one in the WSC and you want one other than the first...

--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--
"Alex K. Angelopoulos" <alex_angelopoulos_at_hotmail_dot_com_remove__> wrote in message news:eJ4q4vO1BHA.1452@tkmsftngp05...

Alex K. Angelopoulos

unread,
Mar 26, 2002, 10:16:18 PM3/26/02
to
I thought I was oversimplifying - I was actually thinking about the GetRef and MSG.WSC discussions we had when I posted..

"Michael Harris (MVP)" <mik...@mvps.org> wrote in message news:uKQPMyT1BHA.2736@tkmsftngp03...

0 new messages