Search found 3 matches
- 01 Apr 2010 03:39
- Forum: DOS Batch Forum
- Topic: String operations "inside" a FOR command
- Replies: 4
- Views: 7835
Re: String operations "inside" a FOR command
Hi again, one more question related to this came up: If I need to access the variable inside the FOR loop with an IF command, is there a way to realize that without a procedure call? In other words: I can do "call set" or "call echo" inside the FOR loop, but I can't do "call...
- 11 Mar 2010 07:19
- Forum: DOS Batch Forum
- Topic: String operations "inside" a FOR command
- Replies: 4
- Views: 7835
Re: String operations "inside" a FOR command
Nice one, thanks, that even answered one more question (setting AND accessing global variables inside FOR)
- 10 Mar 2010 10:19
- Forum: DOS Batch Forum
- Topic: String operations "inside" a FOR command
- Replies: 4
- Views: 7835
String operations "inside" a FOR command
Hi guys, 1st post, quite thrilled if someone knows about this Normal string operation in a batch: I do "set x=abcdefg" then, "echo %x:~2,3%" would return "cde" A FOR command in a batch script uses variables like "%%a" "%%b" ... How can I use string o...