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.

if Anweisung funktioniert nicht richtig

Empfohlene Antworten

Veröffentlicht

Hallo community

ich hab nen kleines Problem.

Soweit mein Programmsuschnitt

@echo off

:start

cls


echo.

echo Welche Seite wollen Sie hinzufuegen:

echo.

echo 1. www.abc.eu

echo 2. www.abc.com

echo 3. www.abc.net

echo 4. Eigene Seite hinzufuegen

echo.

echo 0 Beenden


	set/p auswahl=

	if %auswahl%==1 reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\www.abc.eu"  /v "*" /t "REG_DWORD" /d "00000001"

	pause

	GOTO start

	if %auswahl%==2 reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\www.abc.com" /v "*" /t "REG_DWORD" /d "00000001" 

	pause

	GOTO start

	if %auswahl%==3 reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\www.abc.net" /v "*" /t "REG_DWORD" /d "00000001" 

	pause

	GOTO start

	if %auswahl%==4 GOTO add

	if %auswahl%==0 GOTO exit

	GOTO start


:add

	echo Bitte URL eingeben:

	set/p URL=

	reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\%URL%" /v "*" /t "REG_DWORD" /d "00000001"

	pause

GOTO start


:exit

exit

jetzt habe ich das Probelm das das Programm startet, aber ich nur die "1" auswählen kann.

alle anderen Möglichkeiten bewirken nichts.

Wäre schön wenn da mal jemand drüber schauen kann...

Erstens: Windows-Batchprogrammierung ist kein BASIC.

Zweitens: Mit if steuerst du nur die Ausführung des nächsten Befehls, in deinem Fall der Aufruf von reg. Die nachfolgenden Befehle (pause, GOTO start) werden also auf jeden Fall ausgeführt. Wenn mehrere Befehle von einer if-Anweisung abhängen sollen, dann stell Klammern darum.

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.