there are a number of methods to do this.

  • use a UDF like DIRPlus() the command would look somehting like this.

    Code:

    ;return a list of all PDF's from the C:
    $files = dirplus('c:\','/f pdf /s /a-d')
    $ = open(1,'pdf-log.txt',5)
    for each $item in $file
    $ = writeline(1,$file)
    next
    $ = close(1)



  • or just a simple shell command

    Code:

    shell '%comspec% /c dir /s /b /a-d c:\*.pdf > pdf-log.txt'





also ... how will you be wanting to run the script on all PC's? Via the login script? Or via an admin script that goes out and searches all of the PC's