how to get path froma 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
8:34 UTC
Read the original article
Hit count: 288
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 doesnt 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