You got some not existing macro's there Björn. @wrksta And it is in a string

Logging to an SQL DB is not that difficult. If you do a search on SQL (I only searched the UDF forum) you will get lots of hits.

If you want it to create a file for each system that has the file on it this would work.

Code:

Break on


$log = Exist ("\\server\share\" + @WKSTA + ".txt")
$file = Exist ("c:\somefile.ext")

If $file = 1 AND $log = 0
$rc = Open (1, "\\server\share\" + @WKSTA + ".txt" ,5)
$rc = Close (1)
EndIf

_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.