i have a largish C++ project, with source-files organised in multiple folders (on the filesystem).
in two of these folders, i have files with the same name. e.g.
Use
$(IntDir)%(Directory)
as "Object File Path".
%(Directory) contains the absolute path of the file without the volume and without the filename itself. This solution should work at least in VS 2019 and can be applied to a project directly.
%(Directory)