Js| Trojan | Show want to slowly improve this folder.jsp applet, add some features, such as file editing, delete, etc.
Directory Operations (Create a new directory, delete a directory, and so on)
The program write more messy, after slowly finishing
Welcome everybody to mention the valuable opinion.
<%
/**
JSP File Manger V0.5 the Windows platform
FileName: folder.jsp
Description: A simple System file directory display program, similar to the resource manager, but the function is much weaker. The main example is to learn the SYstem.IO.File class.
Author: Ci Qin Qiang
Emai:cqq1978@gmail.com
*/
%>
<%@ page contenttype= "text/html;charset=gb2312"%>
<% @page import= "java.io.*"%>
<% @page import= "java.util.*"%>
<style>
Td,select,input,body
{
font-size:9pt;
}
A {Text-decoration:none}
</style>
<title>jsp File manger Version0.5--by ci Qin strong cqq1978@gmail.com</title>
<%!
String Getdrivers ()
/**
Get all the logical disks available on the Windows system
**/
{
StringBuffer sb=new StringBuffer ("drive:");
File roots[]=file.listroots ();
for (int i=0;i<roots.length;i++)
{
Sb.append ("<a href=" "path=" +roots[i]+ "' >");
Sb.append (roots[i]+ "</a>");
}
return sb.tostring ();
}
%>
<%
String strthisfile= "folder.jsp";
Request.setcharacterencoding ("gb2312");
String Strdir = request.getparameter ("path");
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.