A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
17
Task/Generic-swap/Batch-File/generic-swap.bat
Normal file
17
Task/Generic-swap/Batch-File/generic-swap.bat
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
set a=1
|
||||
set b=woof
|
||||
echo %a%
|
||||
echo %b%
|
||||
call :swap a b
|
||||
echo %a%
|
||||
echo %b%
|
||||
goto :eof
|
||||
|
||||
:swap
|
||||
set temp1=!%1!
|
||||
set temp2=!%2!
|
||||
set %1=%temp2%
|
||||
set %2=%temp1%
|
||||
goto :eof
|
||||
Loading…
Add table
Add a link
Reference in a new issue