I tried to do so by using findstr on %cd% but couldn't find a way to do so without using a file to process. And the g:/ option seems to mean findstr runs interactively and cannot be piped into. So without using files is there a way?
|
| ||||
feedback
|
|
Assuming that you want to set a variable to contain the name of the parent of the current directory (in a
See If you just want to set a variable to the current directory:
| |||
|
feedback
|