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 zusammen

ich würde gerne dem Process.Start() unter .net mehrere Argumente mitgeben, z. B. so:


Process.Start("D:\my.bat", Var1, Var2)

Variable1 und Variable2 sind die zwei Variablen (Strings) die weiter oben im Quelltext mit Leben gefüllt werden. Natürlich klappt meine Syntax so wie sie da ist nicht. Wie wäre es korrekt?

  • 1 Jahr später...

Process.Start(("deine.cmd"), (Var1) & " " & (Var2))

Etwas spät aber das Funktioniert mit cmd sicher:

so kannst du wenn du es Erweiterst bis zu 9 variabel durch reichen an eine cmd

ich habe auch lange gesucht aber das geht Prima.

 

 

  • 2 Monate später...
Am 2.6.2016 um 15:08 schrieb Novaly:

Process.Start(("deine.cmd"), (Var1) & " " & (Var2))

Etwas spät aber das Funktioniert mit cmd sicher:

so kannst du wenn du es Erweiterst bis zu 9 variabel durch reichen an eine cmd

ich habe auch lange gesucht aber das geht Prima.

 

 

Process.Start(command, string.Format("{0} {1}", var1, var2));

Wäre mMn schöner ;) 

Bearbeitet von eminenz

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.