Computing.Net > Forums > Programming > Multi-step batch file help please

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Multi-step batch file help please

Reply to Message Icon

Name: helpmeout
Date: February 4, 2009 at 11:06:40 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

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?



Sponsored Link
Ads by Google

Response Number 1
Name: Holla
Date: February 5, 2009 at 01:00:01 Pacific
Reply:

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 "YourInputFile.ps"

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.

--
Holla.


0
Reply to Message Icon

Related Posts

See More


make prog start on boot -... Making a Keyogger with *....



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Multi-step batch file help please

batch file help www.computing.net/answers/programming/batch-file-help/19203.html

Batch file help www.computing.net/answers/programming/batch-file-help/12162.html

Batch File Help www.computing.net/answers/programming/batch-file-help/8990.html