Nie wiem czy bylo cos takiego na forum ale ... nie mam czasu bo jest mi to pilnie potrzebne!
jak z poziomu C (DOS) uruchomic program pod windowsa ????
Jak to trzeba zrobic!
Nie opisze w C dlatego nie mam pojecia a jest mi to do szkoly potrzebne
Nie wiem czy bylo cos takiego na forum ale ... nie mam czasu bo jest mi to pilnie potrzebne!
jak z poziomu C (DOS) uruchomic program pod windowsa ????
Jak to trzeba zrobic!
Nie opisze w C dlatego nie mam pojecia a jest mi to do szkoly potrzebne
Dolacz includea shellapi.h i tam masz funkcje
HINSTANCE ShellExecute(
HWND hwnd, // handle to parent window
LPCTSTR lpOperation, // pointer to string that specifies operation to perform
LPCTSTR lpFile, // pointer to filename or folder name string
LPCTSTR lpParameters, // pointer to string that specifies executable-file parameters
LPCTSTR lpDirectory, // pointer to string that specifies default directory
INT nShowCmd // whether file is shown when opened
);
Chodzi ci o prawdziewgo dosa czy konsolke (okienko MsDOS) ?? bo jak o to pierwsze to nie ma szans, a drugie to wystarczy system("mkdir dupa");
Dwie poniższe chyba są najprostsze do wykorzystania (process.h)...
int execv(char *path, char *argv[]);
int execvp(char *path, char *argv[]);
// + help (f1) i wszystko będziesz juz miał.