Reply: kw, your that program cannot use absolute path? such as C:\

Source: Internet
Author: User
Tags visual studio
Program 1. In fact, I now use is a relatively complete. Code See below:
2. Due to the need to write in two days (the whole site), the code is not beautiful, there is no err handle, optimize.
3. FileSystemObject can only use absolute paths. So you need MapPath method.
4. Microsoft Suminfo object supports only local files, not net use ...
5. But he has C + + source code, you can ...
6. I'm sorry that we can't share the whole site with you because it's on the intranet.
7. In order to be responsible for everyone, I read again this paragraph of six months ago code, good rotten. :-)
Gather and use 8. :-)
=================================
<%@ Language=vbscript%>
<%
' *********************************************************
' This file is written by
' kw copyright reserved. :-)
' If you are have any question, directly contacts w/me.
' Some features are just under construction ...
' *********************************************************
%>

<HTML>
<HEAD>
<meta name= "generator" content= "Microsoft Visual Studio 6.0" >
<link rel= "stylesheet" type= "Text/css" href= "/css/mycss.css" >
</HEAD>
<BODY>

<script language=javascript>
<!--
function MouseMove ()
{
var srcelement;
Srcelement=window.event.srcelement;
{
Srcelement.classname = "Coolstyle";
}
}

function Mouseout ()
{
var srcelement;
Srcelement=window.event.srcelement;
{
Srcelement.classname = "Normalstyle";
}
}

-->
</SCRIPT>



<script Language=vbscript RUNAT = server>

' Virtual Root
Fileservername = "Fileserver"
VRoot = "/file"

' Get the "Files collection from current folder
Dim fs, F, F1, FC, S
Set fs = CreateObject ("Scripting.FileSystemObject")

' Begin of Function-to get path info from external
' Get Path parameter from external
spath = Request ("spath")
if (spath = "" or spath = ".") Then
spath = "."
Response.Write "<table class = Tablefilename border=0 width= ' 100% ' >"
Response.Write "<tr align=center>"
shellostring = "Hi, guy, I didn ' t get correct path info, so I can only show you the current folder"
Response.Write "<TD>" & shellostring & "</TD></TR></TABLE>"
End If
' Merge absolute path
Sabpath = Server. MapPath (".") & "/" & Spath
Set F = fs. GetFolder (Sabpath)
' End of function-to get path info from external

Set FC = F.files
' Create Suminfo Object
Dim suminfo
Set suminfo = Server.CreateObject ("Iissample.summaryinfo")

' Which kinds of document should be displayed?
'
bdocchecked = Request.Form ("Doc")
bxdocchecked = Request ("Xdoc")

bpptchecked = Request.Form ("ppt")
bxpptchecked = Request ("Xppt")

bxlschecked = Request.Form ("xls")
bxxlschecked = Request ("Xxls")

btxtchecked = Request.Form ("TXT")
bxtxtchecked = Request ("Xtxt")

bzipchecked = Request.Form ("Zip")
bxzipchecked = Request ("Xzip")

&nb



Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.