How to get path from a variable
Posted
by yoshco
on Stack Overflow
See other posts from Stack Overflow
or by yoshco
Published on 2010-06-03T08:25:37Z
Indexed on
2010/06/03
14:04 UTC
Read the original article
Hit count: 239
Following http://stackoverflow.com/questions/659647/how-to-get-folder-path-from-file-path-with-cmd
I want to strip the path (without the filename) from a variable. following the logic of the methods discussed above I would like to use batch bellow, which doesn't work. any takers? possible?
set cpp="C:\temp\lib.dll"
echo %cpp%
"C:\temp\lib.dll"
echo %~dpcpp
"C:\temp\" > doesn't work
© Stack Overflow or respective owner