Is there a way in a Windows batch script to return an absolute path from a value containing a filename and/or relative path?
Given:
Files See all other answers
Directories
With .. being your relative path, and assuming you are currently in D:\Projects\EditorProject:
..
D:\Projects\EditorProject
cd .. & cd & cd EditorProject (the relative path)
cd .. & cd & cd EditorProject
returns absolute path e.g.
D:\Projects