Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2314

suche in text und gib dann die nächsten zeichen aus

$
0
0

hallo,

ich möchte aus einer datei einen text auslesen, der nach dem gesuchten text steht.

ich will "MUIProductVersion" finden und dann die nächsten zeichen bis "BrandNameAdobe" ausgeben lassen.

wie mache ich das?

Im Moment sieht es so aus:

$MSPVER=gci "D:\MUI\AdbeRdrSecUpd11002.msp"$MSPVER |Select-String "acrord32*" | Out-File $textdatei $reinput=Get-Content $textdatei| Select-String "MUIProductVersion*"PS C:\Users\xx> $reinput ♦ ♂ ☺ ♀ ☺ § ☺                 
ProductNameAdobe Reader XI (11.0.02)  
MUIProductVersion11.0.02BrandNameAdobe Reader XI 
(11.0.02)nppdf32.dll_Apollo11.0.2.0nppdf32.dllAcroRd32.exeAcroForm.api__N


Viewing all articles
Browse latest Browse all 2314


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>