/dd Delete File After Processing Not Working フォローする

0
Avatar
Legacy Poster

Hello,

 

In the past I have used Commander along with trigger files to print whenever a file was copied to a special file location.

 

%BTW% /AF="path\xxx.btw" /PRN="PDF995" /R=3 /P /C=1 /D="%Trigger File Name%" /DD /Close

%END%

data; data1

 

And this has worked just fine. "/DD" would delete the file after processing.

 

Now I have made a new trigger file using the same arguments, but the /DD argument seems to be ignore, the file is printed but not deleted after processing.

 

Could this be related to the label design ? its the only difference I can think of.

 

I also tried to add another command to manually delete the file by adding an "Operating system" command to the task (del %Trigger File Name%), but that does not work either since

I use UNC paths.

 

I am using V10.1 SR2.

 

Any ideas ?

 

 

 

4 コメント

0
Avatar
Shotaro Ito
コメントアクション Permalink

The account to run Commander service may not have delete rights to the folder.

Run Commander as application mode (from Administer > Service Setup),

Or in service mode, change Commander Service's logon account (try your login account etc.

 

Or do you show Data entry form or print dialog at the print? In that case /DD option may not work.

(%del command should work though)

0
Avatar
Legacy Poster
コメントアクション Permalink

Hello Shotaro,

 

Thanks for your reply.

 

It is not a security problem, since other tasks run just fine in the same folder (I have tried running both as a service/application).

I dont have any dialogs in the btw file.

 

I just found that when the Trigger file prints to a physical printer, the file is deleted afterwards.

In the failing case I am printing to a PDF printer (PDF995), PDF995 is setup to auto save the output to a fixed path. The PDF is generated but the Trigger file is not deleted afterwards ?

 

I haven't been able to find any documentation on %del, how would you use that ?

 

Best regards

 

Brian

0
Avatar
Shotaro Ito
コメントアクション Permalink

Hmm.. might be something related to the PDF printer driver. Would that be same if you use other printer such as XPS or Bullzip PDF etc.

 

About %del, I mean DOS(command prompt) DEL command, ex DEL "%Trigger File Name%".

However if the file was locked by BarTender, the deletion would fail.

 

If possible, try BarTender 2016's Integration.

0
Avatar
Legacy Poster
コメントアクション Permalink

I haven't tried other PDF printers, but I tried the new Integration builder and it seems to work just fine.

We will implement the new version shortly.

 

Thanks for your help Shotaro :)

サインインしてコメントを残してください。