PS files in %TEMP%\BullZip\PDF Printer

General usage of the PDF Printer.

Moderator: jr

tugo0ew02
Posts: 15
Joined: Sat Jan 26, 2008 12:39 pm

PS files in %TEMP%\BullZip\PDF Printer

Post by tugo0ew02 »

PDF Printer v4.0.0.463

Hello,

When print to BullZip PDF Printer she creates files port.log and
<session-id>_printer.ps in directory %TEMP%\BullZip\PDF Printer.
Also some temporary files in directory %TMP%\Bullzip\PDF Printer.
The files in %TMP% self delete when the print job is complete,
but files in %TEMP% remain.

%TMP% != %TEMP% on localhost

Some setting to correct this condition?

Thank you.
jr
Site Admin
Posts: 500
Joined: Sun Mar 26, 2006 12:28 pm

Post by jr »

Hi,

What are the names of the files in the %TEMP% folder that remains?

What are the values of %TEMP% and %TMP% on your system?

Regards,
Jacob
tugo0ew02
Posts: 15
Joined: Sat Jan 26, 2008 12:39 pm

Post by tugo0ew02 »

Hello,

They of the file name syntax <session-id>_printer.ps, PostScript files.
eg.
3dc0c204-8d10-40d0-839d-e813342fba2e_printer.ps

$ echo %tmp% %temp%
T:\Tmp T:\Temp

Both User and System Environment Variables are the same value.
eg.
User %TEMP% = System %TEMP% = T:\Temp

If User is assigned different %TEMP% and %TMP% Environment Variables for those of System
I observe that gui.exe wants to use the System %TMP% for file named "_printer.log"
and the User %TEMP% for file named "port.log"

I make an inelegant solution of:
runonsuccess=del %temp%\bullzip\pdfpri~1\*.ps

Leaving file port.log as it is overwritten on each execution.
However the .PS files are large and accumulate; so they have need for removal.


I see Spooler SubSystem App (spoolsv.exe) wants a LogFolder value:

spoolsv.exe RegQueryValue HKLM\SOFTWARE\Bullzip\PDF Printer\Settings\LogFolder NOT FOUND

If I give her one:

[HKEY_LOCAL_MACHINE\SOFTWARE\Bullzip\PDF Printer\Settings]
"LogFolder"="T:\\Tmp\\Bullzip\\PDF Printer\\"

then she will write file name "port.log" to that directory.

I see that gui.exe does a GetTempPathA but not were she wants %TMP% variable.

spoolsv.exe WriteFile T:\Temp\BullZip\PDF Printer\<session-id>_printer.ps
spoolsv.exe FlushBuffersFile T:\Temp\BullZip\PDF Printer\<session-id>_printer.ps
spoolsv.exe CloseFile T:\Temp\BullZip\PDF Printer\<session-id>_printer.ps

gui.exe ReadFile T:\Temp\BullZip\PDF Printer\<session-id>_printer.ps
gui.exe WriteFile T:\Tmp\Bullzip\PDF Printer\<session-id>_patched.ps
gui.exe ReadFile T:\Temp\BullZip\PDF Printer\<session-id>_printer.ps
gui.exe WriteFile T:\Tmp\Bullzip\PDF Printer\<session-id>_patched.ps

Perhaps problem is cause by NT5.x default of using the same directories for both System and User %TEMP% and %TMP%

User %TEMP% and %TMP% = %HOMEDRIVE%%HOMEPATH%\Local Settings\Temp
System %TEMP% and %TMP% = %WINDIR%\Temp (I think)

Anyway it appears somewhere this printer system is using both %TMP% and %TEMP% variables.

Thanks
Post Reply