Retrieving Files from the Web in C++
Posted on 2005-03-09
I actually have two questions, if you don't mind. :)
1. How do you download a file from the web in c++ code. All I can do now is open up a file with the default browser, but it still asked the user where to save the file, and if it exists, whether they want to overwrite files. I just want the user to be able to click a button and the file will download (to where the application is) and automatically rewrite/replace any previous files without prompting the user.
2. I want to be able to remove a directory in C++, again, without prompts. I tried
Console::WriteLine("RD /S /Q C:\Progra~1\World~1\Interface");
Perhaps i forgot to use "\\" instead of "\". Regardless, I would enjoy not having to use a console. :)
Thanks for all your help, time and time again. :)