⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filescmdexec.ascx

📁 本系统是在asp版《在线文件管理器》的基础上设计制作
💻 ASCX
字号:
<%@ Control Inherits="SpbDev.FilesWebPages.UCFilesCmdExec" Language="C#"%>
<%@ Register TagPrefix="spbdev" Namespace="SpbDev.FilesWebControls" Assembly="SpbDev.Files"%>
<html>
<head>
<title><%=FilesSysName%> - 命令行执行器</title>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">
<style type="text/css">
<!--
body,table,td{font-size:12px;color:#000000;}
body{margin:1px;padding:0;background:#ffffff url(<%=TemplateSourceDirectory%>/image/bgbrick.gif);}
img{vertical-align:bottom}
form{margin:0;padding:0}
a{color:#000080;text-decoration:none;}
a:hover{color:#ff3333;text-decoration:underline}
.BtnSize2{width:36px;height:18px;margin-right:2px;padding-top:2px;border:none;cursor:hand;background:transparent url(<%=TemplateSourceDirectory%>/image/BtnBgSize2.gif);}
.BtnSize3{width:52px;height:18px;margin-right:2px;padding-top:2px;border:none;cursor:hand;background:transparent url(<%=TemplateSourceDirectory%>/image/BtnBgSize3.gif);}
.BtnSize4{width:68px;height:18px;margin-right:2px;padding-top:2px;border:none;cursor:hand;background:transparent url(<%=TemplateSourceDirectory%>/image/BtnBgSize4.gif);}
.BtnSize5{width:84px;height:18px;margin-right:2px;padding-top:2px;border:none;cursor:hand;background:transparent url(<%=TemplateSourceDirectory%>/image/BtnBgSize5.gif);}
.BtnSize6{width:100px;height:18px;margin-right:2px;padding-top:2px;border:none;cursor:hand;background:transparent url(<%=TemplateSourceDirectory%>/image/BtnBgSize6.gif);}
.InputTxt{border:solid 1px #6666AA;}
//-->
</style>
<script language="javascript">
<!--
var startTime,endTime;
var d=new Date();
startTime=d.getTime();
String.prototype.trim=function(){
	return this.replace(/(^\s*)|(\s*$)/g, "");
}
function checkForm(oF)
{
	if(oF.CmdTxt.value.trim()!="")
	{
		var bRslt=window.confirm("立即执行该命令行?");
		if(!bRslt){
			oF.CmdTxt.focus();
		}
		return bRslt;
	}
	else
	{
		alert("请正确书写命令行文本!");
		oF.CmdTxt.focus();
		return false;
	}
}
//-->
</script>
</head>
<body>
<center>
<div style="position:relative;text-align:left;width:772px;background:#ffffff;border:solid;border-color:#CCCCCC;border-width:0 1px;">
<table align="center" width="100%" border="0" style="background:#DDDDDD">
	<tr>
		<td height="18">&nbsp;</td>
	</tr>
</table>
<table align="center" width="100%" cellspacing="0" style="background:#EFEFEF;border-top:solid 1px #ffffff;border-bottom:solid 1px #ffffff;">
	<tr>
		<td width="40%">&nbsp;&nbsp;<%=FilesSysName%> <%=FilesVersion%></td>
		<td height="55" align="center">&nbsp;</td>
	</tr>
</table>
<table align="center" width="100%" border="0" style="background:#DDDDDD">
	<tr>
		<td colspan="2" height="18">&nbsp;</td>
	</tr>
</table>
<table align='center' width="100%" style='margin:1px 0;'>
	<tr>
		<td align="center">
			<spbdev:SpbPanel id="EditFileCont" runat="server">
				<form action="<%=SelfName%>" method="post">
				<input type='hidden' name='act' value='ExecCmd'>
				<table width="96%" height="52" align="center" border="0" cellspacing="0">
					<tr>
						<td align="center" style="border-bottom:solid 1px #000000;"><B><%=FilesSysName%> - 命令行执行器</B></td>
					</tr>
					<tr>
						<td align="center"><B>提示:</B>在文本框中输入命令行文本(可一次多条,每行一条),执行即可(按Ctrl + Enter可快速执行) &nbsp;&nbsp;<input type='button' class='BtnSize4' value='立即执行' onclick="if(checkForm(this.form)){this.form.submit();}"> <input type='reset' class='BtnSize4' value='清空重写'></td>
					</tr>
				</table>
				<textarea name='CmdTxt' wrap="off" style='border:solid 1px #000099;word-break:keep-all;overflow:auto' cols='102' rows='10' onkeydown="if(event.ctrlKey && event.keyCode==13){if(checkForm(this.form)){this.form.submit();}else{return false;}}"></textarea>
				<br>
				<table width="96%" height="26" align="center" border="0" cellspacing="0">
					<tr>
						<td align="center"><B>命令行执行结果如下:</B></td>
					</tr>
				</table>
				<textarea name='CmdRslt' wrap="off" style='border:solid 1px #000099;word-break:keep-all;overflow:auto' cols='102' rows='16'><%=Str.TextEnc(CmdExecResult)%></textarea>
				</form>
			</spbdev:SpbPanel>
		</td>
	</tr>
</table>
	<br>
<table align="center" width="100%" border=0 cellpadding='0' cellspacing='0' height='64'>
	<tr>
		<td height='15'></td>
	</tr>
	<tr>
			<td height='85' align='center' valign='top' style='line-height:22px;padding-top:6px'>  <font face='Arial'>程序名称:<a href="http://www.spbdev.com/Licence/FilesNet.aspx?id=">FilesNet <%=Version.Major.ToString()%>.<%=Version.Minor.ToString()%></a> 发布站点:<a href='http://www.SpbDev.com' target='_blank'>SpbDev</a> 当前风格:蓝色天空<br>执行时间:<%=precessTime%> 毫秒 页面装载:<script language='javascript'>d=new Date();endTime=d.getTime();document.write((endTime-startTime)/1000);</script> 秒</font><!--数据库查询:<%=QueryTimes%>次--></td>
	</tr>
</table>
<table align="center" width="100%" border=0 cellpadding='0' cellspacing='0'>
	<tr>
		<td style='height:2px;background:#7DD16A'></td>
	</tr>
	<tr>
		<td style='height:23px;background:#eeeeee url(<%=TemplateSourceDirectory%>/image/pageBottomBg.gif);'></td>
	</tr>
	<tr>
		<td style='height:2px;background:#7DD16A'></td>
	</tr>
</table>
</div>
</center>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -