Ive been cracking my head the past few hours trying to figure out how to pull only the folder name from a path passed on by a varible.
%1 = C:/documents/spreadsheetNAME/filename.ext
I need only "spreadsheetNAME/filename.ext"
I can pull the filename and extension with %~nx1
But I can figure out how to pull the foldername
Thanks
JPRock