You are here: show all files in the directory, but how to show directory control?? « HTML « IT news, forums, messages
show all files in the directory, but how to show directory control??

Posted by strutsng on 09/30/05 10:14

I want to write an asp page that allows the user to choose the
directory, and it will show all files in that directory.
I used the tag <input type="file">, but this is for selecting a file,
not directory.

<form action="process.asp" method="post">
<p><input type="file" name="mydir">
<p><input type="submit">
</form>

'process.asp
<%
dim fs,fo,x,mydir
set fs=Server.CreateObject("Scripting.FileSystemObject")
mydir = Request.Form("mydir")
set fo=fs.GetFolder(mydir)
for each x in fo.files
Response.write(x.Name & "<br />")
next
set fo=nothing
set fs=nothing
%>


any ideas? please advise. thanks!!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация