$protocol_separator="//" For Each $args In getcommandline(1) $arg=$args Next $a1=Split ($arg,":",1) For Each $p in $a1 $protocol=$p Next If $protocol="http" Run "C:\Programs\FireFox\firefox.exe $arg" EndIf If $protocol="ftp" Run "C:\Admin\FileZilla.cmd $arg" EndIf If $protocol="sftp" Run "C:\Admin\FileZilla.cmd $arg" EndIf If $protocol="ldap" Run "C:\Admin\LdapAdmin\LdapAdmin.exe $arg" EndIf If $protocol="ssh" $args_without_protocol=SubStr($arg,(Len($protocol)+Len($protocol_separator))+2,Len($arg)) $user_e=Instr($args_without_protocol,":") $host_s=Instr($args_without_protocol,"@@") $user=SubStr($args_without_protocol,1,$user_e-1) $password=SubStr($args_without_protocol,$user_e+1,$host_s-$user_e-1) $host=SubStr($args_without_protocol,$host_s+1) Run "C:\Admin\KiTTY.cmd -ssh $user@@$host -title $host -pw $password" EndIf If $protocol="radmin" $args_without_protocol=SubStr($arg,(Len($protocol)+Len($protocol_separator))+2,Len($arg)) Run "C:\Admin\Radmin\Radmin.exe /connect:$args_without_protocol:4899 /8bpp" EndIf Quit 0