I need to write a batch script to find out the full path to any given file’s parent directory. Now, I’m completely new to batch scripts, so I need someone to lend me a hand with this 😛
There is a similar question here on SO, but it’s not what I’m looking for.
Any help is much appreciated!
From http://blogs.msdn.com/b/ben/archive/2007/03/09/path-manipulation-in-a-batch-file.aspx
If %I is your variable: