Seems a bit overly large, I just use this in NppExec and it will compile from everywhere and anywhere too, placing the
.smx next to the
.sp. I just hit Ctrl+Shift+C and done. Bind to whatever you want from the Plugin Commands section in Shortcut Mapper.
Code:
D:\Link\To\Your\spcomp.exe -D"$(CURRENT_DIRECTORY)" "$(FILE_NAME)"
__________________