【求助】FTP用资源管理器打开的问题
湮没二进制 2014-06-10 09:38:33 公司部门内部搞了个FTP,用网页搞了个FTP登陆框,可是用登陆框登陆的总是不能用资源管理器打开。下载过一些修复工具,都没用。但是使用:FTP://192.168.1.1 这样登陆又能够用资源管理器打开。
下面我把登陆框和修复工具的代码贴上来。
//登陆框代码
<html>
<head>
<script janguage="javascript">
<!--
//这个简单的脚本生成了登录FTP的URL字符串
function goFtpSite() {
document.location.href = "ftp://" + document.ftp.login.value + ":" + document.ftp.password.value + "@" + "10.233.173.105"
}
//格式:ftp://用户名:密码@站点地址
//-->
</script>
<title>FTP页面登录</title>
</head>
<body>
<form name="ftp">
<div align="left">
<table border="0" cellpadding="1" cellspacing="1" bgcolor="#000000">
<tr>
<td>
<table border="0" cellspacing=0 cellpadding=5 align="center">
<tr bgcolor="#dddddd">
<td align="right">
<font face="宋体" size="-1">
用户名:
</font>
</td>
<td>
<font face="arial,helvetica" size="-1">
<input type="text" size="15" name="login" maxlength="20" style="border: 1 solid #000000">
</font>
</td>
</tr>
<tr bgcolor="#bbbbbb">
<td align="right">
<font face="宋体" size="-1">
密码:
</font>
</td>
<td>
<font face="arial,helvetica" size="-1">
<input type="password" size="15" name="password" maxlength="20" style="border: 1 solid #000000">
</font></td>
</tr>
<tr bgcolor="#ffffff">
<td colspan="2" align="center">
<font face="arial,helvetica" size="-2">
<input type=button onclick="goFtpSite();" value=" 登 录 " style="background-color: #DDDDDD; border: 1 solid #000000"></font><font size="-2"> </font><font face="arial,helvetica" size="-2"><input type=reset value=" 取 消 " style="background-color: #DDDDDD; border: 1 solid #000000">
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
//修复FTP资源管理器打开代码 .reg文件
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\ftp]
"Source Filter"="{E436EBB6-524F-11CE-9F53-0020AF0BA770}"
"ShellFolder"="{63da6ec0-2e98-11cf-8d82-444553540000}"
@="URL:File Transfer Protocol"
"AppUserModelID"="Microsoft.InternetExplorer.Default"
"EditFlags"=dword:00000002
"URL Protocol"=""
"FriendlyTypeName"="@C:\\Windows\\System32\\ieframe.dll,-905"
[HKEY_CLASSES_ROOT\ftp\DefaultIcon]
@="C:\\Windows\\System32\\url.dll,0"
[HKEY_CLASSES_ROOT\ftp\shell]
[HKEY_CLASSES_ROOT\ftp\shell\open]
[HKEY_CLASSES_ROOT\ftp\shell\open\command]
@="\"C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe\" %1"
[HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec]
@=hex(2):22,00,25,00,31,00,22,00,2c,00,2c,00,2d,00,31,00,2c,00,30,00,2c,00,2c,\
00,2c,00,2c,00,00,00
"NoActivateHandler"=""
[HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec\Application]
@="IExplore"
[HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec\IfExec]
@="*"
[HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec\Topic]
@="WWW_OpenURL"