Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista Tutorial - Retrieve file version information

Reply
 
Old 07-30-2008   #1 (permalink)
tke402
Guest


 
 

Retrieve file version information

Hi,

Here's my scenario:

I need to retrieve file version information from three different servers.
The file name is the same. For example \\server1\share\setup.exe;
\\server2\share\setup.exe; \\server3\share\setup.exe.

Currently I right click each file, select properties, and then version tab.
I would like a script I can just double click and have the versions retrieved
for me.

Thanks

TKE402


My System SpecsSystem Spec
Old 07-30-2008   #2 (permalink)
Shay Levy [MVP]
Guest


 
 

Re: Retrieve file version information

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>


My System SpecsSystem Spec
Old 07-30-2008   #3 (permalink)
RichS [MVP]
Guest


 
 

Re: Retrieve file version information

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>
>
>
>
My System SpecsSystem Spec
Old 07-30-2008   #4 (permalink)
Shay Levy [MVP]
Guest


 
 

Re: Retrieve file version information

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>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Retrieve U3 Usb Information Drivers
get file version information PowerShell
File version information? Vista General
Version information in Explorer's File Details Tab Vista file management
File version information limited in Windows Explorer on Vista Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46