Autor Beitrag
F.Art
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 434



BeitragVerfasst: Fr 08.07.11 10:41 
Ich möchte mit Delphi einen Drucker mit einer bestimmten IP auf einen Rechner hinzufügen.
Wie geh ich hier vor?
Es müssen 40 Rechner gemacht werden und dies wollte ich nicht per Hand erledigen müssen.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19312
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 08.07.11 11:41 
Muss es per Delphi sein?
Es reicht auch diesen Befehl z.B. per Batchdatei aufzurufen:
ausblenden Quelltext
1:
rundll32 printui.dll,PrintUIEntry /in /n \\server\drucker					
F.Art Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 434



BeitragVerfasst: Fr 08.07.11 12:16 
Per Script wäre es auch OK.
Nur müssen folgene Dinge automatisch eingetragen werden:

Name: Drucker2
Anschlüsse - Portname: IP_Drucker2
- Druckername oder IP: 192.0.0.100
Port: 9100

Treiber: HP LaserJet 4050 Series PCL