Delete readonly files with c++ 
Author Message
 Delete readonly files with c++

LPSHFILEOPSTRUCT ShellFile;
ShellFile=new SHFILEOPSTRUCT;
ShellFile->hwnd=m_hWnd;
ShellFile->wFunc=FO_DELETE;
ShellFile->pFrom="C:\\A\\B\\*.*";    
ShellFile->pTo=NULL;
ShellFile->fFlags=FOF_NOCONFIRMATION;

SHFileOperation(ShellFile);



Sat, 01 Oct 2005 20:23:39 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. nag f95 bug on openning file on readonly filesytem ? ( and about the non-standard readonly file specifier)

2. Delete all files in Dir or delete Dir

3. TPS file driver - ReadOnly+DenyNone

4. Opening files in READONLY mode

5. Clarion4: how delete a file of system , readonly or hidden?

6. Delete file on file server

7. need help with rename-file/delete-file

8. C++ question (delete/new instead of malloc/free)

9. passing a CString array from visual c++ exe file to visual fortra n DLL file

10. Delete files on Windows--C:\Recycle or file delete?

11. Delete key on keyboard deleting records

12. Deleted procs not deleted???

 

 
Powered by phpBB® Forum Software