opsi-winst / opsi-script: Getting elements of directory into stringList?

Antworten
mirkt
Beiträge: 95
Registriert: 05 Jun 2013, 09:39
Wohnort: Lithuania

opsi-winst / opsi-script: Getting elements of directory into stringList?

Beitrag von mirkt »

Hello,

Is there an elegant way of getting list of elements in directory into stringList? The method I am using now (which I do not really like):

Code: Alles auswählen

DefVar $GoogleChromeExtensionsDir$
DefStringList $InstalledExtensions$

Set $GoogleChromeExtensionsDir$ = "%CurrentProfileDir%\AppData\Local\Google\Chrome\User Data\Default\Extensions"

if FileExists($GoogleChromeExtensionsDir$)
  Set $InstalledExtensions$ = shellCall('dir /B "' + $GoogleChromeExtensionsDir$ + '"')
endif
Antworten