CFanatic

Go Back   CFanatic > Programming > MFC Programming

Join CFanatic Forum Now

Open each file in a directory and check corrupted files topic posted under MFC Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 07-08-2010, 07:42 AM
Junior Member
 
Join Date: Jul 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Member12 is on a distinguished road
| More
Open each file in a directory and check corrupted files

Hi...

I have a directory which contains all types of files(.doc,.xls,.pdf,.txt,.msg,.xml,.html etc...) and the number files increases day by day. Some files might have been corrupted in the directory and they will not open whenever i try to open. It just shows an error message saying file cannot be opened.

Now i need to write a program to open each file in the directory and close it. Whenever a file doesn't opens, i need to take the file name and store it in a log file or a stack. At the end of the day i will have the file names which are corrupted.

I am able to open the files but could not close them. Please help me how do i close each file and take the files names which did not open....
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed in hooking MS Office File Open/Save Dialog ........ dinu C++ Programming 4 07-09-2010 03:38 AM
How to bypass security check while opening a file? unmeshjoshi Win32 Programming 2 03-18-2010 11:23 PM
Subclassing and hooking the Microsoft Office 2000/2003/2007 File Open / Save Dialog JuggernautMsn Win32 Programming 1 11-24-2009 02:28 AM
tristate check box sunil MFC Programming 1 02-26-2008 02:29 AM
ShellExecute can't open files that WinExplorer can hsifelbmur MFC Programming 0 09-20-2006 03:20 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 01:57 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board