From 7563185bd426a5ef78cc187d33650b935891ac40 Mon Sep 17 00:00:00 2001 From: dfinke Date: Thu, 5 Jul 2018 19:46:59 -0400 Subject: [PATCH] updated to use the new way that works --- Examples/HyperLinks/Hyperlinks.ps1 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Examples/HyperLinks/Hyperlinks.ps1 b/Examples/HyperLinks/Hyperlinks.ps1 index 2356698..6e5c2be 100644 --- a/Examples/HyperLinks/Hyperlinks.ps1 +++ b/Examples/HyperLinks/Hyperlinks.ps1 @@ -1,7 +1,8 @@ -#$( -# New-PSItem 'Every Man a King' http://orisonswettmarden.wwwhubs.com/ccount/click.php?id=2 -# New-PSItem 'Be Good to Yourself' http://orisonswettmarden.wwwhubs.com/ccount/click.php?id=3 -# New-PSItem 'Character : The Grandest Thing in the World' http://orisonswettmarden.wwwhubs.com/ccount/click.php?id=4 -# New-PSItem 'The Conquest of Worry' http://orisonswettmarden.wwwhubs.com/ccount/click.php?id=5 -# New-PSItem 'Success Nuggets' http://orisonswettmarden.wwwhubs.com/ccount/click.php?id=6 -#) | Export-Excel hyperlinks.xlsx -Show -AutoSize \ No newline at end of file +try {. $PSScriptRoot\..\..\LoadPSD1.ps1} catch {} + +@" +site,link +google,http://www.google.com +stackoverflow,http://stackoverflow.com +microsoft,http://microsoft.com +"@ | ConvertFrom-Csv | Export-Excel