mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Added try/catch. Expanded aliases
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
param ($fibonacciDigits=10)
|
||||
|
||||
try {. $PSScriptRoot\..\..\LoadPSD1.ps1} catch {}
|
||||
|
||||
$file = "fib.xlsx"
|
||||
rm "fib.xlsx" -ErrorAction Ignore
|
||||
Remove-Item "fib.xlsx" -ErrorAction Ignore
|
||||
|
||||
$(
|
||||
New-PSItem 0
|
||||
New-PSItem 1
|
||||
|
||||
|
||||
(
|
||||
2..$fibonacciDigits |
|
||||
ForEach {
|
||||
ForEach-Object {
|
||||
New-PSItem ('=a{0}+a{1}' -f ($_+1),$_)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user