Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.72 KB | None | 0 0
  1. @ECHO off
  2. TITLE отправка файлов в ВБРР
  3.  
  4. CLS
  5.  
  6. SET CurDate=%DATE%
  7.  
  8. SET DownloadPath="C:\Users\Admin\Downloads"
  9. SET VBRRpatch="C:\Users\Admin\Downloads\VBRR"
  10.  
  11. SET TimeOutSet=5
  12.  
  13. tasklist | find "firefox"
  14. if errorlevel 1 goto NoRecord
  15.     ECHO Процесс Firefox обнаружен!
  16.     tskill *firefox* /a /v
  17.     tskill *plugin-container* /a /v
  18.     TIMEOUT %TimeOutSet%
  19.     goto Done
  20. :NoRecord
  21.     ECHO Процессы Firefox не обнаружены!
  22.     TIMEOUT %TimeOutSet% >nul
  23. :Done
  24.  
  25.  
  26. IF EXIST %VBRRpatch%\%CurDate%\roi_73000_%CurDate%.xml (
  27.     TIMEOUT %TimeOutSet%
  28.     cd "C:\Users\Admin\Firefox_51_upload"
  29.     start FirefoxPortable.exe imacros://run/?m=vbrr.iim
  30.     exit 0
  31. ) ELSE (
  32.     exit 1
  33. )
  34.  
  35.  
  36. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement