Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Convert Visio 2000 vsd's to 2007

Reply
 
Old 07-15-2009   #1 (permalink)
voodooking


 
 

Convert Visio 2000 vsd's to 2007

I need to convert some 12,000 visio 2000 vsd's contained in some 15,000
folders into visio 2007 format. (overwrite original 2000 vsd's)
getting the files and piping into loop is no problem but i am unsure about
how to go about the actually conversion.
-

My System SpecsSystem Spec
Old 07-15-2009   #2 (permalink)
Marco Shaw [MVP]


 
 

Re: Convert Visio 2000 vsd's to 2007

Interesting...

Now, you may have an easier time doing this in VBScript/VBA than
PowerShell/COM.

I'll look around...

Marco

"voodooking" <voodooking@xxxxxx> wrote in message
news:97B7B893-2FA7-4B17-9A21-4BE46DC19791@xxxxxx
Quote:

> I need to convert some 12,000 visio 2000 vsd's contained in some 15,000
> folders into visio 2007 format. (overwrite original 2000 vsd's)
> getting the files and piping into loop is no problem but i am unsure about
> how to go about the actually conversion.
> -
My System SpecsSystem Spec
Old 07-15-2009   #3 (permalink)
Marco Shaw [MVP]


 
 

Re: Convert Visio 2000 vsd's to 2007

For example, with COM, this can open a Vision diagram:
PS>$visio=new-object -com vision.application
PS>$visio.documents.open("C:\my.vsd")

That's as far as I've gotten so far.

Marco

"Marco Shaw [MVP]" <marco.shaw@xxxxxx_SPAMgmail.com> wrote in message
news:#BJYO9XBKHA.5992@xxxxxx
Quote:

> Interesting...
>
> Now, you may have an easier time doing this in VBScript/VBA than
> PowerShell/COM.
>
> I'll look around...
>
> Marco
>
> "voodooking" <voodooking@xxxxxx> wrote in message
> news:97B7B893-2FA7-4B17-9A21-4BE46DC19791@xxxxxx
Quote:

>> I need to convert some 12,000 visio 2000 vsd's contained in some 15,000
>> folders into visio 2007 format. (overwrite original 2000 vsd's)
>> getting the files and piping into loop is no problem but i am unsure
>> about
>> how to go about the actually conversion.
>> -
>
My System SpecsSystem Spec
Old 07-15-2009   #4 (permalink)
voodooking


 
 

Re: Convert Visio 2000 vsd's to 2007

yeah thats about as far as i got
#####################################################
# convert visios to 2007
$AllFILES=(gci C:\CVS-Configs\configs | where {$_.Extenstion -eq ".vsd"})
foreach ($VSD in ($ALLFILES))
{
$vs=($VSD.fullname)
$visio=new-object -com visio.application
$visio.documents.open("$vs")

}
####################################################

"Marco Shaw [MVP]" wrote:
Quote:

> For example, with COM, this can open a Vision diagram:
> PS>$visio=new-object -com vision.application
> PS>$visio.documents.open("C:\my.vsd")
>
> That's as far as I've gotten so far.
>
> Marco
>
> "Marco Shaw [MVP]" <marco.shaw@xxxxxx_SPAMgmail.com> wrote in message
> news:#BJYO9XBKHA.5992@xxxxxx
Quote:

> > Interesting...
> >
> > Now, you may have an easier time doing this in VBScript/VBA than
> > PowerShell/COM.
> >
> > I'll look around...
> >
> > Marco
> >
> > "voodooking" <voodooking@xxxxxx> wrote in message
> > news:97B7B893-2FA7-4B17-9A21-4BE46DC19791@xxxxxx
Quote:

> >> I need to convert some 12,000 visio 2000 vsd's contained in some 15,000
> >> folders into visio 2007 format. (overwrite original 2000 vsd's)
> >> getting the files and piping into loop is no problem but i am unsure
> >> about
> >> how to go about the actually conversion.
> >> -
> >
>
My System SpecsSystem Spec
Old 07-15-2009   #5 (permalink)
Marco Shaw [MVP]


 
 

Re: Convert Visio 2000 vsd's to 2007

Is a 3rd party helper out of the question?

I just found this... I've not tried this yet, but might tomorrow:
http://visioautomation.codeplex.com/

Marco

"voodooking" <voodooking@xxxxxx> wrote in message
news:97B7B893-2FA7-4B17-9A21-4BE46DC19791@xxxxxx
Quote:

> I need to convert some 12,000 visio 2000 vsd's contained in some 15,000
> folders into visio 2007 format. (overwrite original 2000 vsd's)
> getting the files and piping into loop is no problem but i am unsure about
> how to go about the actually conversion.
> -
My System SpecsSystem Spec
Old 07-16-2009   #6 (permalink)
Marco Shaw [MVP]


 
 

Re: Convert Visio 2000 vsd's to 2007

http://www.c-sharpcorner.com/Forums/...ThreadID=60734

Try:
PS>$visio.activedocument.saveas($new_name)

"voodooking" <voodooking@xxxxxx> wrote in message
news:A10D4F1F-360D-435B-B81D-3B32E439DF37@xxxxxx
Quote:

> yeah thats about as far as i got
> #####################################################
> # convert visios to 2007
> $AllFILES=(gci C:\CVS-Configs\configs | where {$_.Extenstion -eq ".vsd"})
> foreach ($VSD in ($ALLFILES))
> {
> $vs=($VSD.fullname)
> $visio=new-object -com visio.application
> $visio.documents.open("$vs")
>
> }
> ####################################################

My System SpecsSystem Spec
Old 07-16-2009   #7 (permalink)
Flowering Weeds


 
 

Re: Convert Visio 2000 vsd's to 2007


Mmm automate tools and there really are
lots of Windows-based tools available,
for Windows PowerShell to automateI
Quote:

> Is a 3rd party helper out of the question?
>
It may be for some companies
but remember that is just what
PowerShell is - an automation
tool meant to move data from
tool to tool until one is done!
Quote:

> I need to convert some 12,000 visio 2000 vsd's
> contained in some 15,000 folders
Remember Log Parser (the data parser,
for regex, folders, files, AD and more),
will also help here!

"Log Parser" - Bing
http://www.bing.com/search?q=%22Log+Parser%22

And surely after all these years,
any PowerShell user can help
one automate Log Parser too!

As always enjoy the automation
of tools within the Windows-based,
..NET aware, WPF accessible,
admin's automation tool,
powershell.exe!


My System SpecsSystem Spec
Old 07-16-2009   #8 (permalink)
voodooking


 
 

Re: Convert Visio 2000 vsd's to 2007

yea i finally went with
..saveas("blahblahbla"+".vxd")
wanted to stick with .vsd's
but i can always do a second run and convert vxd's back to vsd's and
they'll be in 2007 format - not elegant but wrkz
: )

"Flowering Weeds" wrote:
Quote:

>
> Mmm automate tools and there really are
> lots of Windows-based tools available,
> for Windows PowerShell to automateI
>
Quote:

> > Is a 3rd party helper out of the question?
> >
>
> It may be for some companies
> but remember that is just what
> PowerShell is - an automation
> tool meant to move data from
> tool to tool until one is done!
>
Quote:

> > I need to convert some 12,000 visio 2000 vsd's
> > contained in some 15,000 folders
>
> Remember Log Parser (the data parser,
> for regex, folders, files, AD and more),
> will also help here!
>
> "Log Parser" - Bing
> http://www.bing.com/search?q=%22Log+Parser%22
>
> And surely after all these years,
> any PowerShell user can help
> one automate Log Parser too!
>
> As always enjoy the automation
> of tools within the Windows-based,
> ..NET aware, WPF accessible,
> admin's automation tool,
> powershell.exe!
>
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Jet Database Engine on Vista and Visio 2007 Vista General
Money 2000 data need to convert to 2001 or later .NET General
Can't get Office Visio 2007 to load on Vista Vista General
Q&A: With Microsoft Office Visio 2007, Every Picture Tells a Richer Story Vista News
Visio 2007 beta Vista installation & setup


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46