in cmd retrun in trow val and =

December 9, 2010 at 07:52:20
Specs: Windows XP
I know this is two fold
I forgot how to return data in cmd functions

1 return data trow %varible% return throw %%A or %A or %1 ex call swap %a% %b%

2 return as the functurn the ex(I know this is not right) set _fd= call add %a% %b%


See More: in cmd retrun in trow val and =

Report •

#1
December 10, 2010 at 03:09:09
Can you be more clearly please?

Happy is ONE who says I am an OttoMAN.


Report •

#2
December 10, 2010 at 06:52:35
set a=aa
set b=bb
echo %a% %b% "aa bb"
call __swap.cmd %a% %b%
echo %a% %b% "bb aa"

__swap.cmd

set a=%2
set %2=%1
set %1=a



Report •

#3
December 10, 2010 at 08:51:11
A little variable trickery?


set a=aa
set b=bb
echo %a% %b% "aa bb"
(
    set a=%b%
    set b=%a%
)

echo %a% %b% "bb aa"
pause


Report •
Related Solutions


Ask Question