alme123
Goto Top

Browser Protokoll installieren per Batch

Hallo zusammen,

ich brauche eine Batch (oder Vbs) die ein BrowserProtokoll installiert (zb: protokoll:). Wenn eine Webseite folgenden Link enthält (protokoll:%id%), soll ein Programm (zb. programm.exe) mit den Paramentern /protokoll %id% gestartet werden.
Da der 2. Paramenter variiert, habe ich %id% genommen.

Danke im Vorraus

Alme123

Content-Key: 195275

Url: https://administrator.de/contentid/195275

Printed on: April 19, 2024 at 20:04 o'clock

Member: Alme123
Alme123 Jan 24, 2013 updated at 16:22:02 (UTC)
Goto Top
Hallo zusammen,

ich habe es mittlerweile fast hinbekommen:

set key=HKEY_CLASSES_ROOT\ProtokollName
reg add "%Key%" /F >nul 2>nul  
reg add "%Key%" /v "" /t REG_SZ /d "URL:ProtokollName Protocol" /F  
reg add "%Key%" /v "URL Protocol" /t REG_SZ /d "" /F  
reg add "%Key%\shell" /F  
reg add "%Key%\DefaultIcon" /F  
reg add "%Key%\DefaultIcon" /v "" /t REG_SZ /d "Pfad_zur_Datei" /F  
reg add "%Key%\shell\open" /F  
reg add "%Key%\shell\open\command" /F  
reg add "%Key%\shell\open\command" /v "" /t REG_SZ /d ""Pfad_zur_Datei" Paramenter" /F  

Leider gibt es folgende Probleme:

- Das Icon wird nicht angezeigt (Bei mir alle BrowserIcons nicht)
Bild: http://www7.pic-upload.de/24.01.13/itco9fqp2vf6.jpg
- Es steht der hässliche Dateipfad mit den Paramentern (Es soll dort ein Name stehen)
Bild: http://www7.pic-upload.de/24.01.13/8nnvudmt2nt1.jpg


Vielleicht weiß einer weiter

Alme123