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.

Delphi: in Programm *.bat - Datei ausführen

Empfohlene Antworten

Hallo,

also ich bin am Schreiben eines Exportmoduls,

ich hole mir die Daten schreibe und diese in eine Datei.

Diese Datei wird dann mit einem alten Dos-Programm (von dem

Hersteller des Speichers) direkt auf den Buffer übertragen.

Jetzt würde ich gerne die *.bat - Datei von Delphi aus starten.

Danke im Vorraus für die Hilfe!

mfg

soltac

Vielleicht hab ich die Frage auch zu dumm gestellt,

also ich bin jetzt auf jeden Fall mal so weit das ich die *.bat - Datei in

mein Projekt geholt habe, jetzt habe ich aber ein Problem mit dem

Einbinden, ich habe absolut keine Ahnung wie das funktioniert!

Finde auch unter Google nichts passendes, außer das es wohl

mit einem Shell Execute funktionieren soll, aber nichts über die Einbindung!

mfg

soltac

ShellExecute(self.handle, 'OPEN', 'PfadZurDatei.bat', '', '', SW_MINIMIZE);

so sollte deine .Bat Datei ausgeführt werden und zwar Minimized. Die beiden leeren Strings sind 1. evtl. Parameter für das Programm und 2. das Default Directory.

Ach ja, ShellApi muss glaub ich eingebunden werden (uses ShellAPI).

Hilfe gibt es in Delphi unter Hilfe - Windows SDK - Index - ShellExecute

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.