→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎02-10-2022 04:48 PM
<%@ Page Language="C#" AutoEventWireup="true" Inherits="LS.BaseControl" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="LS.Enums" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="LS" %>
<% Response.CacheControl = "no-cache";%>
<% Response.AddHeader("Pragma", "no-cache"); %>
<% Response.Expires = -1; %>
<% LS.User.Current().CheckUserWebsiteAccess(); %>
<%string foldername="\\\\Server\\Work-Instructions";%>
<%System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(foldername);%>
<%int count = dir.GetFiles().Length;%>
<ul> <% foreach(var file in Directory.GetFiles(foldername, "*.*", SearchOption.AllDirectories)) { %>
<%FileInfo fi =new FileInfo(file);%>
<%long size = fi.Length; %>
<%if (size > 0){ %>
<%string FileDoc = Path.GetFileName(file);%>
<li><a href="http://Server/WidgetsCustom/Work-Instructions/<%=Path.GetFileName(file)%>"</a><%=FileDoc%> - <%=size %>kb</li>
<%} }%>
</ul>
<script type="text/javascript">
$('#WTitle<%=TabControlID %>', window.top.document).text("Work Instructions:=<%=count %>");
</script>
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now