file is getting deleted
-
hi, every one i have created the file using the createFile. HANDLE temp_file = CreateFile(sourceFileName,GENERIC_WRITE|GENERIC_READ,/*FILE_SHARE_WRITE|FILE_SHARE_READ*/NULL,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_HIDDEN /*FILE_ATTRIBUTE_NORMAL*/,NULL); in windows vista i have created but its getting deleted in windows 8 and windows xp . what will be the reason . Thanking you Sarfaraz
-
hi, every one i have created the file using the createFile. HANDLE temp_file = CreateFile(sourceFileName,GENERIC_WRITE|GENERIC_READ,/*FILE_SHARE_WRITE|FILE_SHARE_READ*/NULL,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_HIDDEN /*FILE_ATTRIBUTE_NORMAL*/,NULL); in windows vista i have created but its getting deleted in windows 8 and windows xp . what will be the reason . Thanking you Sarfaraz
FILE_ATTRIBUTE_HIDDEN . Make sure you can view the hidden files!
-
FILE_ATTRIBUTE_HIDDEN . Make sure you can view the hidden files!
ya i did
-
hi, every one i have created the file using the createFile. HANDLE temp_file = CreateFile(sourceFileName,GENERIC_WRITE|GENERIC_READ,/*FILE_SHARE_WRITE|FILE_SHARE_READ*/NULL,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_HIDDEN /*FILE_ATTRIBUTE_NORMAL*/,NULL); in windows vista i have created but its getting deleted in windows 8 and windows xp . what will be the reason . Thanking you Sarfaraz
sarfaraznawaz wrote:
...but its getting deleted in windows 8 and windows xp .
Which means it is indeed getting created. At what point does the file get deleted?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
sarfaraznawaz wrote:
...but its getting deleted in windows 8 and windows xp .
Which means it is indeed getting created. At what point does the file get deleted?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
My application am creating the file.i am calling the exe for the preview of the file after closing the exe the file is getting dleted,its working fine on windows 7 and vista even am not use the delete file API not the exe which am calling has no dletefile API ... what would be the problem ... Best Regards Sarfaraz
-
My application am creating the file.i am calling the exe for the preview of the file after closing the exe the file is getting dleted,its working fine on windows 7 and vista even am not use the delete file API not the exe which am calling has no dletefile API ... what would be the problem ... Best Regards Sarfaraz
-
ya i am closing handle, if i not close the handle it unable open it its show the message that its has been in use ... thats not the problem its getting deleted as i close the preview exe... Best Regards sarfaraz