Błag pomocy! [nie umiem pisać tematów]

0

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

0

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

);

0

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");

0

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ł.

1 użytkowników online, w tym zalogowanych: 0, gości: 1