WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
'lpr' is not recognized as an internal or external (Read 8178 times)
leighgiles
YaBB Newbies
*
Offline



Posts: 2
'lpr' is not recognized as an internal or external
Nov 30th, 2012 at 2:26am
 
G'day,

I have Watchdiretory 4.6.7 Professional loaded on a virtual Windows 2008 server

I am using the run any batch file plugin to run a batch file to print files using the lpr command

When the batch file is run from a dos box it works ok, when it is run by watchdirectory

"'lpr' is not recognized as an internal or external command,operable program or batch file."

appears in the debug output. The PATH is the same in the dos box and the plugin

Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2232
The Netherlands
Re: 'lpr' is not recognized as an internal or exte
Reply #1 - Nov 30th, 2012 at 7:33am
 
mmm, strange.

Can you try to run the task as a normal program (NOT as a Windows service)? Does that help? In that case the lpr program is available on a "user basis" and you may need to set the user/pwd for the service. This is described here: http://blog-en.gdpsoftware.com/2010/04/watchdirectory-tasks-as-windows-service.h...
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Dirk
YaBB Administrator
*****
Offline



Posts: 659
South Germany
Re: 'lpr' is not recognized as an internal or exte
Reply #2 - Nov 30th, 2012 at 10:24am
 
in our test lab it runs fine with lpr and Windows Server 2008.
Make sure you have installed LPR (see  http://support.microsoft.com/kb/2406880) and you are using the following syntax for the bat file:
Code:
 \\printerserver\printername "%WD_FILE%" 


Back to top
 

Viele Grüße / Best regards
Dirk - GdP Software

dirk [at] gdpsoftware [dot] com
http://blog-de.gdpsoftware.com
Webseite: http://www.gdpsoftware.com
WWW WWW  
IP Logged
 
leighgiles
YaBB Newbies
*
Offline



Posts: 2
Re: 'lpr' is not recognized as an internal or exte
Reply #3 - Dec 5th, 2012 at 1:14am
 
The solution is to copy
lpr*.* from c\windows\system32 to c\windows\syswow64

see http://www.tomshardware.com/forum/240019-44-error-windows for more info
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2232
The Netherlands
Re: 'lpr' is not recognized as an internal or exte
Reply #4 - Dec 5th, 2012 at 9:14am
 
Thanks for letting us know. This is likely because wdrun.exe is a 32bit program.
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Dirk
YaBB Administrator
*****
Offline



Posts: 659
South Germany
Re: 'lpr' is not recognized as an internal or exte
Reply #5 - Dec 5th, 2012 at 10:46am
 
Well, thanks, I have it running well on x64 OS (client and server) without the need to copy something...
Back to top
 

Viele Grüße / Best regards
Dirk - GdP Software

dirk [at] gdpsoftware [dot] com
http://blog-de.gdpsoftware.com
Webseite: http://www.gdpsoftware.com
WWW WWW  
IP Logged
 
Page Index Toggle Pages: 1