Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1:
- @echo off
- mkdir ..\%1
- copy *.txt ..\%1
- cd ../%1
- ren *.txt *.bat
- pause
- 2:
- @echo off
- if not "%1" == "" goto 1
- :1
- if not "%2" == "" goto 2
- :2
- if exist %1 if exist %2 goto 3
- :3
- print "plik istnieje"
- copy %1 + %2 wynik.txt
- pause
- 3:
- @echo off
- if "%~1" == "" (
- goto brak
- ) else if "%~1" == "a" (
- goto a
- ) else if "%~1" == "b" (
- goto b
- ) else if "%~1" == "c" (
- goto c
- ) else (
- goto elson
- )
- :brak
- echo Brak paramteru
- goto end
- :a
- dir
- goto end
- :b
- start http://www.zsl.gda.pl
- goto end
- :c
- echo %date:~-10,4%_%date:~-5,2%_%date:~-2%_%time:~,2%_%time:~3,2% >> 000.txt
- goto end
- :elson
- echo zly parametr
- goto end
- :end
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement