可以查下EXCEL的安装目录下的执行文件位置。
与另外一台正常的电脑对比就能查出来。
如果实在不好查,可以点下帮助里的重新修复OFFIC软件。
使用cookie即可。
<!DOCTYPE HTML><html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="keywords" content="白菜编辑部">
<title>白菜编辑部</title>
<style type="text/css">
</style>
<script type="text/javascript">
function readCookie (name)
{
var cookieValue = "";
var search = name + "=";
if (documentcookielength > 0)
{
offset = documentcookieindexOf (search);
if (offset != -1)
{
offset += searchlength;
end = documentcookieindexOf (";", offset);
if (end == -1)
end = documentcookielength;
cookieValue = unescape (documentcookiesubstring (offset, end))
}
}
return cookieValue;
}
function writeCookie (name, value, hours)
{
var expire = "";
if (hours != null)
{
expire = new Date ((new Date ())getTime () + hours 3600000);
expire = "; expires=" + expiretoGMTString ();
}
documentcookie = name + "=" + escape (value) + expire;
}
writeCookie ("myCookie", "my name", 24);
alert (readCookie ("myCookie"));
</script>
</head>
<body>
</body>
</html>用JSPSMART处理,参考下面代码实现
<%
//程序初始化 下面设置成要保存的文件夹
String path_tmp = requestgetRealPath("/") + "Upload";
String filename_p = "Test";
String path_new = requestgetRealPath("/") + "Upload\\" + filename_p;
//文件上传
SmartUpload su = new SmartUpload();
suinitialize(pageContext);
suupload();
int count = susave(path_tmp);
//参数提取,后面贴不了,说我的重复内容多,这玩意真差
%>下面是一个VB脚本的,需要加入可信站点才能d出对话框,打开要保存的文件夹
<script language="vbscript">
Function Foder()
Const MY_COMPUTER = &H11&
Const WINDOW_HANDLE = 0
Const OPTIONS = 0
Set objShell = CreateObject("ShellApplication")
Set objFolder = objShellNamespace(MY_COMPUTER)
Set objFolderItem = objFolderSelf
strPath = objFolderItemPath
Set objShell = CreateObject("ShellApplication")
Set objFolder = objShellBrowseForFolder _
(WINDOW_HANDLE, "请选择文件夹:", OPTIONS, strPath)
If objFolder Is Nothing Then
exit Function
End If
Set objFolderItem = objFolderSelf
objPath = objFolderItemPath
documentfrmListFODER_PATHvalue = objPath
End Function
</script>
<input type = "button" name = "path" size = "100" onclick="Foder()" value="选择文件夹" />
客户导入选择文件就用file就可以
<input type="file" name="DATA_RESTORE_PATH" maxlength="20" style="WIDTH: 100px" >
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)