salut à tous
j'aimerai convertir certains de mes batchs en exe
la j'ai un probleme avec les parametres de SHELLEXECUTEINFO qui visiblement ne sont pas pris en compte
je n'ai ni message d'erreur ni warning et le fichier rsync.log ne se crée pas l'execution rsync n'a pas l'air correct non plus
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 char command[255] = "C:\\Program Files\\cwRsyncServer\\bin\\rsync.exe"; char parameter [255] = "-aruv -F --exclude-from=/cygdrive/c/WINNT/exclude.conf \"/cygdrive/f/martins\" \"/cygdrive/z/synchro/profiles/\" >c:\\rsync.log"; int main() { using namespace std; int a = 0; SHELLEXECUTEINFO ExecuteInfo[a]; memset(&ExecuteInfo[a], 0, sizeof(ExecuteInfo[a])); ExecuteInfo[a].cbSize = sizeof(ExecuteInfo[a]); ExecuteInfo[a].fMask = 0; ExecuteInfo[a].hwnd = 0; ExecuteInfo[a].lpVerb = "open"; ExecuteInfo[a].lpFile = command; ExecuteInfo[a].lpParameters = parameter; ExecuteInfo[a].lpDirectory = 0; ExecuteInfo[a].nShow = SW_SHOW; ExecuteInfo[a].hInstApp = 0; if(ShellExecuteEx(&ExecuteInfo[a]) == FALSE) { }
rogerio
Partager