Quote:
> I would like a script I can just double click ...
Right! I didn't read the last line carefully.
Quote:
> You can't double click a powershell script to run it
Definitely not recommended (for security and other reasons) but still doable.
---
Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic
R> You can't double click a powershell script to run it. if you want to
R> double click an icon then need to start powershell and pass the name
R> of the script. look at powershell /? for details
R>
R> "Shay Levy [MVP]" wrote:
R>
Quote:
Quote:
>> Hi tke402,
>>
>> Try:
>>
>> $files =
>> "\\server1\share\setup.exe","\\server2\share\setup.exe","\\server3\sh
>> are\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>