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.

C# - ChangeDirectory

Empfohlene Antworten

Veröffentlicht

Guten tag,

ich müsste um eine externe applikation zu starten das aktive-verzeichnis ändern. In VB gibts den befehl chdir(). Ich hab auch eine liste, wo die VB in C# befehle portiert sind. Jedoch steht dort Der befehl FileSystem.ChDir, doch die Klasse FileSystem ist bei mir nicht vorhanden.

Vielleicht weis ja jemand von euch, wie das mit dem chdir befehl funktioiert. Bin auch über andere befehle, die das selbe bewirken dankbar

Hallo Mes_K,

ich glaube du suchst

System.IO.Directory.SetCurrentDirectory

aber warum musst du extra das Verzeichnis setzten, um eine externe

Applikation zu starten? Wie startest du denn die externe App?

Gruß

Yahoo

danke, habs auch grad rausgefunden.

Ich hab n exe file, das etwas entpackt. und um dieses auszuführen muss es aus einem bestimmten verzeichnis gestartet werden. daher das wechseln des verzeichnises.

edit: Starten tu ich die applikation mit Process proc = Process.Start();

  • 3 Wochen später...

Hi!

Wenn Du eine StartInfo in der Form

System.Diagnostics.ProcessStartInfo si = new System.Diagnostics.ProcessStartInfo(sApplication);

mit übergibst, kannst Du mit

si.WorkingDirectory = @"C:\TestDir\";

das (neben anderen Dingen) Arbeitsverzeichnis angeben. Dann die Anwendung mit

pProcess = Process.Start(si);

starten. Das war's.

Gruß

Ken Guru

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.