Avatar of Westez
Westez

asked on 

powershell or vbscript that lists filenames and versions in \windows\assembly folder?

I'm asking for a script that will list the filenames and versions including the build number for the files located in the \windows\assembly folder?

Detail: Windows 2003 Standard Server SP2 32bit.

I don't know much about scripting, and I'm in the middle of an upgrade gone bad.

I need a working script.  Sorry for asking to be spoon fed.

TIA
PowershellVB ScriptProgramming

Avatar of undefined
Last Comment
Westez
ASKER CERTIFIED SOLUTION
Avatar of el_aristo
el_aristo

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of soostibi
soostibi
Flag of Hungary image

This is a PowerShell version:
dir C:\Windows\assembly\ -Filter *.dll -Recurse | 
    Select-Object name, @{n="Version";e={$_.versioninfo.productversion}}

Open in new window

Avatar of Westez
Westez

ASKER

Guys let me ask for a modifiication.  I'd like to find a given file name. In this case ESRI*.dll.  I want to find all the files that start with ESRI.

El Aristo - I tried plugging in esri*.dll and ESRI*.dll in this line.  They use upper case for the filename, so ESRI is what's in folder.

>>If InStr(objFile.Name,"dll")> 0 Then

Thanks All
SOLUTION
Avatar of soostibi
soostibi
Flag of Hungary image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of el_aristo
el_aristo

for a dll like esri you can modify this line like this for upper and lower cases
If InStr(objFile.Name,"esri")> 0  Or InStr(objFile.Name,"ESRI")  Then

or make file name upper
If InStr(UCase(objFile.Name),"ESRI")> 0  Then


Avatar of Westez
Westez

ASKER

Guys many thanks both worked and were a big help in solving the problem.
Programming
Programming

Programming includes both the specifics of the language you’re using, like Visual Basic, .NET, Java and others, but also the best practices in user experience and interfaces and the management of projects, version control and development. Other programming topics are related to web and cloud development and system and hardware programming.

55K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo