Search found 1567 matches
- 17 May 2011 09:18
- Forum: DOS Batch Forum
- Topic: Processing all commandline parameters in a loop
- Replies: 14
- Views: 15029
Re: Processing all commandline parameters in a loop
I am posting the complete routine for my/your convinience but don't try to use it as is ! Look carefully at the :Call_LOOP0 (), this is where the magic happens. I used to have a routine that would process all exceptions without a glitch, but I had to abandon it because it was too much of a performan...
- 17 May 2011 06:51
- Forum: DOS Batch Forum
- Topic: toLower Name dependent?
- Replies: 16
- Views: 15492
Re: toLower Name dependent?
@WernerGg I learnt that the for command is case insensitive, you say it needlesly replaces lowercase characters, which is true yes but, if my theory is correct that for is case insensitive, it will also needlesly replaces highercase characters if they are in fact lowercase. so : set "LCaseStrin...
- 16 May 2011 13:59
- Forum: DOS Batch Forum
- Topic: toLower Name dependent?
- Replies: 16
- Views: 15492
Re: toLower Name dependent?
first of all sory for my english, I probably don't understand the problem very weel &am missing the point, probably, but if i want to do a ToLower conversion i use something like: @echo off &SetLocal EnableExtensions EnableDelayedExpansion set "LCaseString=a b c d e f g h i j k l m n o ...
- 16 May 2011 11:48
- Forum: DOS Batch Forum
- Topic: i need help with my batch
- Replies: 1
- Views: 3261
Re: i need help with my batch
Looks more like a virus than a game to me !
anyways, i simply don't understand what kind of help you are asking for.
besides that, there are errors in your script which are pretty obvious !
where are the ending quotes on msg "hello world !"
pasue &out.
anyways, i simply don't understand what kind of help you are asking for.
besides that, there are errors in your script which are pretty obvious !
where are the ending quotes on msg "hello world !"
pasue &out.
- 16 May 2011 10:53
- Forum: DOS Batch Forum
- Topic: [SOLVED] SET /a -- Random Number?
- Replies: 24
- Views: 35436
Re: [SOLVED] SET /a -- Random Number?
I did not know about the modulo which is quite handy, Thank U dbenham ::for /f "usebackq tokens=1-3 delims=¦" %%b in ( '"MinimumSTR"¦"MaximumSTR"¦"StoreVAR"' ) do %Get.RandomNumber.TokenSTR% %()% :: for %%? in ( Get.RandomNumber.TokenSTR ) do set "%%~?=se...
- 16 May 2011 08:55
- Forum: DOS Batch Forum
- Topic: [SOLVED] SET /a -- Random Number?
- Replies: 24
- Views: 35436
Re: SET /a -- Random Number?
' I am not good in english, what u mean by 'seem very noobish' ? sorry. @echo off &SetLocal EnableExtensions EnableDelayedExpansion ::I want a randomnumber, & i want to jump based on this number right ? ::create executable variable @Get.RandomNumber.TokenSTR for %%? in ( Get.RandomNumber.Tok...
- 16 May 2011 08:25
- Forum: DOS Batch Forum
- Topic: [SOLVED] SET /a -- Random Number?
- Replies: 24
- Views: 35436
Re: SET /a -- Random Number?
' [edit] probably too difficult, see dbenhams post below please ! ::for /f "usebackq tokens=1-3 delims=¦" %%b in ( '"MinimumSTR"¦"MaximumSTR"¦"StoreVAR"' ) do %Get.RandomNumber.TokenSTR% %()% :: for %%? in ( Get.RandomNumber.TokenSTR ) do set "%%~?=set /a...