I have the following batch file :
c:\gs\gs8.13\bin\gswin32c -dBATCH -dNOPAUSE -sDEVICE=pnggray -r300 -sOutputFile=Z:\100R\preview\cl-tech-0010-01.pdf z:\100R\cl-tech-0010-01.pdf
I tried to put this batch into VBA with the Shell command. But I can't get it to work. It seems like the VBA doesn't pass all the switches to dos.
It looks like this.
Shell ("c:\gs\gs8.13\bin\gswin32c -dbatch -dnopause -sdevice=pnggray -r72 -soutputfile=c:\test.pdf Z:\100R\CL-TECH-0010-01.pdf")
I can use the Batch file, but it would be nice to put it all in VBA.....
Is there an easy way to accomplish this ?
c:\gs\gs8.13\bin\gswin32c -dBATCH -dNOPAUSE -sDEVICE=pnggray -r300 -sOutputFile=Z:\100R\preview\cl-tech-0010-01.pdf z:\100R\cl-tech-0010-01.pdf
I tried to put this batch into VBA with the Shell command. But I can't get it to work. It seems like the VBA doesn't pass all the switches to dos.
It looks like this.
Shell ("c:\gs\gs8.13\bin\gswin32c -dbatch -dnopause -sdevice=pnggray -r72 -soutputfile=c:\test.pdf Z:\100R\CL-TECH-0010-01.pdf")
I can use the Batch file, but it would be nice to put it all in VBA.....
Is there an easy way to accomplish this ?