C # FTP upload/download (1 ),
Build an FTP server
We have recently implemented this function: uploading and downloading FTP servers, collecting some information, on the c podcast, I saw an article well written by the author nicknamed "silly girl and technology". Some people think it is not very detailed, I made some modifications and put them here to share with you.
1. First, create a user. Of course, you do not want to create a user who uses the current logon user or can log on to the current user. (Right-click "computer" -- manage --)
2. install required IIS components (control panel -- program -- enable or disable Windows)
3. Create a local folder as the FTP server
4. Set Properties of the folder
5. Open our IIS, add an FTP site, and add the corresponding configuration to start -- search for iis -- open the iis Information Service (IIS) Manager
Now that we have set up our FTP server, we can try to access it to see if it has been successfully set up.
1. View in Resource Manager
We can see that the FTP \ new file I created locally can be accessed.
You can also access
But note: Our company uses the proxy to access the Internet. In this case, the FTP server cannot be accessed. After the proxy is disabled, it can be accessed.
Test successful