Advertisement
Guest User

dsaddsaads

a guest
Jun 6th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.65 KB | None | 0 0
  1. 1:
  2. @echo off
  3. mkdir ..\%1
  4. copy *.txt ..\%1
  5. cd ../%1
  6. ren *.txt *.bat
  7. pause
  8.  
  9. 2:
  10. @echo off
  11. if not "%1" == "" goto 1
  12. :1
  13. if not "%2" == "" goto 2
  14. :2
  15. if exist %1 if exist %2 goto 3
  16. :3
  17. print "plik istnieje"
  18. copy %1 + %2 wynik.txt
  19. pause
  20.  
  21. 3:
  22. @echo off
  23. if "%~1" == "" (
  24.     goto brak
  25. ) else if "%~1" == "a" (
  26.     goto a
  27. ) else if "%~1" == "b" (
  28.     goto b
  29. ) else if "%~1" == "c" (
  30.     goto c
  31. ) else (
  32. goto elson
  33. )
  34. :brak
  35. echo Brak paramteru
  36. goto end
  37. :a
  38. dir
  39. goto end
  40. :b
  41. start http://www.zsl.gda.pl
  42. goto end
  43. :c
  44. echo %date:~-10,4%_%date:~-5,2%_%date:~-2%_%time:~,2%_%time:~3,2% >> 000.txt
  45. goto end
  46. :elson
  47. echo zly parametr
  48. goto end
  49. :end
  50. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement