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.

Empfohlene Antworten

Veröffentlicht

Hallo erstmal :)

vielleicht kann mir hier ja jemand mit folgendem Problem helfen:

Ich habe ein Programm, welches ich alle 10 Minuten via Windows Aufgabenplanung ausführen lasse. Da ich davon nichts mitbekommen will, ruft die Windows Aufgabenplanung zuerst ein VBS auf, welches die exe dann hidden ausführt.

Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run("D:\Daten\Programm.exe"), 0, True

Dies funktioniert in den meisten Fällen auch ganz problemlos, nur wenn das Programm einmal doch hängen bleibt, hängen natürlich alle folgenden auch,  wenn man sich nach ein , zwei Tagen dann wieder anmeldet, hat man erst mal 200 "Programm reagiert nicht mehr" Fenster zu schließen. 

Ich möchte nun, dass das Programm nach spätestens 5 Minuten hart beendet wird, wenn es bis dahin nicht schon abgeschlossen ist.

Wenn jemand einen Tipp dazu hätte, wäre ich sehr dankbar :)

 

Windows kann das Programm spätestens nach einer Stunde beenden, falls Dir das ausreicht. Das kannst Du in den Einstellungen der Aufgabe hinterlegen:

5a141d3e433dd_2017-11-2113_35_22-Eigenschaften.png.53386ec1cdd5242230752acd0ac9fcbf.png

@hs1 Wird bei ihm nicht wahrscheinlich nicht greifen, da sein VBS-Skript das Programm via Run() als neuen Prozess ausführt. Nur der VBS-Skripthost würde beendet, wohl nicht die Kindprozesse.

Ich würde das Abbrechen in das VBS Einbauen:

WScript.Sleep 300000
objShell.Run("taskkill /im Programm.exe"), 0, True 

 

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.