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,

ich muß mehere ca. 250 .html Dateien nach einem Datum durchsuchen, und dieses dann ersetzen. Wollte das ganze mit einer BATCH Datei erledigen. Für eine Datei habe ich auch etwas gefunden:

@echo off & setlocal enabledelayedexpansion

set "Datei=C:\Dokumente und Einstellungen\User1\Desktop\QEV\QEV_2011-10-18_serverxyz.html"

set "Von=<h3> 10/18/2011 09:20:18 </h3>"

set "Nach=<h3> 11/24/2011 09:23:18 </h3>"

set "t=%temp%\text.tmp"

if exist "%t%" del "%t%"

for /f "usebackq delims=" %%i in ("%Datei%") do set "Line=%%i" & set "Line=!Line:%Von%=%Nach%!" & >>"%t%" echo !Line!

move "%t%" "%Datei%"

Das klappt bei einer Datei super. Allerdings habe ich jetzt probiert mit einer FOR - Schleife alle Datein zu durchschen und zu änder, bin als Script Neuling kläglich gescheitert. Vielleicht kann mir jemand von euch helfen. Und mir vielleicht so erklären, dass ich es verstehe. Danke schonmal.

MFG Günnie

hallo günni,

mit der powershell geht das sehr einfach :-)

Hab mal auf die schnelle was runtergeschrieben, allerdings nicht getestet ;-)


$path = "C:\<OrdnerwodieDateienliegen>"

$alt = "alter Text"

$neu = "neuer Text"

$fileList = get-childitem $path -recurse -Filter *.html 

foreach($temp in $fileList){

$file = new-object System.IO.FileInfo($temp)

Get-Content $file.FullName | Foreach-Object {$_.Replace ($alt $neu)} | set-content $file.FullName

}

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.