Moving a File

Hi,
i am developing a app for moving a file when a process terminates in WINCE platform.
Is the below mentioned correct????


void main()
{
int rc=0;
WIN32_FIND_DATA fd;
HANDLE hFind;
rc=WaitForSingleObject(*.exe,INFINITE);
while (rc!=0)
{
FindFirstFile(source path),&fd);
if(hFind != INVALID_HANDLE_VALUE)
{
MoveFile(&fd,(TEXT(Destination path),&fd));
do{
MoveFile(&fd,(TEXT(Destination path),&fd));
}while(FindNextFile(hFind,&fd));
}
}
}
Is the below mentioned correct?
No.

moving a file when a process terminates
Which process?
Topic archived. No new replies allowed.