You cannot access the client's file system using the FileSystemObject in your ASP code

Source: Internet
Author: User
Http://p2p.wrox.com/topic.asp? Topic_id = 587

What kind of permission are you trying to propagate? FSO can be used to copy contents from one place to another, provided that you have enough permissions to access both the source and destination. but if that permission contradicts to the usage of FSO, then you cannot access those files/folder at all.

Just taken from a website
ASP pages reside and are executed on the Web server, when using FSO to access the file system, you are accessing the web server's file system. you cannot access the client's file system using the FileSystemObject in your ASP code.

one important thing to keep in mind when using the FileSystemObject is permissions! In Windows NT, there are three types of permissions: read, write, and full access. whenever an ASP page attempts to execute some file system command using FSO, the anonymous Web user ID is used: IUSR_machinename (I. E ., if your webserver is named Bob, the user ID is iusr_bob ). if IUSR_machinename doesn't have permissions to read for a participant directory, you cannot use FSO to read the contents of a file in that directory through an ASP page. if IUSR_machinename doesn't have permissions to write for a participant directory, you cannot use FSO to write a file to that directory through an ASP page. if IUSR_machinename doesn't have full access permissions for a participant directory, you cannot use FSO to delete or move a file from that directory through an ASP page.

Read this link, not sure if this helps you in a way. How to Use ADSI to set Automatic inheritance of file/folder Permissions

Cheers!

_________________________
-Vijay g
Strive for perfection

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.