home *** CD-ROM | disk | FTP | other *** search
/ Wacky Windows Stuff... / WACKY.iso / toolbook / proutest.bat < prev    next >
DOS Batch File  |  1992-05-11  |  1KB  |  31 lines

  1. @echo off
  2. rem -- process test uploads request - for ProDOOR 3.4
  3. rem -- %1-logfile, %2-testdir, %3-comport
  4.  
  5. IF NOT EXIST Z:\E\play1\*.* exit
  6.  
  7. rem -- test each uploaded file individually
  8. p:\bin\proecho %3 ~~Testing uploads.  Please wait...~
  9.  
  10. rem test if single file.  DOS double processes %%f where only 1 file exists
  11. P:\BIN\ONLY1 Z:\E\play1
  12.  
  13. IF ERRORLEVEL == 1 GOTO JUST1
  14.   for %%f in (Z:\E\play1\*.*) do  call p:\prod\prout1 %1 %f 1 0
  15. GOTO MORETHAN1
  16.  
  17. :JUST1
  18.   rem %COMSPEC% /c P:\prod\PTEST %1 z:\e\play1\%only1% p:\prod\ptest.CFG
  19.   call p:\prod\prout1.bat %1 Z:\E\play1\%Only1%  1 0
  20.   SET ONLY1=
  21.  
  22. :MORETHAN1
  23.   IF EXIST Z:\E\play1\*.arj  cmntsome -hp:\bin\ziphdr -dZ:\E\play1
  24. rem    IF EXIST Z:\E\play1\*.VIR move Z:\E\play1\*.VIR Z:\E\hold
  25. rem    IF EXIST Z:\E\play1\*.OLD move Z:\E\play1\*.OLD Z:\E\hold
  26. rem    IF EXIST Z:\E\play1\*.BAD move Z:\E\play1\*.BAD Z:\E\hold
  27. rem    IF EXIST Z:\E\play1\*.DUP move Z:\E\play1\*.DUP Z:\E\hold
  28. rem    IF EXIST Z:\E\play1\*.PCK move Z:\E\play1\*.PCK Z:\E\hold
  29. rem    IF EXIST Z:\E\play1\*.DOS move Z:\E\play1\*.DOS Z:\E\hold
  30. :END
  31.