Thnx for your reaction.
I allready found a solution that works. I enabled the DELAYED EXPANSION and user ! instead of %. This should be a solution because the variables are created and used again in the for loop.
Search found 2 matches
- 29 Aug 2008 00:45
- Forum: DOS Batch Forum
- Topic: DOS: SET will not work, variable keeps its old value
- Replies: 2
- Views: 7421
- 01 Aug 2008 03:18
- Forum: DOS Batch Forum
- Topic: DOS: SET will not work, variable keeps its old value
- Replies: 2
- Views: 7421
DOS: SET will not work, variable keeps its old value
The script will be executed via command prompt on XP. The problem is the variable ORIG_FILENAME keeps its old value and won't be updated. The value should come out of a file which with be read using the FOR command. This is the code: echo START FINDSTR findstr /m "%%b" C:\Temp\gasdats\*.* ...