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.

per batch subnet durchsuchen

Empfohlene Antworten

Veröffentlicht


SET IP=10.1.11


:start

for %%a in (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) do goto map

goto ende


:map

echo x: loeschen...

net use x: /d > nul

echo mappe lw x: auf ip %IP%.%a%

net use x: \\%IP%.%a%\c$ > nul

if exist x:\programme\dateiname goto found

sleep 1

echo nix gefunden

goto start


:found

echo gefunden auf %IP%.%a% 

pause


:ende

SET IP=

Hi,

mein Problem: ich will ein IP-Subnet nach einer bestimmten Datei durchsuchen. So wie es im Moment ist, ist die Variable a allerings leer. Es kommt die Ausgabe:

mappe lw x: auf ip 10.1.11.

Hab es auch schon mit %a versucht, dann kommt die Meldung

mappe lw x: auf ip 10.1.11.a

Funzt das überhaupt mit dem "goto map" für alle Angaben in der Klammer, oder muss ich das gleich nach dem goto mappen und dann runterspringen?

Benutze Windows 2000 SP4 mit normaler cmd.exe

Ist die Befehlserweiterung aktiviert?

(Ich kann auf Anhieb nicht mehr sagen wie man's macht. Nur soviel: Es sind Einträge in der Registry vorzunehmen)

Ist die verzögerte Erweiterung von Umgebungsvariablen aktiviert?

( Erläuterung dazu mit mit cmd /?)

Original geschrieben von DeepBlue

Funzt das überhaupt mit dem "goto map" für alle Angaben in der Klammer, oder muss ich das gleich nach dem goto mappen und dann runterspringen?

[/b]

Geht nicht,

er startet die for Schleife dann immer neu, machs lieber so :

SET IP=10.1.11

set /a a=0

:start

set /a a=%a%+1

if %a%==20 goto ende

goto map

Gruß

Terran

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.