1. Have you tried your existing code?
Does it work?
Are there any errors given?
You stated what you need to do, you stated your code, but I dont see where
you state a problem with what you have.
At 08:18 AM 3/20/2002 +0000, you wrote:
>sir,
>
>
> I could not understand your reply
>
> "what error if any?
> does the IUSER_Machinename have access to the given resource?"
>
> to my question dated 18th march 2002.
>Please be patient with me.
>
>My question is how to access files from a folder in different drive from
>c:\Inetpub\wwwroot\begaspfiles.
>
>I once again send my question.Please help me.
>
>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.
>by
>magesh
>
>
>---
>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