Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
Ja, wie du Dateien runterlädst weisst du ja jetzt schon, das ist kein Problem. Bezüglich des Entpackens musst du wie gesagt mal überlegen, was du willst. Alles selbständig machen oder ein optional vorhandenes Programm verwenden (Winrar)?
#include <iostream>
#include <windows.h>
#include <urlmon.h>
using namespace std;
#pragma comment(lib,"URLMon.lib")
void db()
{
// Datei herunterladen
HRESULT result = URLDownloadToFile(
NULL,
TEXT("http://home.arcor.de/Terra23/DeckButler/DeckButler.zip"), // URL zur Datei
TEXT("C:\\Programme\\DeckButler.zip"), // Lokaler Name der Datei
0,
NULL);
if (result == S_OK)
{
cout << "DeckButler.zip erfolgreich heruntergeladen" << endl;
system("PAUSE");
cout << endl;
}
else
{
cout << "Fehler beim Download" << endl;
system("PAUSE");
}
}
void dat()
{
// Datei herunterladen
HRESULT result2 = URLDownloadToFile(
NULL,
TEXT("http://home.arcor.de/Terra23/DeckButler/Programmdateien.zip"), // URL zur Datei
TEXT("C:\\Programme\\Programmdateien.zip"), // Lokaler Name der Datei
0,
NULL);
if (result2 == S_OK)
{
cout << "Programmdateien.zip erfolgreich heruntergeladen" << endl;
system("PAUSE");
cout << endl;
}
else
{
cout << "Fehler beim Download" << endl;
system("PAUSE");
}
}
void remove()
{
remove("C:\\Programme\\DeckButler.zip");
remove("C:\\Programme\\Programmdateien.zip");
cout << "Dateien geloescht" << endl;
system("PAUSE");
}
int main()
{
db();
dat();
//remove();
}