Multi-step batch file help please

helpmeout February 4, 2009 at 11:06:40
Specs: Windows XP
I'm trying to figure something out but have little (read: no) programming experience. I have a batch file pulling postscript files from an FTP site to a local folder. Now what I would like to happen is the files get converted from .ps to .pdf (manually use GSview for this now) and then copies the .pdf files to a specific network folder.

How would I do this?

See More: Multi-step batch file help please

Report •

February 5, 2009 at 01:00:01
I dont have gsview, so I cant try it out.
I guess you can search for gswin32.exe and
on console(cmd.exe prompt) go to that directory and type "gswin32 /?" or "gswin32 -h"
and figure out how to use command line conversion tool to convert ps to pdf.

Then you should be able to insert appropriate command for conversion into your existing batch file.
You should be using something like
gswin32.exe -dSAFER -dCompatibilityLevel=1.2 -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite "-sOutputFile=YourOutfile.pdf -c .setpdfwrite -f ""

You can not interact with a graphical windows application from batch file.
In this case, I guess gsview uses a command line program to convert internally, so you could use just that.


Report •
Related Solutions

Ask Question