I am using cwRsync under Windows to synchronize directories. I call it via command line in Visual C++ code (Visual Sudio 2008). I use CreateProcess() function to execute it. TROUBLE: On Windows XP, the synchronisation works. On Windows 7 and 8, the synchronisation doesn't operate. When I directly test the command line under cmd.exe it works.
What is the problem of CreateProcess inside Windows 7 and 8? There is no error message because the function returns OK.
Koto
I found the solution. The trouble is about my use of CreateProcess() which works in XP but not in Win7
Before :
lpApplicationName = NULL
lpCommandLine = C:\cwRsync\rsync.exe --recursive /cygdrive/d/documents/ /cygdrive/f/documents/
Windows XP => OK but Windows 7 => KO
Now :
lpaApplicationName = C:\cwRsync\rsync.exe
lpCommandLine = --recursive /cygdrive/d/documents/ /cygdrive/f/documents/
Windows XP => OK and Windows 7 => OK too