J
Jim Helfer
For a batch file, I need something like %CD% but only the part of the string
that is the current directory name, not the drive letter of path,
for example:
for %CD% = F:\CAD-Drawings\70004,
I want '7004.'
I guess either a utility/command that would do this directly, or a
suggestion on how I could parse the path myself is what I am looking for. I
started by just trying to right a DOS batch file on a windows 7 command
prompt, but I have 2003 servers with Powershell installed that I could use
if that would have to capabilities I am looking for.
Thanks for any suggestions.
Jim Helfer
WTW Architects
Pittsburgh PA
that is the current directory name, not the drive letter of path,
for example:
for %CD% = F:\CAD-Drawings\70004,
I want '7004.'
I guess either a utility/command that would do this directly, or a
suggestion on how I could parse the path myself is what I am looking for. I
started by just trying to right a DOS batch file on a windows 7 command
prompt, but I have 2003 servers with Powershell installed that I could use
if that would have to capabilities I am looking for.
Thanks for any suggestions.
Jim Helfer
WTW Architects
Pittsburgh PA