Hi everybody,
I have this weired problem with FileSystemObject.
It does not seem to let me access the File objects in
Files collection. I am sure there are files in the folder,
and I have tried it on several folders.
As you can see I am using Javascript,
and here is the bit of my code.
.....................
strFullPath = Request.ServerVariables("APPL_PHYSICAL_PATH"
objFso = Server.CreateObject("Scripting.FileSystemObject"
objFolder = objFso.GetFolder(strFullPath);
objFiles = objFolder.Files;
for (objFile in objFiles)
{
Response.Write(objFile.Name); //Does not write anything back to client
}
......................
Hope you can help.
<Dmitriy>
dbrom@crosswinds.net
I have this weired problem with FileSystemObject.
It does not seem to let me access the File objects in
Files collection. I am sure there are files in the folder,
and I have tried it on several folders.
As you can see I am using Javascript,
and here is the bit of my code.
.....................
strFullPath = Request.ServerVariables("APPL_PHYSICAL_PATH"
objFso = Server.CreateObject("Scripting.FileSystemObject"
objFolder = objFso.GetFolder(strFullPath);
objFiles = objFolder.Files;
for (objFile in objFiles)
{
Response.Write(objFile.Name); //Does not write anything back to client
}
......................
Hope you can help.
<Dmitriy>
dbrom@crosswinds.net