views:

18

answers:

1

hello

i have a variable like this:

set file=c:\dir\foo\bar\file.txt

how can i get just the path-part into another variable?

echo %pathpart%

should give c:\dir\foo\bar\

thanks!