finding subfolder of a folder getting by getFolder method in asp

Posted by Abhisheks.net on Stack Overflow See other posts from Stack Overflow or by Abhisheks.net
Published on 2010-06-17T05:49:50Z Indexed on 2010/06/17 5:53 UTC
Read the original article Hit count: 250

Filed under:
|

hello guys, i am troubling from this problem , i want to find the list of folder but there is some problem , i have a support folder in root directory, first i have the subfolder of this "Support" folder then in each folder i have to find a specific say "x" folder and then in this x folder i want to check each file and folder. i am sending here code . please help me ....

dim fs, fso, fo, s, x, f, filePath, a, sfPath

set fs=Server.CreateObject("Scripting.FileSystemObject")

set fo=fs.GetFolder(Server.MapPath("support/"))

a = Split(pSku,"-",-1)
for each x in fo.SubFolders

         sfPath= "support/" + x.Name + "/" + a(0) + "/" 
        'a(0) contains a folder name

        set s = fs.GetFolder(server.MapPath(sfPath))
        set s = nothing
    next

Please tell me solution ..

© Stack Overflow or respective owner

Related posts about asp-classic

Related posts about vbscript