Check if File is hidden or system file

I used the following to check :
return !file.isHidden();is that sufficient to test if File is hidden ?
and how about checking for system files in windoz and Mac os x?
thanks.

What does the API doc for File say about the above
method?
Are there methods in the File class to check for
System files? If not (and I am waiting for you
answer on this), then you can not do it directly
using a File object, but would have to rig something
using Runtime.exec and system dependent command line
operations.Let me explain more my concern:
I'm filling a JTree with user system files/folders and I'm using the File class for this purpose.
I noticed the JTree displays also hidden & system files which will confuse the user of my application.
I first thought to use some File method & isHidden() was first candidate.I first tried return file.isHidden() but that's not working ..i tried return !file.isHidden() which seems to do better but I'm still incapable of solving this issue.
You mentioned using Runtime.exec() but didn't tell what commands to use to check system & hidden files (this should take in consideration the OS win or Mac).
can some one suggest me a good and simple solution for this problem ?
thanks.

Similar Messages

  • Itunes points to wrong files - points to random system files instead of mp3

    I noticed this about a year and a half ago when my ipod would have an error that some of the files couldnt be transfrered. Upon further inspection, it seems itunes occasionally gets confused about where files are located. The files will look fine in itunes but wont play. If I right click on them and chose "show in finder" the file that should be an mp3 in my library, is actually pointed at ical/contents/resources/italian.Ipoj/iCal Help/gfx/priority.gif
    Which is totally bonkers. It's a totally random operating file.
    Now I could go in and delete and re-import these files. Eventually that is what I have ended up doing in the past. But now it's happened to about 700 files (out of about 18,000) and it would take a century for me to go through each track and find out which ones that has happened to.
    I know there are some applescripts out there for missing and dead tracks, but I can't seem to find one that just checks that we're pointing to the CORRECT file. keep in mind, these correct files actually are where they are supposed to be. Itunes is just linking to the wrong files.
    Message was edited by: James Campbell

    I am experiencing the same problem and after restoring from backup I either still have some wrong pointers or the problem is returning.
    One way to find out which tracks are pointing to random files is to sync your whole music library either in one go if it's small enough or in parts to an iphone or ipod. You will then get a dialog with all the files that won't play on the device.
    How do I relink them manually? Can't work it out.

  • Getting Iphoto files out of Previous System file

    I upgraded to Leopard using the Archive choice. My iphoto and iweb files are in the Previous System file under User and won't load when I load the programs. How do I get them to load. How much free disk space do I need on my HD

    axk2
    You're going to have to change the permissions on that path to get access to the files there.
    You can do this using the Get Info Window, just make yourself the owner of the folders in turn. When you get to your Home Folder, drag the foldes you want to the desktop. When you've that done post back and we can get you the rest of the way there.
    Regards
    TD

  • How can I repair Vista system files with only a Toshiba recovery disc??

    I have pretty much come to the conclusion that the reason I can't install Vista service pack 2 is due to some corrupt vista files. I ran the program that checks that system files and it said some are corrupt. There are some things I can't do, like turn on the Windows firewall even from that special adminostrar screen, or if I schedule a check disc scan, when I reschedule it for start up, it doesn't do it at startup. I had a Red Screen about a year ago, and it did a bunch of stuff and at the end, it said you had a major event and contact your administartor. Well, I am the administartor, lol. Anyway, it worked fine and I attribute these problems to that event.
    Vista discs come with a repair option. All I have is the Toshiba disc that lets you reinstall the Toshiba and Vendor applications OR reformat the hard drive. I am not going to spend days trying to get my system back to where it is by tracking down everything I have installed especially when its working. Is there a work around? I will buy a Vista Home Premium disc if I have to before refortmatting. I have an x205-S9349 with Vista Home Premium. THANKS!

    Satellite X205-S9349 
    I ran the program that checks that system files and it said some are corrupt.
    Sounds like System File Checker.
       How to use the System File Checker tool to troubleshoot missing or corrupted system files on Windows...
    To follow up...
       How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program ge... 
    can't install Vista service pack 2
    Maybe this helps.
       How to troubleshoot Windows Vista and Windows Server 2008 service pack installation issues
    Notice that you can get free support from Microsoft.
       Free Unlimited Support Vista Service Pack 2 sp2
    -Jerry

  • Officejet 4635 "operating system files missing"

    I've installed the driver software for the officejet 4635 for windows 8 64 bit, but in setting the printer up it gives me the following error message:
    "Operating system files missing
    The following operating system files are missing and are required to install your printer. Please repair the files using your operating system CD and click Retry to continue installation:
    C:\Windows\inf\ntprint.inf"
    I've tried reinstalling the software. The computer seems to recognize the device as a fax, but not as a scanner or printer. Anyone wanna help me out? 

    Hi @pgreene88 ,
    I see that you are getting a operating system error, during the installation of the printer. I can help you with this.
    System File Checker is a utility in Windows that allows users to scan for corruptions in Windows system files and restore corrupted files. Use the System File Checker tool to repair missing or corrupted system files.
    If you get the same results, please consult your computer manufacturer for further assistance.
    Have a wonderful day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • A way to search System Files and by File Name as default?

    Hello.
    Is there a way I can make the default search both include searching by File Name and searching System Files?
    I know I can make a saved search, but this just is one extra step. I'd like to the default behavior of the Finder be to search system files, and default to searching by File Name rather than contents.
    Thanks.

    If you bring up the Finder window search using Command-Shift-F you will get the default of a file name search (unfortunately it has no criteria whatsoever, so if you want to modify the search with an added criterion you have to click the wee little + icon).
    There is no way to automatically include system files.
    Francine
    Francine
    Schwieder

  • Spotlight Treating Files as System Files

    hi,
    after ugrading to snowleopard i noticed that spotlight fails to show certain files when i type their names in the search field. i have already tried the obvious solutions such as rebuilding the index without any success.
    few things i noticed:
    - the files are on a volume mounted on /Volumes/Data
    - the files are in a subdirectory "private"
    - they are contained in the spotlight index
    weird thing is that if i do an mdls on one of the files spotlight does not show i am getting this:
    mdls /Volumes/Data/private/entertainment/music/nightwish/albums/Oceanborn/Sleeping\ Sun.mp3
    kMDItemContentCreationDate = 2008-11-11 15:46:43 +0100
    kMDItemContentModificationDate = 2009-09-14 14:26:42 +0200
    kMDItemContentType = "public.mp3"
    kMDItemContentTypeTree = (
    "public.mp3",
    "public.audio",
    "public.audiovisual-content",
    "public.data",
    "public.item",
    "public.content"
    kMDItemDisplayName = "Sleeping Sun.mp3"
    kMDItemFSContentChangeDate = 2009-09-14 14:26:42 +0200
    kMDItemFSCreationDate = 2008-11-11 15:46:43 +0100
    kMDItemFSCreatorCode = ""
    kMDItemFSFinderFlags = 0
    kMDItemFSHasCustomIcon = 0
    kMDItemFSInvisible = 0
    kMDItemFSIsExtensionHidden = 0
    kMDItemFSIsStationery = 0
    kMDItemFSLabel = 0
    kMDItemFSName = "Sleeping Sun.mp3"
    kMDItemFSNodeCount = 0
    kMDItemFSOwnerGroupID = 0
    kMDItemFSOwnerUserID = 502
    kMDItemFSSize = 6023788
    kMDItemFSTypeCode = ""
    kMDItemKind = "MP3 Audio File"
    *kMDItemSupportFileType = (*
    MDSystemFile
    why is it considered a system file in kMDItemSupportFileType? i also noticed when i do an mdls on the "private" directory it is also considered a system file/folder.
    all other files that are shown by spotlight do not have the MDSystemFile type. is there any way i can get this fixed so that spotlight does not consider any of my files on /Volumes/Data system files anymore and shows them?
    any help is appreciated...
    cheers
    --bruno

    The problem is the name of the folder "private"--evidently Spotlight will only regard a folder of that name, no matter where it is, as the same class as the official /private folder, which is a container for system files. While Spotlight will index anything it considers a system file, it won't display search results containing such a file unless you explicitly tell it to.
    I'm afraid you only have two choices:
    1. Rename "private" to something else
    2. Do your Spotlight searches by Command-F and put the option for System Files in your drop down list so you can access it reasonably quickly
    I suspect the easiest is to just rename the folder, dropping the "e" will solve the problem. Indeed, "privat" is a perfectly good word in several languages. Pretend you speak Catalan, that's kind of classy.
    Francine
    Francine
    Schwieder

  • Copy hidden system files from admin to client?

    I'm preparing for a large rollout of Macs and one of our apps hides its license file with a . in front of the file name. Rather than type in the serial number 100 times, I'd like to simply blast out the license file via ARD to same relative location, but of course it's not visible to the OS/ARD. The containing folder is not hidden, it's just a single file that needs to be copied.
    Is there any way to do this, perhaps by Unix cp command? How do you tell the remote computer to source the file from my computer, since the command is run locally on the remote machine. (Whew.)
    Thank you.

    Lots of people are unaware of those extra options in the Finder Search. The other one that's commonly needed but not known about is the option to search system files, which is also under "other". You may want to check the "In Menu" box for those two so that they are available directly from the pulldown menu; they're both needed pretty often for many people.
    Happy to have been of help.
    Cheers.

  • I have a bunch of system files that should be hidden, but are visible in my finder folder (for example, a file called ".Ds_Store appears). How can I hide these from view?

    I have a macbook pro, and a few months ago I had to find some hidden system files. I asked a discussion question, and someone helped me to display all the hidden folders. However, now I can't figure out a way to hide these files again (I no longer need to see them). How do I do this? It's not just one file, but a whole bunch of files.

    Open the Script Editor or AppleScript Editor in one of the subfolders of Applications and run the following:
    tell application "Finder" to quit
    if (do shell script "defaults read com.apple.finder AppleShowAllFiles") is "1" then
    do shell script "defaults write com.apple.finder AppleShowAllFiles 0"
    else
    do shell script "defaults write com.apple.finder AppleShowAllFiles 1"
    end if
    delay 2
    tell application "Finder" to run
    If you change your mind later, run the script again.
    (64381)

  • How to Stop Finder WEBDAVFS from requesting .hidden, ._Directory , ._FileName files after Remotes File System Mount has happened?

    Hi,
    After I have mounted remote directory on Finder , Finder requests for all file types including .hidden, ._Directory , ._FileName files and all such files which is creating havoc to the performance of the Finder.
    Case 1 : In one Directory I have 500 files+directories. When the Finder tries to fetch the directory content it is sending requests for even .hidden, ._Directory , ._FileName files and so the request count grows exponentially causing breakdown for Finder. Its taking 10 mins to load the directory. The same directory request when posted by Transmit by Panic it loads within 30 secs. Transmit do not send request for ._*  files/directory.
    I am rejecting request for all hidden file request but they keep on coming in thousands.
    Case 2 : Finder tries to refresh the file listing whenever the Finder window is brought to Focus.
    Any help is appreciated. When I try to use find for such files to delete I see no listing! 
    Used : ls -1aR /Volumes/InquiraWebDAV
    To demostrate the problem please check example log :
    Response XML1:
    </D:multistatus>
    Client IP =17.1.1.1 clientHeaderAgent=WEBDAVFS/1.9.0 (01908000) DARWIN/11.3.0 (X86_64)
    DSID from cache =281950648 and path=/CUSTOMER_RELATIONS_VIEW/untitled folder/.DS_Store
    here4
    Mar 7, 2012 12:51:17 PM org.apache.catalina.core.ApplicationContext log
    INFO: webdav: [PROPFIND] /CUSTOMER_RELATIONS_VIEW/untitled folder/.DS_Store
    Client IP =17.1.1.1 clientHeaderAgent=WEBDAVFS/1.9.0 (01908000) DARWIN/11.3.0 (X86_64)
    DSID from cache =281950648 and path=/CUSTOMER_RELATIONS_VIEW/untitled folder/._untitled folder 3
    here4
    Mar 7, 2012 12:51:17 PM org.apache.catalina.core.ApplicationContext log
    INFO: webdav: [PROPFIND] /CUSTOMER_RELATIONS_VIEW/untitled folder/._untitled folder 3
    Client IP =17.1.1.1 clientHeaderAgent=WEBDAVFS/1.9.0 (01908000) DARWIN/11.3.0 (X86_64)
    DSID from cache =281950648 and path=/CUSTOMER_RELATIONS_VIEW/untitled folder/._untitled folder 2
    here4
    Mar 7, 2012 12:51:17 PM org.apache.catalina.core.ApplicationContext log
    INFO: webdav: [PROPFIND] /CUSTOMER_RELATIONS_VIEW/untitled folder/._untitled folder 2
    Client IP =17.1.1.1 clientHeaderAgent=WEBDAVFS/1.9.0 (01908000) DARWIN/11.3.0 (X86_64)
    DSID from cache =281950648 and path=/CUSTOMER_RELATIONS_VIEW/untitled folder/._untitled folder
    here4
    Mar 7, 2012 12:51:17 PM org.apache.catalina.core.ApplicationContext log
    INFO: webdav: [PROPFIND] /CUSTOMER_RELATIONS_VIEW/untitled folder/._untitled folder
    Client IP =17.1.1.1 clientHeaderAgent=WEBDAVFS/1.9.0 (01908000) DARWIN/11.3.0 (X86_64)
    DSID from cache =281950648 and path=/CUSTOMER_RELATIONS_VIEW/untitled folder/
    here4
    Mar 7, 2012 12:51:17 PM org.apache.catalina.core.ApplicationContext log
    INFO: webdav: [PROPFIND] /CUSTOMER_RELATIONS_VIEW/untitled folder/
    inside doProfind() path=/CUSTOMER_RELATIONS_VIEW/untitled folder/
    req.getHeader('Depth')=1
    Request XMl:<?xml version="1.0" encoding="utf-8" standalone="no"?><D:propfind xmlns:D="DAV:">
    <D:prop>
    <D:getlastmodified/>
    <D:getcontentlength/>
    <D:creationdate/>
    <D:resourcetype/>
    </D:prop>
    </D:propfind>
    Element Node=#text |
    Element Node=D:prop | null
    Element Node=#text |
    {281950648=[AOS_VIEW, APPLECARE_ALLGEOS, CUSTOMER_RELATIONS_VIEW, EXECUTIVE_RELATIONS_VIEW]}281950648
    temp=/AOS_VIEW/  ###   temp1=/CUSTOMER_RELATIONS_VIEW/UNTITLED FOLDER/  isAllowed=false
    temp=/APPLECARE_ALLGEOS/  ###   temp1=/CUSTOMER_RELATIONS_VIEW/UNTITLED FOLDER/  isAllowed=false
    temp=/CUSTOMER_RELATIONS_VIEW/  ###   temp1=/CUSTOMER_RELATIONS_VIEW/UNTITLED FOLDER/  isAllowed=true
    href/InquiraWebDAV
    rewriteUrl(href)=/InquiraWebDAV/CUSTOMER_RELATIONS_VIEW/untitled%20folder/
    resourceName=untitled folder  type=0
    properties=java.util.Vector$1@2aa05bc3
    property=getlastmodified
    property=getcontentlength
    property=creationdate
    property=resourcetype
    newPath=/CUSTOMER_RELATIONS_VIEW/untitled folder/untitled folder
    newPath=/CUSTOMER_RELATIONS_VIEW/untitled folder/untitled folder 2
    newPath=/CUSTOMER_RELATIONS_VIEW/untitled folder/untitled folder 3
    Response XML1:
    <?xml version="1.0" encoding="utf-8" ?>
    <D:multistatus xmlns:D="DAV:"><D:response><D:href>/InquiraWebDAV/CUSTOMER_RELATIONS_VIEW/untit led%20folder/</D:href>
    <D:propstat><D:prop><D:creationdate>2012-03-06T22:56:52Z</D:creationdate>
    <D:resourcetype><D:collection/></D:resourcetype>
    </D:prop>
    <D:status>HTTP/1.1 200 OK</D:status>
    </D:propstat>
    <D:propstat><D:prop><D:getlastmodified/><D:getcontentlength/></D:prop>
    <D:status>HTTP/1.1 404 Not Found</D:status>
    </D:propstat>
    </D:response>

    Here is a related discussion but no solution.
    https://discussions.apple.com/message/8216700#8216700
    Do any one know if Apple Support has any solution for this problem or How do I get expert help from them?

  • Check and Verify USMT IMG file before formatting the system

    Hi Team,
    We are using 2 phase approach for migrating from XP to windows 8.1 U1 since we have Config manager 2012 R2. Its a refresh, replace and baremetal scneario
    So 1st TS will just do user state backup using ADK8.0 USMT and backup the data on SMP.
    2nd TS will format the system, install OS,install Apps and then restore USMT data from SMP
    I am looking for some way to check the usmt data on SMP for the system before system is formatted. Can anyone give some pointers to do that in 2nd task sequence? I want if data (img file) is not verified, system should not format and TS should fail.
    Regards,

    Hi,
    Do not use the option /c .
    If an errors occur during the capture process, the ScanState command will not continue to run and the TS will fail.
    For more information, please review the link below:
    ScanState Syntax
    http://technet.microsoft.com/en-us/library/dd560781(v=WS.10).aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • I accidentally deleted hidden system files! Please help!

    Hi guys.
    Well after purchasing a mint MBP today running Mountain Lion, I wanted to "tidy up" the desktop and Finder. I saw many hidden files and thought it was very peculiar as my iMac hasn't got anything of the kind. I thought it could have been some files from a USB that were left there from previous usage. Anyway, I've ended up deleting key system files which now causes the MacBook to fail boot and keep restarting.
    I've attempted the highly recommended "Command R" function which gave me a choice of Time Machine Restore (system comes up with no backups), re-installation of Lion (which won't work because the system is running Mountain Lion) and a Disk Utility repair (which does its job but makes no difference on start up). I feel really upset and annoyed. The system had great installations of key apps I needed. I'd be sad to loose them but would be happy to just get the system rebooted and running from scratch.
    The system is a late 15" 2011 MACBOOK PRO with an i7 Quad 2.44 (or 2.66) processor, 4GB memory and a 750GB hard drive.
    What can I do? Is it just a case of take it to Apple so they can reboot it for you? And if that's the case will I be charged?
    Many thanks for the advice.
    Apologies if this is something you have heard before, it's a horrible feeling and I just want it fixed.
    Thanks.
    Hal.

    To install Lion that belongs to you will require you to repartition the drive first. You cannot do a simple reinstall of Lion over a Mountain Lion system. You will need to follow this guide instead:
    Install Lion/Mountain Lion on a New HDD/SDD
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Internet Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND-OPTION- R keys until a globe appears on the screen. Wait patiently - 15-20 minutes - until the Recovery main menu appears.
    Partition and Format the hard drive:
    1. Select Disk Utility from the main menu and click on the Continue button.
    2. After DU loads select your external hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Install button. Be sure to select the correct drive to use if you have more than one.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    This is the procedure you must go through because your hard drive does not have a Lion version of the Recovery HD.

  • Satellite L305D-S593​4 stuck on "checking system files" screen

    Hey guys, so let me start off that I'm really not tech savvy and I've had this laptop since around 2009 and over the years it's had some problems but the most recent being that whenever I try to start up the computer, it'll give me a quick options menu and then enter into the "checking system files" screen, which is fine and everything until it's at 56%. It does this every time I try to restart the laptop and it just completley stops there even if I leave it alone for an hour or two. Hope you guys can help with my dilemma and thanks in advance!

    Hi ! See if any thing here works for you!
    http://answers.microsoft.com/en-us/windows/forum/w​indows_7-system/laptop-stuck-at-checking-file-syst​...
    http://answers.microsoft.com/en-us/windows/forum/w​indows_7-performance/stuck-at-checking-file-system​...
    PS If you have some bad sectors;which I'm suspecting you might have, this might take several hours to complete. When I run mine it takes nearly 3 hours and I have no bad sectors.
    Dokie!
    I Love my Satellite L775D-S7222 Laptop. Some days you're the windshield, Some days you're the bug. The Computer world is crazy. If you have answers to computer problems, pass them forward.

  • System File Checker errors "tsprint-datafile.dat"

    I keep getting the sfc /scannow error referring to "tsprint-datafile.dat" file.
    I don't have another Windows 7 system at the moment to copy a good file over.  Even if I do, I suppose this file could be system specific.
    Below is the last section where the errors happened after running the command 'findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"' as instructed at http://support.microsoft.com/kb/929833#CBS%20log.
    2014-02-17 11:18:11, Info                  CSI    00000333 [SR] Cannot repair member file [l:40{20}]"tsprint-datafile.dat" of tsprint.inf, Version
    = 6.1.7601.17514, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type = [l:24{12}]"driverUpdate", TypeName neutral, PublicKey neutral in the store, hash mismatch
    2014-02-17 11:18:14, Info                  CSI    00000335 [SR] Cannot repair member file [l:40{20}]"tsprint-datafile.dat" of tsprint.inf, Version
    = 6.1.7601.17514, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type = [l:24{12}]"driverUpdate", TypeName neutral, PublicKey neutral in the store, hash mismatch
    2014-02-17 11:18:14, Info                  CSI    00000336 [SR] This component was referenced by [l:184{92}]"Microsoft-Windows-Client-Drivers-Package~31bf3856ad364e35~x86~~6.1.7601.17514.TSprint-Driver"2014-02-17
    11:18:14, Info                  CSI    00000338 [SR] Verify complete
    2014-02-17 11:18:14, Info                  CSI    00000339 [SR] Verifying 100 (0x00000064) components
    2014-02-17 11:18:14, Info                  CSI    0000033a [SR] Beginning Verify and Repair transaction
    2014-02-17 11:18:21, Info                  CSI    0000033c [SR] Verify complete
    2014-02-17 11:18:21, Info                  CSI    0000033d [SR] Verifying 100 (0x00000064) components
    2014-02-17 11:18:21, Info                  CSI    0000033e [SR] Beginning Verify and Repair transaction
    2014-02-17 11:18:25, Info                  CSI    00000340 [SR] Verify complete
    2014-02-17 11:18:25, Info                  CSI    00000341 [SR] Verifying 100 (0x00000064) components
    2014-02-17 11:18:25, Info                  CSI    00000342 [SR] Beginning Verify and Repair transaction
    2014-02-17 11:18:27, Info                  CSI    00000344 [SR] Verify complete
    2014-02-17 11:18:28, Info                  CSI    00000345 [SR] Verifying 100 (0x00000064) components
    2014-02-17 11:18:28, Info                  CSI    00000346 [SR] Beginning Verify and Repair transaction
    2014-02-17 11:18:33, Info                  CSI    00000348 [SR] Verify complete
    2014-02-17 11:18:34, Info                  CSI    00000349 [SR] Verifying 44 (0x0000002c) components
    2014-02-17 11:18:34, Info                  CSI    0000034a [SR] Beginning Verify and Repair transaction
    2014-02-17 11:18:36, Info                  CSI    0000034c [SR] Verify complete
    2014-02-17 11:18:36, Info                  CSI    0000034d [SR] Repairing 1 components
    2014-02-17 11:18:36, Info                  CSI    0000034e [SR] Beginning Verify and Repair transaction
    2014-02-17 11:18:36, Info                  CSI    00000350 [SR] Cannot repair member file [l:40{20}]"tsprint-datafile.dat" of tsprint.inf, Version
    = 6.1.7601.17514, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type = [l:24{12}]"driverUpdate", TypeName neutral, PublicKey neutral in the store, hash mismatch
    2014-02-17 11:18:36, Info                  CSI    00000352 [SR] Cannot repair member file [l:40{20}]"tsprint-datafile.dat" of tsprint.inf, Version
    = 6.1.7601.17514, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type = [l:24{12}]"driverUpdate", TypeName neutral, PublicKey neutral in the store, hash mismatch
    2014-02-17 11:18:36, Info                  CSI    00000353 [SR] This component was referenced by [l:184{92}]"Microsoft-Windows-Client-Drivers-Package~31bf3856ad364e35~x86~~6.1.7601.17514.TSprint-Driver"
    2014-02-17 11:18:36, Info                  CSI    00000355 [SR] Repair complete
    2014-02-17 11:18:36, Info                  CSI    00000356 [SR] Committing transaction
    2014-02-17 11:18:36, Info                  CSI    0000035a [SR] Verify and Repair Transaction completed. All files and registry keys listed in this transaction 
    have been successfully repaired

    Hi healee,
    Thank you for your update.
    All of the components in the operating system are found in the WinSxS folder – in fact we call this location the component store.  Each component has a unique name that includes the version, language, and processor architecture that it was built for.
    An INF file is a text file that contains all the information that device installation components used to install a driver. Windows installs drivers using INF files. This information includes the following:
    a. Driver name and location
    b. Driver version information
    c. Registry information
    For your reference:
    http://msdn.microsoft.com/en-us/library/windows/hardware/ff549520(v=vs.85).aspx
    You may refer to the informations above to check what is the file for.
    Based on my experience, it may related to print driver, you may consider to cantact the printer's manufacturer for insight.
    Theoretically, the sfc /scannow command will scan all protected system files, and replace corrupted files with a cached copy that is located in a compressed folder at %WinDir%\System32\dllcache. The %WinDir% placeholder represents the Windows operating system
    folder. There are a limited set of cached files, the rest must be manually replaced if they are corrupted or missing.  SFC probably will not fix the corrupted file due to there are updates in the process of installing. Those updates either need to complete
    their installation or be uninstalled, or removed.
    Hope it helps.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • System File Checker -Cannot fix corrupt files

    How practical do you consider the various measures to replace / resolve corrupt files are?
    My feeling is that the simplest solution is to do a repair install or clean install of the operating system. This would include where appropriate an In place Upgrade, restore to factory settings or to restore a system image.
    What do you think? 
    Hope this helps, Gerry

    Hi Gerry,
    System File Checker is a utility in Windows that allows users to scan for corruptions in Windows system files and restore corrupted files. OF course, this may not resolve all problem.
    Repair install, clean install, restore to factory etc have their own function on recovering the operating system. It depends on your exact issue.
    For more detailed information, please refer to
    http://windows.microsoft.com/en-in/windows/what-are-system-recovery-options#what-are-system-recovery-options=windows-7
    http://windows.microsoft.com/en-in/windows/installing-reinstalling-windows#1TC=windows-7
    Karen Hu
    TechNet Community Support

Maybe you are looking for

  • Can't update or uninstall Skype.

    I've tried the FixIt client, but every time I try to use it, it just freezes my laptop.  I don't know what to do.  I get the 1603 error every time.  It's frustrating - help!

  • Mask and replace object on a moving item

    I am new to CS4, and not too familiar with Photoshop or After Effects, and I was wondering how would be best to do this: 1 - I need to mask the label on the cover of the Blush jar, where it says "MICA BELLA cosmetices" and replace it with another nam

  • New tab overrides old

    Hi, I have a two year old MacBook (Mac OS X (10.5.8)) and I use Safari for the internet. It has worked perfectly until a month ago, when all of a sudden the opening of new tabs became a problem. I used to be able to open a new tab and browse freely i

  • Undoing the "print as image" setting

    Good morning all, Yesterday I needed to print a document created with Adobe Reader.  The printing was so faint it was barely visible, so I utilized the setting "print as image" in Advanced. Now, I am unable to print anything:  the paper goes through

  • RMI. Mysterious Exception.

    Hi all. Can anyone tell me why a ClassNotFoundException is thrown in the second Naming.rebind() ? Thanks a lot. import java.rmi.*; import java.util.*; public class MyServer {   public static void main(String args[]) {     try {       Remote AA = new