RE: Batch. The Ultimate Tutorial. 08-04-2011, 12:05 AM
#11
| Batch. The Ultimate Tutorial. filter_list | |
RE: Batch. The Ultimate Tutorial. 08-04-2011, 03:42 PM
#12
so what's this line means:
Code:
echo texttexttext>%%a
RE: Batch. The Ultimate Tutorial. 08-05-2011, 01:05 AM
#13
RE: Batch. The Ultimate Tutorial. 08-05-2011, 05:23 AM
#14
oh, so it's like "for each" in C#, am i right?
RE: Batch. The Ultimate Tutorial. 08-05-2011, 10:58 PM
#15
RE: Batch. The Ultimate Tutorial. 08-20-2011, 06:00 AM
#16
btw, how to increase a variable's value? i tried this but it doesn't work...
Code:
@echo off
set a=1
: go
echo this will printed on your screen for %a% times
a=a+1
goto go
pause
RE: Batch. The Ultimate Tutorial. 08-20-2011, 09:14 PM
#17
RE: Batch. The Ultimate Tutorial. 08-21-2011, 08:22 AM
#18
i guess it's just the same, i tried this code and not working too...
Code:
@echo off
set a=1
set b=1
:go
echo this will printed on your screen for %a% times
set a=%a%+%b%
goto go
pause
RE: Batch. The Ultimate Tutorial. 08-21-2011, 10:28 AM
#19
Code:
@echo off
:question
echo What's 1+1?
set /p input=
if '%input%' = '2' goto correct
if not '%input%' = '2' goto false
:correct
cls
echo Good job!
pause
:false
echo You are one dumbass.
echo Try again
echo.
goto questionIs there some bug in the code ... because it gives "-unexpected end of file" and closes instantly whatever the value of "input" maybe...
(08-21-2011, 08:22 AM)chipp Wrote: i guess it's just the same, i tried this code and not working too...
Code:@echo off set a=1 set b=1 :go echo this will printed on your screen for %a% times set a=%a%+%b% goto go pause
try this chipp :
Code:
@echo off
set a=1
set b=1
:go
echo this will printed on your screen for %a% times
set a=%a%+%b%
pause
goto gobut still it does not giv the value .. it extends as 1+1+1+1....
O.OO.O
RE: Batch. The Ultimate Tutorial. 08-22-2011, 02:40 PM
#20
btw, i tried to do something like this:
but it doesn't work, can anybody tell me how? it's the same with my effort to runas command
the result is nothing... -_-!
HELP...!
@zabra: it is treated as string so i guess the problem with the initialation, maybe it should convert to int when it is initialized.
Code:
@echo off
diskpart
select volume 4
remove letter m
list volumebut it doesn't work, can anybody tell me how? it's the same with my effort to runas command
Code:
runas /user:user_one program.exe
passwordthe result is nothing... -_-!
HELP...!
@zabra: it is treated as string so i guess the problem with the initialation, maybe it should convert to int when it is initialized.


![[Image: nNICR.jpg]](http://i.imgur.com/nNICR.jpg)
![[+]](https://sinister.li/images/modern/collapse_collapsed.png)


![[Image: php%252520wallpaper18.jpeg]](https://lh5.googleusercontent.com/-Cixw9qWahBk/Tpge5go2YfI/AAAAAAAAABY/UCjNe3RzZ8M/s640/php%252520wallpaper18.jpeg)