[isapros] Re: Programmatically exporting computer sets

  • From: Jim Harrison <Jim@xxxxxxxxxxxx>
  • To: "isapros@xxxxxxxxxxxxx" <isapros@xxxxxxxxxxxxx>
  • Date: Fri, 11 Jan 2008 16:38:04 -0800

De nada - I try...

-----Original Message-----
From: isapros-bounce@xxxxxxxxxxxxx [mailto:isapros-bounce@xxxxxxxxxxxxx] On 
Behalf Of Thor (Hammer of God)
Sent: Friday, January 11, 2008 3:19 PM
To: isapros@xxxxxxxxxxxxx
Subject: [isapros] Re: Programmatically exporting computer sets

[bows]

Thank you.  Seems the "Set ComputerSet = ComputerSets.Item" is totally
unnecessary. All exported.

Thanks.

t

> -----Original Message-----
> From: isapros-bounce@xxxxxxxxxxxxx [mailto:isapros-
> bounce@xxxxxxxxxxxxx] On Behalf Of Jim Harrison
> Sent: Friday, January 11, 2008 2:29 PM
> To: isapros@xxxxxxxxxxxxx
> Subject: [isapros] Re: Programmatically exporting computer sets
>
> You get no errors at all?
> Have you set "on error resume next" in any place in the script before
> calling this loop?
> If so, it could be hiding any error you might be getting.
>
>
> "OptionalData" is actually a required value and indicates which of
> several "optional data contexts" you wish to export.
> http://msdn2.microsoft.com/en-us/library/aa491719.aspx describes the
> innards of this method and http://msdn2.microsoft.com/en-
> us/library/ms812627.aspx provides an example.
>
> -----Original Message-----
> From: isapros-bounce@xxxxxxxxxxxxx [mailto:isapros-
> bounce@xxxxxxxxxxxxx] On Behalf Of Thor (Hammer of God)
> Sent: Friday, January 11, 2008 12:34 PM
> To: isapros@xxxxxxxxxxxxx
> Subject: [isapros] Programmatically exporting computer sets
>
> Greetings ISA Professionals:
>
>
>
> I've got many, many computer sets that I want to export.  I can export
> them into one XML file and manually break them out, but that sucks.
> And I don't want to go through and export each one individually as
> there are hundreds of them.
>
>
>
> I've tried many things similar to:
>
>
>
> For Each ComputerSet In ComputerSets
>
>      Set ComputerSet = ComputerSets.Item
>
>      sFilename = ComputerSet.Name + ".xml"
>
>      Log.Text = Log.Text + "Exporting " + sFilename + "..."
>
>      ComputerSet.ExportToFile "C:\temp\" + sFilename, 0
>
>     Next
>
>
>
> But nothing works.  No errors, just nothing happens.   Any insight?
> Bueller?  Anyone? Bueller?
>
>
>
> t
>
>
>




Other related posts: