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.

Ideensammlung: Zeichenketten in Textdatei verändern mit Boardmitteln XP.

Empfohlene Antworten

Hallo ich hab grad ein Problem mit einer Textdatei welche in etwa so aussieht:

    \\Serv501A\Print0VRXC    REG_SZ    winspool,Ne02: 

    \\Serv501A\PrintD1RPC    REG_SZ    winspool,Ne03: 

    \\Serv501A\PrintPECM0D    REG_SZ    winspool,Ne04: 

    \\Serv507a\Print0QDGC    REG_SZ    winspool,Ne05: 

    \\Serv507a\Print0YQQC    REG_SZ    winspool,Ne06: 

    \\Serv507a\Print0ZCQC    REG_SZ    winspool,Ne07: 

    \\Serv507a\Print0ZD6C    REG_SZ    winspool,Ne08: 

    \\Serv509A\Print0YR3C    REG_SZ    winspool,Ne09: 
ich möchte jetzt, das in diesem Text nach mehreren Servern Ausschau hält und die entsprechend einer Textdatei ändert. z.B.:
Serv505A=Serv507A

Serv503A=Serv510A

Ich weiss das ich in einer Batch mit der %variable:\\=\% alle doppelten \ zu einfachen reduzieren kann. Wenn ich aber in einer For-Schleife arbeite habe ich ja keine %Variable% sondern eine %%Variable.

Also wie könnte man sowas am Problemlosesten angehen?

@echo off

setlocal ENABLEDELAYEDEXPANSION

FOR /L %%i IN (1,1,10) DO (

set FOO=%%i

echo !FOO:5=4!

)

(Ersetzt die 5 durch eine 4.) Müsste bei Sonderzeichen auch gehen.

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.