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.

ShellExecute - Befehl ausführen...

Empfohlene Antworten

Veröffentlicht

Hi habe ein Problem mit ShellExecute.

Und zwar will ich einen Befehl ausführen, doch es tut sich nicht.


_mkdir("C:\\1");//Verzeichnis erstellen


CString csRun = "d:\\test\\rar.exe e -ppassword d:\\test\\lib.rar c:\\1";

ShellExecute(NULL,"open", csRun,NULL,NULL,SW_HIDE);

Dabei geht das wenn ich es exakt so in die Eingabeaufforderung schreibe oder Sogar unter "Start" -> "Ausführen" reinkopiere.

Aber im Programm startet es einfach nicht.

Weiß einer weshalb?

Oder gibt es noch eine andere Möglichkeit einen Befehl so auszuführen?

LG, Filou

PROBLEM GELÖST - NEUES PROBLEM!

Ich habe es mit system(csRun); hinbekommen.

Allerdings kann ich jetzt das fenster nicht mehr ausblenden.

Weiß einer ob das mit ShellExecuteEx geht und wenn ja, wie...?

LG; Filou

zu deinem gelöstem Problem:

versuchs mal so:

ShellExecute(NULL,"open ", csRun,NULL,NULL,SW_HIDE);

Hatte mal so was ähnliches, da hat nur ein Leerzeichen gefehlt, weil sonst das ganze zu einem einzigen String "opend:/..." wird.

habs schon hinbekommen. Man muss die Parameter extra übergeben, dann gehts:


CString csProgramm = csQuellpfad + "\\rar.exe";

CString csParameter = "x  -pPassword " + csQuellpfad + "\\lib.rar C:\\Programme\\Modul4";

ShellExecute( NULL, "open", csProgramm, csParameter, NULL, SW_HIDE );

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.