Nothing specific, but, the file name is in the %J variable. You might try to capture that and put in into your script. I have to explicitly use this trick to get the right file name to show up in the windows queue, like so: print command = /usr/bin/lpr -Pps -J'%J' %s; rm %s Joel