Author Posts

August 23, 2015 at 7:02 am

I'm a programmer. I have a Visual Studio Solution with 54 projects. Every time I recompile, new compile files are generated and go into the File History.

Is there a powershell script way to EXCLUDE folders from File History so that I don't have to do them in the File History dialog, one at a time for 100 times to get all the compile folders I DON'T want in the history.

August 23, 2015 at 7:34 am

Hi Mark,

The File History API is not available directly via a set of PowerShell cmdlets or a .Net Framework class.

https://msdn.microsoft.com/en-us/library/hh829807(v=vs.85).aspx

To make the File History API available to PowerShell you will need to create a wrapper class for the C++ methods.

Best,
Daniel