p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: regarding FSO


Message #1 by "timothy R magesh" <magesh_52176@r...> on 18 Mar 2002 06:54:07 -0000

what error if any?

does the IUSER_Machinename have access to the given resource?




At 06:54 AM 3/18/2002 +0000, you wrote:
>Sir,
>     Iam working with FileSystemObject.As you have mentioned in your 
> book(Beginning ASP3.0) Iam
>
>able to retrive the files in the folder BegASPfiles which is under 
>C:\Inetpub\wwwroot\ using the
>
>following code.
><% dim objFSO,strvirpath,strphypath,objFile,objFolder,objFolderContents
>dim objFileItem
>Set objFSO=CreateObject("Scripting.FileSystemObject")
>strvirpath=Request.ServerVariables("PATH_INFO")
>strphypath=Server.MapPath(strvirpath)
>Set objFile=objFSO.GetFile(strphypath)
>Set objFolder=objFile.ParentFolder
>Set objFolderContents=objFolder.Files
>%>
>
>But my Problem is that
>1.I want to retrive and display the files available in the folder called 
>workflow  of D Drive
>
>from C:\Inetpub\wwwroot\BegASPfiles directory itself.
>I have tried the following code.But it is not working properly.
><%
>dim objFSO,strvirpath,strphypath,objFile,objFolder,objFolderContents
>dim objFileItem
>Set objFSO=CreateObject("Scripting.FileSystemObject")
>strphypath="D:\magesh\workflow\376.wav" (I have directly given the 
>Physical path)
>Set objFile=objFSO.GetFile(strphypath)
>Set objFolder=objFile.ParentFolder
>Set objFolderContents=objFolder.Files
>%>
>
>2.I want to retrive the files available in the
>C:\Inetpub\wwwroot\automation.automation is another phsical directory like 
>BegASPfiles.I want to
>
>retrive and display the files available in above said folder.
>
>Please help me how to  code for the above said problem.
>
>---
>Change your mail options at http://p2p.wrox.com/manager.asp or to 
>unsubscribe send a blank email to 


Robert Chartier
Author and Developer
xxx-xxx-xxxx
rob@a...
http://www.santra.com
http://www.aspalliance.com/nothingmn
http://www.15seconds.com/issue/wa.htm#chartier
http://www.aspfree.com/devlinks
http://www.aspfree.com/authors/robert
http://www.aspfriends.com/aspfriends/fanclub-robertchartier.asp


  Return to Index