By itself, indent will end up zeroing the file if it's trying to read and write at the same time. At least, that's what I've seen when capturing indent's STDOUT instead of using an output file. But since I have it wrapped in a batch file, I now just send STDOUT to a temp file, then copy that file back over my working file. It works great - Thanks!
The only caveat is that the working file needs to be saved before running indent on it or all changes will be lost. But I added %Input% on my external app command line just to provide a chance to cancel in the event I forgot to save the file first. I don't suppose there's any way to specify the %Input% prompt to make it a bit more descriptive (really need just a MessageBox() instead)... ? Plus, my batch file makes a backup copy before doing anything. Thanks again. -- Len Philpot <>< <http://forum.pspad.com/read.php?2,51906,51920> PSPad freeware editor http://www.pspad.com
