Check file in use
-
Hi All, I am not able to find out the solution of how to find out whether a file is ready to use or not. I have tried several ways to do this but unable to do the same, please refer me to some solution.
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
-
Hi All, I am not able to find out the solution of how to find out whether a file is ready to use or not. I have tried several ways to do this but unable to do the same, please refer me to some solution.
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
-
Karismatic wrote:
whether a file is ready to use or not.
What does you mean by this??
Regards, Sandip.
What do you mean by file is ready? Saurabh
-
What do you mean by file is ready? Saurabh
I mean one process in writting a file which i want to access but before I open it i want to test whether it is written completely or not. I am using this code but it is not working properly
// attempt to open existing file. FileHandle = CreateFile (FileName, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); // if unable to open the file // then return failure. if (FileHandle == INVALID_HANDLE_VALUE) { // return failure. return (FALSE); } // if FileHandle // close the open file handle. CloseHandle (FileHandle); return TRUE
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job
-
I mean one process in writting a file which i want to access but before I open it i want to test whether it is written completely or not. I am using this code but it is not working properly
// attempt to open existing file. FileHandle = CreateFile (FileName, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); // if unable to open the file // then return failure. if (FileHandle == INVALID_HANDLE_VALUE) { // return failure. return (FALSE); } // if FileHandle // close the open file handle. CloseHandle (FileHandle); return TRUE
Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job