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: Choice (ja/nein) automatisch beantworten bzw überspringen

Empfohlene Antworten

Veröffentlicht

Hallo,

ich bin immernoch bei der Batchprogrammierung, diesmal aber etwas anderes.

Möchte eine .bat schreiben die automatisch registry einträge löscht die sich in einer txt datei befinden

@ECHO OFF


set reg=C:\regdel\2\reg.txt



ECHO ===========

ECHO Reg-Cleaner

ECHO ===========


for /f %%i in (%reg%) do (


echo Delete %%i ...


  REG DELETE "%%i"


)



PAUSE


EXIT

so sieht es bis jetzt aus.. klappt auch alles, nur das er mich jedes mal fragt ob ich den schlüssel wirlich löschen möchte und ich immer mit J antworten muss.

Meine Frage ist nun ob ich das irgendwie überspringen kann oder automatisch beantworten kann. mit /s habe ich es schon probiert das scheint nicht zu funktionieren.

Schonmal danke für eure Hilfe

lG

ryoorox

cmd,

help del

>> lesen, anwenden

Entschuldigung ich habe vergessen zu schreiben das ich /Q auch schon versucht habe.

Bitte um weitere Hilfe.

Ok habs gelöst... /f wars


@ECHO OFF


set reg=C:\regdel\2\reg.txt



ECHO ===========

ECHO Reg-Cleaner

ECHO ===========


for /f %%i in (%reg%) do (


echo Delete %%i ...


  REG DELETE "%%i" [COLOR="Red"][B]/f[/B][/COLOR]


)



PAUSE


EXIT


lg

ryoorox

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.