Run DOS Commands through Coldfusion

I was wondering if its possible to run a DOS command using coldfusion
At the minute I have very large PDF’s which I cnt seem to find anything to reduce them thrugh coldfusion 8, so I downloaded Ghostscript which reduces the size of PDF’s so then I email them through coldfusion, but I was wondering can I have this running in the background so every PDF I have it will automatically ruduce it without the user having to do anything?

any tips woule be great

Ive been trying this but it doesnt seem to like it:


	<cfexecute name="C:\\Program Files\\gs\\gs8.71\\bin\\gswin32c"-sDEVICE=pdfwrite-dCompatibilityLevel=1.4-dPDFSETTINGS=/screen-dNOPAUSE-dQUIET-dBATCH-sOutputFile=\\\\FullFilePathHERE\	emppdf1\\#pdfname#.pdf \\\\FullFilePathHere\	emppdf\\#pdfname#.pdf 
        variable="data"
        timeout="10" />

ColdFusion will need permission to access that dir / file before it can execute it. Might be worth checking out the security logs to see what’s happening.

Some other answers here which might help -
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Cold_Fusion_Markup_Language/Q_23155094.html

Hi Clarkee 21

ended up I had no arguments in the above code, so when I put it in it worked fine

Thanks

Glad you found an answer to this. I had an issue running a spellchecker before but got it to eventually work with Aspell & FCKEditor.