Alternative "Download" as a PowerShell verb?

I have a PowerShell Download-File function that uses WebClient.DownloadFile - hence the name.

When I try to turn my .ps1 script into a .psm1 module, PowerShell warns me that “Download” is not in the list of recommended verbs .

What is a good alternative? Get- like getting properties, not content (except Get-Content is weird). Receive- seems a little too passive to my liking (i.e. it blocks the script until the information is sent) - which does not work well.

Ideas?

+7
source share
3 answers

For me, "Get" is the most natural verb. He gets everything, not just properties. For a noun, I would use something like "WebFile", you can easily guess what you get and where it comes from.

+10
source

Does this work:

  Start-Download -Url http://blah/ 

Or use Invoke-Download , as recommended for synchronous operations. Start for asynchronous operations.

+3
source

What about New-Download or New-WebDownload or New-DownloadFile ??

0
source

All Articles