Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FSO not working after converted to NTFS.

Status
Not open for further replies.

level1

Programmer
Apr 16, 2002
60
GB
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(&quot;Scripting.FileSystemObject&quot;)


Set folder = fso.GetFolder(Server.Mappath(&quot;Athens-Hardcore&quot;))
'Set folder = fso.GetFolder(&quot;C:\Documents and Settings\All Users\Documents\test\&quot;)
'Set folder = fso.GetFolder(&quot;D:\Test\&quot;)
'Set folder = fso.GetFolder(Server.Mappath(&quot;\Athc_Downloads\Greek\&quot;))


Set subFolders = folder.SubFolders



For Each folderObject in SubFolders
Response.Write &quot;<font color=red>Folder:&quot;&folderObject.Name & &quot;</font><BR>&quot;

For Each file in folderobject.Files
Response.Write &quot;Folder:&quot;&folderObject.Name & &quot;<font color=blue> Files :&quot;&file.Name & &quot;<BR>&quot;


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
 
check the security settings on the porperties of the folder or folders your script work with, and change them if necesary

A+, MCP, CCNA
marbinpr@hotmail.com

&quot;I just know that I know nothing&quot;
Socrates (469-399 B.C.E.)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top