Test with a new map file? Perhaps there is something wrong with the map file. Also check that the file you are trying to compile or replace has proper read/write permissions and is not sitting in a protect system directory (e.g. C:\windows, C:\Program Files, etc.).
Batch file:
Open Notepad.
Type something like the following:
Ok, it writes the .bsp. The frontends do and the batchfile does as well. My Quake 3 directory is on a seperate drive, no restrictions. When I go to the maps folder I see that .bsp is written. However, when I start Quake 3 it can't load the .bsp because it's not found.
Plus I have to manually remove the .bsp file to be able to run another compile. Otherwise the same error comes back [Invalid argument].
Inf - Leaving in it's torturous wake nothing but vicious, cannabalistic, mutated, radiated and horribly disfigured hordes of satanic killers!
Glad you were able to fix the problem you were having. Hopefully in the future you wont have to do a complete re-install of stuff to get it to work right for you.