This was already posted by some in the sourcemod highlighting threads, as well as other shortcuts (binding to keyboard, etc.). I've personally adapted the script to the following:
Code:
NPP_SAVE
cd "$(CURRENT_DIRECTORY)"
cmd /q /c del /q "$(CURRENT_DIRECTORY)\$(NAME_PART).smx"
cmd /q /c del /q "$(CURRENT_DIRECTORY)\compiled\$(NAME_PART).smx"
spcomp.exe $(FILE_NAME)
cmd /q /c copy "$(CURRENT_DIRECTORY)\$(NAME_PART).smx" "$(CURRENT_DIRECTORY)\compiled\$(NAME_PART).smx"
Ensures all old versions are gone (no more "already compiled" message), then copies it from the main directory to the compiled folder as well. Makes life easy. Hope this helps ya.
__________________