@foxidrive - thank you! perfect! I know the "For" syntax but I couldn't manage to figure how to get the last part of the path...
Could you perhaps explain what does the %%~nxG mean?
Thanks again!
Search found 2 matches
- 22 Aug 2012 06:41
- Forum: DOS Batch Forum
- Topic: How can I get the current directory (no ancestors)?
- Replies: 4
- Views: 3019
- 22 Aug 2012 06:22
- Forum: DOS Batch Forum
- Topic: How can I get the current directory (no ancestors)?
- Replies: 4
- Views: 3019
How can I get the current directory (no ancestors)?
For example, If i'm in "C:\Temp\X\Y", I would like to get and store in variable the string "Y".
Thanks!
Thanks!