473,396 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

display files

102 100+
hi.. let say i already have many files and sub-folders in a folder A... how should i display all the files and subfolders..

i should display the partnumbers and subfolders in a page as belows

<u> 123456 </u>
<u> 222222 </u>
<u> 555666 </u>
<u> subfolder-B </u>
<u> subfolder-C </u>

if the user click on the partnumber.. it should prompt them to "open /save"
and if the user click on the subfolder. it should prompt them to the content inside that folder... help thanks
Jul 4 '07 #1
2 1159
lyealain
102 100+
help..expert..help................................ ........
Jul 5 '07 #2
jhardman
3,406 Expert 2GB
Try this to start. It is some code I wrote to list the sub-folders in a particular folder, and then I put the files into a <select></select> drop down list. I know that's not exactly what you are requesting, but I think you will be able to modify my code for your needs.
Expand|Select|Wrap|Line Numbers
  1. set objFSO = server.createObject("scripting.filesystemobject")
  2. myFolderName = objFSO.getParentFolderName(myPath)
  3. response.write myFolderName & "<br>" & vbNewLine
  4. set myFolder = objFSO.getFolder(myFolderName)
  5. for each x in myFolder.subfolders
  6.    response.write x & "<br>" & vbNewLine
  7. next %>
  8. <div><b>Open a file:</b>
  9. <form action="manager.asp" method="post">
  10. <select name="myFile">
  11. <% 
  12. for each x in myFolder.files %>
  13.    <option value="<%=objFSO.getFileName(x)%>"><%=objFSO.getFileName(x)%></option>
  14. <%
  15. next
Jared
Jul 5 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: hoke | last post by:
I want to display plain text files in the browser. The files contain html and javascript and have a .txt extension. This works fine with files with just html. Unfortunately when showing files with...
10
by: Mathias Mink | last post by:
hello ng, i need your help. how can i display ftp-content (files which lies on a ftp-server) on an asp-site? do there anybody have an idea, how can i solve this? at the moment we list the...
0
by: MikeY | last post by:
Hopefully someone can help, I have a listview box where I display my desired files. I single click on the desired file to be renamed and I rename it with a new name. My problem arises when the...
6
by: Sandman | last post by:
I'm having some problem here... I have a javascript I've downloaded that goes through all PNG files and enables the transparency channel in them for IE5.5+ by converting them to SPAN layers with...
3
by: jiayanxiang | last post by:
Is there any sample code to use Javascript to load and display a text file? It will be best if the user can select files using some kind of explorer. If that's complex, a text box to specify the...
1
by: nafogel | last post by:
Hi, I am kinda familiar with html, but i am having a problem. I am working on a menu system for a handheld gaming device (PSP). I want the menu to be able to display all files with a certain...
3
by: active | last post by:
I have a mainmenu menuitem that contains a Recently Used Files menuitem If at design time I include a menuitem in the Recently Used Files menuitem collection it will display OK If I...
1
by: dearprasan | last post by:
I have a custom browser application built in C#. I want to access the Internet Explorer's Cache to display contents on this custom browser application. For example: If the user types "www.msn.com"...
9
by: tomhawkins1 | last post by:
Hi I currently have a site where users can upload files. These files can be doc, wmv, jpeg, xls, dwf, dwf and dwg. These files are uploaded to /home/**user**/uploads and not /home/...
9
by: kkhan5000 | last post by:
Hello, I am new to PHP and have put together the following code just by copying other examples from the web. Now I am stuck and would like to sort and display files alphabetically, and also filter...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.