Thanks Russell, That might be true. In my opinion you will either have the .ASM or the .s at the end (as MOVE is atomic). We may also be able to use REN instead if we are sure that the target file does not exist - that makes sure that the file is not even will be copied in any circumstances (aka the content will not be intact) but it's name will be changed. Anyway, COPY command is just as fine, you can even leave the .ASM there if you want - I did not intend to make a foolproof script, it's just an idea how to get over on the lack of preprocessor issue in ASM30. BTW: As far as I know in MPLAB 8.x you can give an external command before the compilation? So you might not even need this scripting? Tamas On Thu, Apr 10, 2008 at 1:39 PM, Apptech wrote: > > @REM make a copy of the original source with the extention > > .ASM > > MOVE %3 %~n3.ASM > > That seems to risk having your original file vanish mid > stream if things crash or are interrupted for any reason. > It's there but you have to rename it. > Why not use a copy instead with delete at the end if > desired? > > > Russell > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- Rudonix DoubleSaver Did You Know that DoubleSaver is Smaller and More Powerful FailSafe Device than Any Other You can Get? http://www.rudonix.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist