Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Drucker Scripte

Empfohlene Antworten

Veröffentlicht

Hallo Kann mir evtl. einer weiter helfen ?

Ich habe 2 scripte wo beim runterfahren eines Pc´s den Drucker auslesen muss und in einer anderen datei rein schreiben muss 2tes scripst was beim hochfahren ausgeführt werden muss.

Hab auch schon einen ansatz aber komme da nicht weiter.

Auslesen

Dim objShell

Dim sPath

Dim sPrinter

Dim sPort

Dim sDriver

Dim ar_PrnInfo

Set objShell = CreateObject("WScript.Shell")

sPath = "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device"

ar_PrnInfo = Split(objShell.RegRead(sPath), ",")

If IsArray(ar_PrnInfo) Then

sPrinter = ar_PrnInfo(0)

sPort = ar_PrnInfo(2)

sDriver = ar_PrnInfo(1)

End If

MsgBox "Default Printer: " & sPrinter & vbCrLf & _

"Printer Port: " & sPort & vbCrLf & _

"Printer Driver: " & sDriver

und dann das einbinden:

Dim objShell

Dim sPath

Dim sPrinter

Dim sPort

Dim sDriver

Dim ar_PrnInfo

Set objShell = CreateObject("WScript.Shell")

sPath = "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device"

objShell.RegWrite sPath, "\\Ausgelesener Drucker Name ,winspool,Ne07:"

Weiß einer wie ich die zusammen führen kann ?

LG

Terao

Hat keiner eine Idee ?

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.