You can't double click a powershell script to run it. if you want to double
click an icon then need to start powershell and pass the name of the script.
look at powershell /? for details
--
Richard Siddaway
All scripts are supplied "as is" and with no warranty
PowerShell MVP
Blog:
http://richardsiddaway.spaces.live.com/
PowerShell User Group:
http://www.get-psuguk.org.uk
"Shay Levy [MVP]" wrote:
Quote:
> Hi tke402,
>
>
>
> Try:
>
> $files = "\\server1\share\setup.exe","\\server2\share\setup.exe","\\server3\share\setup.exe"
>
> dir $files | format-list VersionInfo
>
>
>
>
> ---
> Shay Levy
> Windows PowerShell MVP
> http://blogs.microsoft.co.il/blogs/ScriptFanatic
>
>
>
> t> Hi,
> t>
> t> Here's my scenario:
> t>
> t> I need to retrieve file version information from three different
> t> servers. The file name is the same. For example
> t> \\server1\share\setup.exe; \\server2\share\setup.exe;
> t> \\server3\share\setup.exe.
> t>
> t> Currently I right click each file, select properties, and then
> t> version tab. I would like a script I can just double click and have
> t> the versions retrieved for me.
> t>
> t> Thanks
> t>
> t> TKE402
> t>
>
>
>