|
From: preet on 10 May 2008 09:25 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 ***
From: Evertjan. on 10 May 2008 09:35 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. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
From: preet on 10 May 2008 09:59 why did i come here for help *** Sent via Developersdex http://www.developersdex.com ***
From: Mike Brind [MVP] on 10 May 2008 12:20 "preet" <preetkanwaljit> wrote in message news:unCvXFqsIHA.2188(a)TK2MSFTNGP04.phx.gbl... >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
From: Evertjan. on 10 May 2008 14:01 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. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
|
Pages: 1 Prev: Opening a New Window with no toolbars etc Next: Create Window width new Session: solution |