Tez
Graduate Poster
- Joined
- Nov 29, 2001
- Messages
- 1,104
I need to convert a whole bunch of postscript files to pdf.
I have the program ps2pdf14 that comes with ghostscript.
If I copy a ps file into the directory this program is in, then I can do the conversion from a dos prompt by typing
"ps2pdf14 FILENAME.ps". It makes a new file FILENAME.pdf in the same directory.
Despite the specific ghostscript directory being in my path, I cant do this from any other directory, but I dont care, I'm prepared to copy all the ps files into there and then copy them out again.
The problem is that the command won't accept something like "ps2pdf14 *.ps" or "ps2pdf A.ps" or similar, and I sure dont want to go through typing in several hundred filenames!
So how to I write a script to do that for me? I used to be able to do such things on unix when I was young, but I really cant work it out on windows.
(The reason I want this is that I'm trialling a program called dtsearch, which indexes all the scientific papers I have on the hard drive and makes it trivial to search them. Works brilliantly on the pdfs but won't work on ps yet...)
Thanks for the help.
I have the program ps2pdf14 that comes with ghostscript.
If I copy a ps file into the directory this program is in, then I can do the conversion from a dos prompt by typing
"ps2pdf14 FILENAME.ps". It makes a new file FILENAME.pdf in the same directory.
Despite the specific ghostscript directory being in my path, I cant do this from any other directory, but I dont care, I'm prepared to copy all the ps files into there and then copy them out again.
The problem is that the command won't accept something like "ps2pdf14 *.ps" or "ps2pdf A.ps" or similar, and I sure dont want to go through typing in several hundred filenames!
So how to I write a script to do that for me? I used to be able to do such things on unix when I was young, but I really cant work it out on windows.
(The reason I want this is that I'm trialling a program called dtsearch, which indexes all the scientific papers I have on the hard drive and makes it trivial to search them. Works brilliantly on the pdfs but won't work on ps yet...)
Thanks for the help.