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.

Batch: Call Subbatch mit SET

Empfohlene Antworten

Hallo Gemeinde,

das nächste Problem was ich irgendwie nicht so gut recherchiert bekomme: Der Caller ruft eine Batch auf und will anschliessend von der subbatch(sub.bat) deklarierte variablen nutzen:

call sub.bat

echo %var1%

echo %var2%
sub.bat:
set var1=wurst

set var2=kaese

Hat mir wer einen Tipp?

Das geht nicht so. DOS kann nur von "oben nach unten" weiterreichen. Also vom Caller an das Subskript.

Du kannst aber die sub.bat so abändern, dass dort eine Ausgabe erzeugt wird und dann die sub.bat in einer FOR-Schleife innerhalb des Callers ausführen.

FOR /F "tokens=*" %%i IN ('sub.bat') DO set foo=%%i

In der Variable steht dann das, was du mittels echo ausgegeben hast. Bin mir nicht sicher, wie das bei mehreren notwendigen Variablenwerten aussieht (Anderes Token?).

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.