Delete $NTUninstall files using a DOS command prompt.
Posted on 2010-09-09
I have developed a simple batch file generator using VisualStudio C#.NET that installs multiple Microsoft patch upgrades in a single .bat file. I'd like to add code to the .bat file that wil delete the associated $NTUninstallKB999999 files as well. When I view the directory where the $NTUninstall files are located using the CMD/DOS window, I do not see them, nor can I build a DOS statement that will delete them. Any suggestions? Is there a command string that I can write in C# that will tell Windows to delete these files?