Skip to content

Conversation

@heuricane
Copy link

$Destination is typoed near the end. The $user variable propogates with a DoD ID on my end so I set it with read-host, and not everyone has c:fso so initial directory being C:\ works better. set it at the top. It works great though, Thank you.

Set initial path as opening variable (not everyone haz c: \fso)
$userdomain was useless, removed it, so is $PSVersionTable
Username is just DoD ID on Air Force computers, so have to prompt for name, used Read-Host.
$destination was spelled toward the end,
I added a backslash to the save path and shortened it.
Works Beautifully!
Didn't like "exit" at the end, I run my scripts from ISE.
And Get-FileName function content had to be tabbed to the right.
And there was a space missing after an operator
And I'm just picky picky and I know
Copy link
Author

@heuricane heuricane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should also mention. PS script naming standards are pretty often kept the standard Verb-Noun.ps1 like Get-Help or "AutoFill-Comments.ps1. just a suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant