I am writing a bat file, and one of the commands need a project path and a file path relative to the project.
For example
awesomecommand.exe project=C:\MyProject file="myfiles\file1.fbx"
I am iterating through all files in C:\MyProject (where my .bat file is located):
for /R "%~dp0" %%f in (*.fbx) do (
    ....
)
and I need to get the %%f path relative to %dp0. So if %%f = C:\MyProject\myfiles\file1.fbx and %~dp0="C:\MyProject", I need the result to be "myfiles\file1.fbx".
How would I do this?
 
     
     
    