Connecting Tech Pros Worldwide Help | Site Map

tree menu from current directory

preet
Guest
 
Posts: n/a
#1: Jun 27 '08
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>"




--------------------------
http://www.eecpindia.com
http://www.anchorfx.com
http://forex.eecpindia.com


*** Sent via Developersdex http://www.developersdex.com ***
Evertjan.
Guest
 
Posts: n/a
#2: Jun 27 '08

re: tree menu from current directory


preet wrote on 10 mei 2008 in microsoft.public.inetserver.asp.general:
Quote:
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.
Quote:
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.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
preet
Guest
 
Posts: n/a
#3: Jun 27 '08

re: tree menu from current directory


why did i come here for help

*** Sent via Developersdex http://www.developersdex.com ***
Mike Brind [MVP]
Guest
 
Posts: n/a
#4: Jun 27 '08

re: tree menu from current directory



"preet" <preetkanwaljitwrote in message
news:unCvXFqsIHA.2188@TK2MSFTNGP04.phx.gbl...
Quote:
>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"

--
Mike Brind
Microsoft MVP ASP/ASP.NET


Evertjan.
Guest
 
Posts: n/a
#5: Jun 27 '08

re: tree menu from current directory


preet wrote on 10 mei 2008 in microsoft.public.inetserver.asp.general:
Quote:
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.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Closed Thread