I'm almost there....
I've used your script and it looks very good
BREAK ON CLS
? "Looking at files... Please Wait."
$FileName = Dir("%windir%\system32\*.exe")
While $FileName <> "" and @ERROR = 0
? $FileName
$CompanyName = GETFILEVERSION ($FileName,"CompanyName")
$FileVersion = GETFILEVERSION ($FileName,"FileVersion")
$FileDescription = GETFILEVERSION ($Filename,"FileDescription")
$ProductName = GETFILEVERSION ($Filename,"ProductName")
IF $CompanyName <> ""
;? $FileName
;? $CompanyName
;? $FileVersion
$result=setconsole('show')
$LogFile="e:\filelogw.TXT"
$LogData = $FileName + Chr(9) + $FileDescription + Chr(9) + $FileVersion + Chr(9) + $CompanyName+ Chr(9) + $ProductName + Chr(13) + Chr(10)
$result=0
$n=0
$result=Open(1, $LogFile, 5)
If $result<>0
$result=WriteLine(1, $LogData)
$result=Close(1)
Endif
$n=$n+1
ENDIF
$FileName = Dir("")
Loop
CLS
? "Thanks, we are now done."
Sleep 2
result:
ARP.EXE TCP/IP Arp Command 4.00 Microsoft Corporation Microsoft(R) Windows NT(TM) Operating System
ATSVC.EXE Net Schedule Service App 4.00 Microsoft Corporation Microsoft(R) Windows NT(TM) Operating System
AUTOCHK.EXE Auto Check Utility 4.00 Microsoft Corporation Microsoft(R) Windows NT(TM) Operating System
With this script i can find files in a directory but not in its subdirectories. If you want to find files in subdirectories you need to use Shell "%comspec% /c dir /s /b *.exe > $tmpfile" I've tried to read the textfile with a readline commando and a while loop but it will not work
AARGGh
I hope someone can help me with this last part...
Co 