tree menu from current directory

P

preet

i tried to find tutorials to build a working tree menu from contents of
current folder but was unable to find any, neither did i find any
working scrit to build on

can anyone suggest something

i am a newbie to javascript but i did manage to come up with something
using filesystemobject

Set fso = Server.CreateObject("Scripting.FileSystemObject")

path = server.mappath("/")
Set root = fso.GetFolder(Path)
Set files = root.files
Set folders = root.SubFolders

response.write "<ul>"
for each folder in folders
response.write "<li>"+folder.name & "</li>"
next
for each file in files
response.write "<li>"+file.name & "</li>"
next
response.write "</ul>"
 
E

Evertjan.

preet wrote on 10 mei 2008 in microsoft.public.inetserver.asp.general:
i tried to find tutorials to build a working tree menu from contents of
current folder but was unable to find any, neither did i find any
working scrit to build on

i am a newbie to javascript but i did manage to come up with something
using filesystemobject

Set fso = Server.CreateObject("Scripting.FileSystemObject")

Do you think this is javascript?

It is VB-script.
can anyone suggest something

Start by learning about scripting, about scripting languages and then about
the Classic ASP platform.

There are many tutorials about those.

Programming is more than using some scriptlines made by another.

And please use the shift key, this is not SMS, but Ssenet.
 
M

Mike Brind [MVP]

preet said:
i tried to find tutorials to build a working tree menu from contents of
current folder but was unable to find any, neither did i find any
working scrit to build on

can anyone suggest something


Google "asp -net directory file listing"
 
E

Evertjan.

preet wrote on 10 mei 2008 in microsoft.public.inetserver.asp.general:
why did i come here for help

This a question? It seeme your shift key is broken.
I would not know if you do not quote what you are replying on.
This is Usenet, not email.
[please always quote on usenet]

You are the only one who can answer the above Q.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top