Code: Select all
C:\Users\Username\Company\SharePoint repository\sub-folder\2021 MCF Output
So, is it possible to make the Username section of the Destination path a variable? Or is there a smarter way of handling this?
Code: Select all
C:\Users\Username\Company\SharePoint repository\sub-folder\2021 MCF Output
Code: Select all
subst S: "C:\Users\YourUsername\Company\SharePoint repository\"
I've not tried it as a pre-build event, as I need the drive mapping to run imports (which aren't at build time).richt wrote:That's a really interesting approach! My specific use case might end up running out of drive letters in the long run, but it's definitely a practical workaround.
How much of that could potentially by set up by a pre-build event? I wonder if you could run the batch to assign the drive at build time rather than on Windows startup.