Hello
I have just changed my partitions from FAT32 to NTFS but also installed Norton system Works.
The problem i have is that the File system Object is not working partially since then.
If i try to read drives it works fine:
<%
'***************** Drive
Set fso = CreateObject("Scripting.FileSystemObject"
Set drives = fso.Drives
For Each driveObject In drives
Response.Write driveObject.DriveLetter & "<BR>"
Next
Set drives = Nothing
Set fso = Nothing
%>
Output:
A
C
D
E
but if i try to read folders or files the browser is never finishes and finnaly my IIS crashes. And i have to reboot the system.
This is never working since then
<%
'***************** File
Set fso = CreateObject("Scripting.FileSystemObject"
Set folder = fso.GetFolder(Server.Mappath("\scanner\"
)
'''Set folder = fso.GetFolder("C:\OriginalData\scanner"
Set files = folder.Files
For Each file in Files
Response.Write file.Name & "<BR>"
Next
Set files = folder.Files
Set file = Nothing
Set fso = Nothing
' Output:
' index.html
' test.asp
%>
I have just changed my partitions from FAT32 to NTFS but also installed Norton system Works.
The problem i have is that the File system Object is not working partially since then.
If i try to read drives it works fine:
<%
'***************** Drive
Set fso = CreateObject("Scripting.FileSystemObject"
Set drives = fso.Drives
For Each driveObject In drives
Response.Write driveObject.DriveLetter & "<BR>"
Next
Set drives = Nothing
Set fso = Nothing
%>
Output:
A
C
D
E
but if i try to read folders or files the browser is never finishes and finnaly my IIS crashes. And i have to reboot the system.
This is never working since then
<%
'***************** File
Set fso = CreateObject("Scripting.FileSystemObject"
Set folder = fso.GetFolder(Server.Mappath("\scanner\"
'''Set folder = fso.GetFolder("C:\OriginalData\scanner"
Set files = folder.Files
For Each file in Files
Response.Write file.Name & "<BR>"
Next
Set files = folder.Files
Set file = Nothing
Set fso = Nothing
' Output:
' index.html
' test.asp
%>