header image

Archive for June, 2010

PowerShell in Practice pbook is today’s deal of the day at www.manning.com  – enter dotd0611cc in Pormotional Code box on check out

under: Books, PowerShellV2

Lets take our look a Visio a bit further and move objects around and change the text labels 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 034 035 036 037 […]

under: Office 2010, PowerShellV2

Last time we looked at creating a Visio drawing and adding a couple of objects.  This time we will build on that and resize the objects and add a connector. The Resize method on a shape is ONLY AVAIALBLE ON VISIO 2010 001 002 003 004 005 006 007 008 009 010 011 012 013 […]

under: Office 2010, PowerShellV2

PowerShell and Visio

Posted by: | June 9, 2010 | No Comment |

I’ve blogged about using PowerShell with various members of the Office family before. I thought its about time I looked at Visio.  I use Visio quite a bit and it would be useful to be able to drive it with PowerShell 001 002 003 004 005 006 007 008 009 010 011 012 013 014 […]

under: Office 2010, PowerShellV2

Suspended

Posted by: | June 8, 2010 | No Comment |

I won’t be posting here for a while – until the current issues are sorted out.   Please see http://msmvps.com/blogs/RichardSiddaway/Default.aspx for all your PowerShell posts.

under: Uncategorized

Upgrade?

Posted by: | June 8, 2010 | No Comment |

Live.com has been upgraded – biggest change seems to be to the SkyDrive and we now get the ability to use Web versions of Office. May or may not be useful. Big downside is that the statistics on the blog have been removed. Can’t see who is accessing or number of hits.  BAD MOVE – not happy […]

under: General

Ranged letters

Posted by: | June 7, 2010 | No Comment |

While I was playing around with the range operator I thought of this 001 002 003 004 005 $start = [byte][char]"a" $finish = [byte][char]"h" $start..$finish |  foreach {New-Item -Path c:\test -Name "file$([char]$_).txt" -ItemType File}   Define your start and finish letters. Convert each to a char and then a byte.  This gives us the numeric value of the letter (ascii code). We can then use those values […]

under: PowerShellV2

The range operator is used to generate a sequential set of numbers 1..10 | foreach {$_} if we try this with letters PS> a..j | foreach {$_} The term ‘a..j’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path […]

under: PowerShellV2

One of the events in this years scripting games involved creating a set of files.  Many of the entries did something like this 001 002 003 $files = @("file1.txt", "file2.txt", "file3.txt", "file4.txt", "file5.txt",  "file6.txt", "file7.txt", "file8.txt", "file9.txt", "file10.txt") foreach ($file in $files) {New-Item -Path c:\test -Name $file -ItemType File}   A list of files is created and a foreach is used to call New-Item.  A variant on this used a for loop for ($i=0; $i […]

under: PowerShellV2

Code in Posts

Posted by: | June 6, 2010 | No Comment |

I’ve been asked a couple of times recently how I put the colour highlighted code into the posts on my blog(s). I create the posts using Live Writer. The scripts are usually developed in PowerShell ISE.  I have a script I modified from http://www.leeholmes.com/blog/MorePowerShellSyntaxHighlighting.aspx that creates an add-on to copy the script from ISE to […]

under: PowerShellV2

« Newer Posts - Older Posts »

Categories