Subj : Re: how "ps2pdf *.ps *.pdf"? To : J.G. Zhou From : Jasen Betts Date : Tue Nov 27 2001 10:24 pm JZ> for %%f in (*.ps) do ps2pdf %%f %%f.pdf JZ> works except for one little problem, i.e. because the command JZ> ps2pdf convert a PS file without replacing the extension .ps with JZ> .pdf by default, as a result, after running the batch file, I got JZ> all the pdf file as "foo.ps.pdf" instead of "foo.pdf" which is JZ> preferred. Could you have any idea how to modify the batch file JZ> for this md temp_dir for %%f in (*.ps) do ps2pdf %%f temp_dir\%%f cd temp_dir ren *.ps *.pdf cd .. move temp_dir\*.* . rd temp_dir -=> Bye <=- --- * Origin: Every time I think I know where it's at, the move it. (3:640/531.42) .