Probeer PostCustomCommand te gebruiken en voer daar een batchbestand uit dat het .ignore-bestand aanmaakt.
PostCustomCommand