Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. @echo off
  2. del "D:pathinctf2.txt" /s /f /q
  3. set par1=%1
  4. set par2=%2
  5. set par3=%3
  6. set par4=%4
  7.  
  8. >>D:pathinctf2.txt echo lcd %par2%
  9. >>D:pathinctf2.txt echo cd %par1%
  10. >>D:pathinctf2.txt echo put %par3% %par4%
  11. >>D:pathinctf2.txt echo quit
  12.  
  13. C:
  14. cd C:Program FilesOpenSSH-Win64
  15.  
  16. sftp.exe -b D:pathinctf2.txt userName@IP >> D:path%par3%%para4%.log 2>&1
  17.  
  18. goto END
  19. :END
  20.  
  21. processBuilder.command("cmd", "/c", "transfer.bat",cdRemoteDir, localDir_For_fileName,
  22. fileName, remoteFileName );
  23.  
  24. Process process = processBuilder.start();
  25.  
  26. int exitVal = process.waitFor();
  27.  
  28. Runtime.getRuntime().exec(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement