Codeasearch.com - Search your code with us Login | Register | Contact us
  Forums > Asp > Scripting File System Object - Display Subfolder and all files
benaya
Posted on Aug 11, 2007
Join Date: June 2007
Location: India ( Chennai )
Posts: 90
 
Scripting File System Object - Display Subfolder and all files  

<%
Set fso = server.CreateObject("Scripting.FileSystemObject")
aPath = Request.ServerVariables("Path_Translated")
aPath = left(aPath,instrrev(Request.ServerVariables("Path_Translated"),""))

Sub Files(inFolder)
For each item in fso.GetFolder(inFolder).Files
response.Write("<br>"& item)
Next

For each items in fso.GetFolder(inFolder).SubFolders
call Files(items)
Next

End Sub

Files(aPath)
%>


 Hot Discussion
EU regulators want Google to halt new privacy policy...
2G cancellations may prove windfall for BSNL...
Apple to resume iPhone, iPad online sales in Germany...
MNP likely to see more takers following SC ruling on 2G...
3 More IITs Put to Work On Aakash Tablet; Cheap To Get ...
 
 Discussion Topics
IT News
Php
Javascript
Technology Updates
Asp.Net
MySql
Ajax
Html
Fedora
Software Testing
Asp
Java
General
Flash
Ruby on Rails