: SAMPLE2.BAT : An example of using DATENV.EXE for a : file download from a command file DATENV one if ERRORLEVEL 1 goto bad :note this is needed to :test for successful completion copy skeleton.fil comm.prg echo DOWNLOAD file%one% to c:\download\* >> comm.prg echo WAIT finished: >> comm.prg echo PUT logout >> comm.prg : this is where the comm program calls the command file commprog comm.prg DATENV one FILE c:\download\file%one% if %onef% == SAME goto end :bad echo this didn't work :END