>*- File Ref: Test_Find_Pdf.Prg && Tested under NT4 WorkStation. >CD C:\ >RUN /N2 cmd /c dir pdfmon.dll /s > c:\temp\results.txt >CLEAR >IF NOT FILE( "c:\temp\results.txt" ) > ? "Unable to search local disk for Acrobat Writer." > RETURN .F. >ENDIF > >cResults = FILETOSTR( "c:\temp\results.txt" ) >IF LEN( cResults ) > 100 AND "PDFMON.DLL" $ UPPER( cResults ) > ? "PDFMON.DLL is present." > iPositionOfpath = ATC( "Directory of ", cResults ) ; > + LEN( "Directory of " ) > cPath = SUBSTR( cResults, iPositionOfpath ) > iCharsToExtract = AT( CHR(13), cPath ) > cPath = LEFT( cPath, iCharsToExtract ) > ? "Path = " + cPath >ELSE > ? "PDFMON.DLL is NOT present." >ENDIF >RETURN .T. >>