>Does anyone know how I can copy files from my drive to a "web folder"
>
>I have a big directory tree on a web folder that i have mirrored on my PC and I want to programatically update the "web folder"
>
>Thanks,
>
>Scott Vanden Elzen
What do you mean by Web folder? Is this a directory somewhere available on a web server?
If yes ... then you need to program HTTP post operations with files ... or to use FTP protocol ... which is, I think, the preferable solution.
The FTP solution will require to have an FTP server somewhere that would allow some people to log in.
A domain such as
www.mydomain.com points to a specific directory of the web server. For example, any access to
www.mydomain.com is redirected to D:\INETPUB\WWWROOT\MYDOMAIN\WWW\HTDOCS of the web server. What you need is to get access to this specific directory.
With FTP, you can create accounts that will have access to specific parts of the server such as D:\INETPUB\WWWROOT\MYDOMAIN and all sub-directories.
To program FTP access, you can use the Win32 API with functions such as InternetOpen(), InternetConnect(), FtpSetCurrentDirectory(), FtpPutFile(), FtpGetFile(). You can also use FOCUS.FLL to do such things: there is a brand new series of FTP functions in the new version of it. It's available at
http://www.fastwrite.comHope it helps.
Pat