Colete o código de efeito especial da página da web mais prático!
listdrives.aspx
< % @Page Language = C# %>
< % @import namespace = Systemm %>
< % @import namespace = System.io %>
<%
string QDRIVES = Environment.osversion.toString ();
string qNewline = Environment.systemDirectory.toString ();
String qmo = Environment.WorkingSet.TString ();
int QTick = Environment.TickCount;
QTICK/= 60000;
string [] achdrivers = diretório.getLogicalDrivs ();
int nnumofdrives = achdrives.length;
Response.Write (seu sistema é :);
resposta.write (QDRIVES);
resposta.write (<br>);
Response.Write (sua memória disponível é :);
Response.Write (QMO);
resposta.write (<br>);
Response.Write (foi reiniciado da última vez);
Response.Write (QTICK.ToString ());
Resposta.write (minuto);
resposta.write (<br>);
resposta.write (<br>);
resposta.write (<br>);
Response.Write (veja seu disco :);
resposta.write (<ul>);
para (int i = 0; i <nnumofdrives; i ++)
{{
Response.Write (<li> <a href =/listdir.aspx? Dir =);
Response.write (server.urlencode (achdrives [i]));
resposta.write (/> + achdrives [i]);
resposta.write (</a> <br>);
}
resposta.write (</ul>);
%>
listdir.aspx
< % @Page Language = C# Debug = True %>
< % @import namespace = System.io %>
<%
string strdir2List = request.QueryString.get (dir);
Diretório thisOne = null;
tentar
{{
thisne = novo diretório (strdir2List);
// Auslesen der Eigenschaften der Verzeichnisses
Response.Write (<p> Criar tempo: + thisne.creation.toString () + </p>);
Diretório [] subdiretos = thisne.getDirectories ();
resposta.write (<ul>);
Response.write --------------------------------------------- -----------------------------------------------);
resposta.write (<br>);
for (int i = 0; i <subdirectories.length; i ++)
{{
Response.Write (<li> <a href =/listdir.aspx? Dir =);
Response.Write (Server.urlencode (subdiretos [i]. FullName));
Response.Write (/> + subdiretos [i] .Name);
resposta.write (</a> <br>);
}
resposta.write (</ul>);
arquivo [] thefiles = thisne.getfiles ();
resposta.write (<ul>);
Response.write (------------------------------- 文件 ------------------ --------------);
resposta.write (<br>);
for (int i = 0; i <the <thefiles.length; i ++)
{{
Response.Write (<li> <a href =/showfile.aspx? file =);
Response.write (server.urlencode (thefiles [i]. FullName));
resposta.write (/> + thefiles [i] .name);
resposta.write (</a> <br>);
}
resposta.write (</ul>);
}
Catch (Exceção e)
{{
Response.write (esta função não pode ser implementada pelos seguintes motivos :);
Response.Write (e.toString () +);
resposta.END ();
}
%>
showfile.aspx
<% @Page Language = C# Debug = True%>
< % @import namespace = System.io %>
<html>
<head> <title> Informações sobre o arquivo </itit> </head>
<Body>
<%
string strfile2show = request.querystring.get (arquivo);
arquivo thisne = novo arquivo (strfile2show);
%>
<Tabela>
<tr> <td> Nome do arquivo: </td> <td> <%= thisone.name%> </td> </tr>
<ter> <td> Nome completo: </td> <td> <%= thisone.fullname%> </td> </tr>
<ter> <td> Arquivo Criando Data: </td> <td> <%= thisone.creationTime.tostring ()%> </td> </tr>
<ter> <td> Tamanho do arquivo: </td> <td> <%= thisone.length.tostring ()%> bytes </td> </tr>
<ter> <td> último tempo de uso: </td> <td> <%= thisne.lastac Sensesstime.toString ()%> </td> </tr>
<ter> <td> Última hora de modificação: </td> <td> <%= thisone.lastWriteTime.toString ()%> </td> </tr>
</tabela>
<%
StreamReader thereader = thisne.opentemt ();
char [] theBuffer = novo char [1000];
int nream = thereader.readblock (thebuffer, 0, 1000);
resposta.write (<br>);
Response.Write (Visualização de conteúdo do arquivo :);
resposta.write (<br>);
resposta.write (<pre>);
Response.Write (Server.htmlencode (new String (theBuffer, 0, nRad));
resposta.write (</pre>);
%>
</body>
</html>
É enriquecer funções de gerenciamento, upload de integração, modificação, exclusão e outras funções de gerenciamento
Eu me pergunto se há muito tempo
Trabalhe duro, amigos