Hi everyone
I recently converted through wnXP pro my FAT32 partitions to NTFS.
I was using the following script to read files and folders for a shared area of my computer but after the conversion is not working.
<%
'***************** Folder
Set fso = CreateObject("Scripting.FileSystemObject"
Set folder = fso.GetFolder(Server.Mappath("Athens-Hardcore"
)
'Set folder = fso.GetFolder("C:\Documents and Settings\All Users\Documents\test\"
'Set folder = fso.GetFolder("D:\Test\"
'Set folder = fso.GetFolder(Server.Mappath("\Athc_Downloads\Greek\"
)
Set subFolders = folder.SubFolders
For Each folderObject in SubFolders
Response.Write "<font color=red>Folder:"&folderObject.Name & "</font><BR>"
For Each file in folderobject.Files
Response.Write "Folder:"&folderObject.Name & "<font color=blue> Files :"&file.Name & "<BR>"
Next
Next
' Set files = folder.Files
' Set file = Nothing
Set subFolders = Nothing
Set folder = Nothing
Set fso = Nothing
%>
I also left the commented areas to show you i tried both virtual an physical paths with various taret folder combinations even with shared areas for all users. But i believe since the conversion took place the security doesnot allow iis to use the FSO.
Any ideas where to look at will be appreciated.
thanks
I recently converted through wnXP pro my FAT32 partitions to NTFS.
I was using the following script to read files and folders for a shared area of my computer but after the conversion is not working.
<%
'***************** Folder
Set fso = CreateObject("Scripting.FileSystemObject"
Set folder = fso.GetFolder(Server.Mappath("Athens-Hardcore"
'Set folder = fso.GetFolder("C:\Documents and Settings\All Users\Documents\test\"
'Set folder = fso.GetFolder("D:\Test\"
'Set folder = fso.GetFolder(Server.Mappath("\Athc_Downloads\Greek\"
Set subFolders = folder.SubFolders
For Each folderObject in SubFolders
Response.Write "<font color=red>Folder:"&folderObject.Name & "</font><BR>"
For Each file in folderobject.Files
Response.Write "Folder:"&folderObject.Name & "<font color=blue> Files :"&file.Name & "<BR>"
Next
Next
' Set files = folder.Files
' Set file = Nothing
Set subFolders = Nothing
Set folder = Nothing
Set fso = Nothing
%>
I also left the commented areas to show you i tried both virtual an physical paths with various taret folder combinations even with shared areas for all users. But i believe since the conversion took place the security doesnot allow iis to use the FSO.
Any ideas where to look at will be appreciated.
thanks