Microsoft Content Management Server - Access PAPI from vbs

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > October 2004 > Access PAPI from vbs





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Access PAPI from vbs
Justin

2004-10-26, 2:46 am

Hi all,

How do I access the PAPI from a vbs file?
CreateObject("*.*")

thx


Stefan [MSFT]

2004-10-26, 2:46 am

Hi Justin,

PAPI can be used from VB.NET and from C#. Not from vbs.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"Justin" <justin_dbd@nospam.nospam> wrote in message
news:eCW71uyuEHA.2624@TK2MSFTNGP11.phx.gbl...
> Hi all,
>
> How do I access the PAPI from a vbs file?
> CreateObject("*.*")
>
> thx
>
>



Justin

2004-10-26, 7:46 am

Hi Stefan,

so how would you recommend getting the guid of a channel where the path is
known for use in the CmsDeployExport.Export(string, long, string) method.
The third param needs to be the guid of the channel I want to export. I have
a vbs script that does the export ok, but I was hoping to use something like
Searches.GetByPath and Channel.Guid to get the guid I need.

I really hope I don't need an external process that passes the guid to the
script via a command parameter!

Thanks



"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:ef9ZzdzuEHA.940@TK2MSFTNGP14.phx.gbl...
> Hi Justin,
>
> PAPI can be used from VB.NET and from C#. Not from vbs.
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no

rights.
>
> MCMS FAQ:
>

http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
> MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> MCMS Sample Code:
>

http://www.gotdotnet.com/community/...t+S
erver

> MCMS Whitepapers and other docs:
> http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
> --------------------------------
>
>
> "Justin" <justin_dbd@nospam.nospam> wrote in message
> news:eCW71uyuEHA.2624@TK2MSFTNGP11.phx.gbl...
>
>



Stefan [MSFT]

2004-10-26, 7:46 am

Hi Justin,

I would write a ConsoleApplication in VB or C# to use the SiteDeployment API
rather than creating a vbs script.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"Justin" <justin_dbd@nospam.nospam> wrote in message
news:uhRQvnzuEHA.1992@TK2MSFTNGP10.phx.gbl...
> Hi Stefan,
>
> so how would you recommend getting the guid of a channel where the path is
> known for use in the CmsDeployExport.Export(string, long, string) method.
> The third param needs to be the guid of the channel I want to export. I

have
> a vbs script that does the export ok, but I was hoping to use something

like
> Searches.GetByPath and Channel.Guid to get the guid I need.
>
> I really hope I don't need an external process that passes the guid to the
> script via a command parameter!
>
> Thanks
>
>
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
> news:ef9ZzdzuEHA.940@TK2MSFTNGP14.phx.gbl...
> rights.
>

http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
>

http://www.gotdotnet.com/community/...t+S
erver

>
>



Justin

2004-10-26, 7:46 am

Hi Stefan,

So do I have to use interop? I couldn't find the required classes in any
managed namespace.

Thanks

"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:uTa4etzuEHA.2192@TK2MSFTNGP14.phx.gbl...
> Hi Justin,
>
> I would write a ConsoleApplication in VB or C# to use the SiteDeployment

API
> rather than creating a vbs script.
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no

rights.
>
> MCMS FAQ:
>

http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
> MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> MCMS Sample Code:
>

http://www.gotdotnet.com/community/...t+S
erver

> MCMS Whitepapers and other docs:
> http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
> --------------------------------
>
>
> "Justin" <justin_dbd@nospam.nospam> wrote in message
> news:uhRQvnzuEHA.1992@TK2MSFTNGP10.phx.gbl...
is[vbcol=seagreen]
method.[vbcol=seagreen]
> have
> like
the[vbcol=seagreen]
>

http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
>

http://www.gotdotnet.com/community/...t+S
erver

>
>



Stefan [MSFT]

2004-10-26, 7:46 am

Hi Justin,

yes you need to use interop.
The COM objects are available in the COM object tab of the reference dialog
using the following names:
- MCMS Site Deployment (Client-side)
- MSCMS Site Deployment (Server-side)

Sample code in C# can be found here:
http://www.gotdotnet.com/Community/...c5-1c4911aa1553

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"Justin" <justin_dbd@nospam.nospam> wrote in message
news:eP7vxxzuEHA.1520@TK2MSFTNGP11.phx.gbl...
> Hi Stefan,
>
> So do I have to use interop? I couldn't find the required classes in any
> managed namespace.
>
> Thanks
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
> news:uTa4etzuEHA.2192@TK2MSFTNGP14.phx.gbl...
> API
> rights.
>

http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
>

http://www.gotdotnet.com/community/...t+S
erver

path[vbcol=seagreen]
> is
> method.
I[vbcol=seagreen]
something[vbcol=seagreen]
> the
>

http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
>

http://www.gotdotnet.com/community/...t+S
erver

>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com