Thanks for all the responses.
Instead of learning this "bit by bit", is there a good book or some detailed help files out there that explain DOS loops (and also variable expansion and/or allocation etc)?
Might speed up the process.
Thanks,
Albert
Search found 4 matches
- 22 Nov 2012 16:01
- Forum: DOS Batch Forum
- Topic: Getting extension of a file and forcing to uppercase
- Replies: 10
- Views: 8085
- 15 Nov 2012 08:35
- Forum: DOS Batch Forum
- Topic: Getting extension of a file and forcing to uppercase
- Replies: 10
- Views: 8085
Re: Getting extension of a file and forcing to uppercase
Great! Ok...can I ask some questions to confirm what I am seeing: 1) using opening and closing brackets "()" around code: looks like I can do multiple lines after an IF statement (fairly obvious but wanted to confirm and are there any caveats?) 2) "%0" seems to be a reference bac...
- 14 Nov 2012 12:23
- Forum: DOS Batch Forum
- Topic: Getting extension of a file and forcing to uppercase
- Replies: 10
- Views: 8085
Re: Getting extension of a file and forcing to uppercase
Okay...not "new" to batch programming but never got into the "deeper" stuff. So, would you mind "unpacking" some of the code below (or if you know of a good link to same, that would be great). Here are the questions I have: 1) what's the difference between a "regul...
- 14 Nov 2012 11:01
- Forum: DOS Batch Forum
- Topic: Getting extension of a file and forcing to uppercase
- Replies: 10
- Views: 8085
Getting extension of a file and forcing to uppercase
Hi all, Am trying to extract an extension from a file path-name. Found this function on another site that will successfully pull it from a passed in parameter e.g. if user drops the file C:\Temp\TestFile.txt onto my batch file and I run this code: SET Ext1=%~x1 I successfully get ".txt" st...