Search found 2 matches

by hesher
22 Aug 2012 06:41
Forum: DOS Batch Forum
Topic: How can I get the current directory (no ancestors)?
Replies: 4
Views: 3019

Re: How can I get the current directory (no ancestors)?

@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!
by hesher
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!