Click to See Complete Forum and Search --> : Script which deletes Release, Debug, & .ncb


greekgoddj
August 31st, 2005, 09:48 AM
Hello,

I often wich to transfer my projects to other drives, networks, USB sticks, etc...and the contents of the Release and Debug directories in the project directory can take quite a bit of space. I end up manually deleting all those directories, as well as the .ncd file which can be regenerated everytime VS is loaded.

I was wondering whether anybody knows of a script/program that does that already. I have been thinking of writing one, but I am short on time and was hoping not to reinvent the wheel if somebody already knows of such a tool. Perhaps somebody has made one?

If this is a future little project, I would like to make it possible to call this "clean" routine from the pop up menu that appears when right clicking on the project directory.


Ciao,

Aristotel
:wave:

MrViggy
August 31st, 2005, 11:07 AM
Well, this batch file should delete all the files (it leaves the sub folders though):
@echo off
REM Pass in the 'base path' to the project:
REM cleanmybuild c:\projs\myproj
del /f /s /q %1\Debug
del /f /s /q %1\Release
This is not tested, but it should be enough to get you going.

Viggy