Occasionally there is the need to communicate with external applications from within Dise, for instance to interface with hardware or do file operations. This is accomplished by specifying a playback command and entering the path to the external application or script to be run before or after a certain event.
One use is to make a filelist of the newly downloaded files, for instance to be put in a data-connected list object or content pool. Copy the below script and save it as filelist.cmd. Replace the path to the downloaded folder as well as the filelist to be written. In Dise Probe's download location setting, enter the path to the script under Execute the following commands when the transfer has completed successfully.
@echo off setlocal set FILELIST=C:\filelist.txt set FOLDER=C:\files set INCLUDE=.*$ for /f %%R in ('dir /b/a-d "%FOLDER%" ^| findstr /i "%INCLUDE%"') do echo %FOLDER%\%%R >> "%FILELIST%.temp" copy /y "%FILELIST%.temp" "%FILELIST%" > NUL del "%FILELIST%.temp"