Thread Standardbrowser (33 answers)
Opened by Froschpopo at 2005-05-12 01:55

pKai
 2005-05-12 15:14
#54810 #54810
User since
2005-02-18
357 Artikel
BenutzerIn
[default_avatar]
[quote=Froschpopo,12.May.2005, 12:51]allerdings parst mein script oben nur den pfad in anführungszeichen, also müsste es heißen:
...[/quote]
Ja, und das ist Schmarrn. Bei mir (XPpro) isteht in dem bewussten Key: '"C:\Program Files\Internet Explorer\iexplore.exe" -nohome' und dein Skript stellt nur lapidar fest, dass "C:\Program" nix ausführbares ist...
Was da in dem Key steht ist so eine Art einzeiliges Batchfile, daher kann die Syntax entsprechend variieren, ja nach dem, wie das betreffende Programm sich dort einträgt.
Was bei mir problemlos funktioniert ist eine GotoUrl in der folgenden Form.

Quote
sub GotoUrl {
my $call = $reg_key->{""};
system("$call $_[0]");
}

Warum der IE überhaupt keine Argumentvariable im Key hat ist mir unklar.
Die Lösung von ptk, die Batchvariablenersetzung selbst durchzuführen und nicht gesetzte Positionsparameter anzuhängen dürfte trotz des Restes an Heuristic das richtige sein. ;)
I sense a soul in search of answers.

View full thread Standardbrowser