Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Run a script when a print job comes in
New Posts  All Forums:Forum Nav:

Run a script when a print job comes in

post #1 of 4
Thread Starter 
Hello,

At home, I have a Server 2008 machine with a shared printer, but I have a problem.

When a print job comes in, I want to run a batch file I made myself.
I'm looking for this for 3 weeks now, but I didn't find anything that works on server 2k8...

Any ideas?

Gr,
Knutselman
    
CPUMotherboardGraphicsRAM
Intel Core 2 Duo E4700 @ 3.61 gHz Asus P5Q Radeon HD5770 OCZ Gold Edition (2x 2GB) 
Hard DriveOptical DriveOSMonitor
Kingston SSD 64GB + WD (2x 360GB (RAID0)) DVD-Writer Windows 7 Ultimate (64-bit) Samsung Syncmaster 953BW 
KeyboardPowerCaseMouse
Logitech diNovo OCZ (600w) Cooler Master Mystique Logitech MX 1000 
Mouse Pad
/// 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Intel Core 2 Duo E4700 @ 3.61 gHz Asus P5Q Radeon HD5770 OCZ Gold Edition (2x 2GB) 
Hard DriveOptical DriveOSMonitor
Kingston SSD 64GB + WD (2x 360GB (RAID0)) DVD-Writer Windows 7 Ultimate (64-bit) Samsung Syncmaster 953BW 
KeyboardPowerCaseMouse
Logitech diNovo OCZ (600w) Cooler Master Mystique Logitech MX 1000 
Mouse Pad
/// 
  hide details  
Reply
post #2 of 4
Thread Starter 
Any ideas?
    
CPUMotherboardGraphicsRAM
Intel Core 2 Duo E4700 @ 3.61 gHz Asus P5Q Radeon HD5770 OCZ Gold Edition (2x 2GB) 
Hard DriveOptical DriveOSMonitor
Kingston SSD 64GB + WD (2x 360GB (RAID0)) DVD-Writer Windows 7 Ultimate (64-bit) Samsung Syncmaster 953BW 
KeyboardPowerCaseMouse
Logitech diNovo OCZ (600w) Cooler Master Mystique Logitech MX 1000 
Mouse Pad
/// 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Intel Core 2 Duo E4700 @ 3.61 gHz Asus P5Q Radeon HD5770 OCZ Gold Edition (2x 2GB) 
Hard DriveOptical DriveOSMonitor
Kingston SSD 64GB + WD (2x 360GB (RAID0)) DVD-Writer Windows 7 Ultimate (64-bit) Samsung Syncmaster 953BW 
KeyboardPowerCaseMouse
Logitech diNovo OCZ (600w) Cooler Master Mystique Logitech MX 1000 
Mouse Pad
/// 
  hide details  
Reply
post #3 of 4
I'd assume you need something like the task scheduler for something like this. I don't know if it's possible but it might be.
post #4 of 4
Are you running the print server role?

Is your server configured for Active Directory or workgroup?

If it's AD it's easier as it's a matter of GPO with scripts applied to machines in an OU. If it's not it will have to be local GPO.

VBscript I know you can do it...Bat file I don't know. Depending on what you're trying to do you might need to access the API using VBscript.
ShoopDaWoop
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 920 ASUS P6T6 WS Revolution eVGA GTX 280 Corsair Dominator 6x2GB DDR3 
Hard DriveOptical DriveOSMonitor
150GB Velociraptor LG 22x DVD +-R/RW SATA Windows 7 Ultimate x64 2x SAMSUNG 206BW 
KeyboardPowerCaseMouse
Logitech G15 Gaming Keyboard Corsair 1 kW Cosmos 1000 Logitech G5 
  hide details  
Reply
ShoopDaWoop
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 920 ASUS P6T6 WS Revolution eVGA GTX 280 Corsair Dominator 6x2GB DDR3 
Hard DriveOptical DriveOSMonitor
150GB Velociraptor LG 22x DVD +-R/RW SATA Windows 7 Ultimate x64 2x SAMSUNG 206BW 
KeyboardPowerCaseMouse
Logitech G15 Gaming Keyboard Corsair 1 kW Cosmos 1000 Logitech G5 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Run a script when a print job comes in