File Properties

Is there a way in Java to read the Summary part of the file that we can see by right clicking on a file in Windows and clicking on the Summary tab? The File class does not seem to offer that functionality. The Properties class tells us the System Properties. Can someone point me in the right direction with this?
Thanks in Advance.

This is very Windows-specific, and hence there's no way to do this in pure Java. You'd have to use JNI.

Similar Messages

  • File Properties: Document Kind... Where Does it Come From?

    In Bridge's metadata subsection "File Properties", what exactly
    is "Document Kind"? Is it synonymous with the file's mime type?
    I've read through Adobe's XMP specification document (http://partners.adobe.com/public/developer/xmp/sdk/index.html) and I've seen many of Adobe's XMP schemas and data elements defined there, but I can't find where "Document Kind" is defined.
    The closest I come is page 39 where the XMP specification notes that the dublin core schema has a property called "format" with a value of "MIMEType". Is "dc:format" synonymous with "file properties: document kind"?
    Thanks for any help.

    dont mind but please tell me how do u communicate with computer ports...
    u can mail any material at [email protected]
    thanks

  • Visual Studio Projects Not Showing FileVesion Leading Zeroes in File Properties

    I created a simple Visual Studio 2013 windows form application setting the AssemblyInfo.cs file as show below.
    // You can specify all the values or you can default the Build and Revision Numbers
    // by using the '*' as shown below:
    // [assembly: AssemblyVersion("1.0.*")]
    [assembly: AssemblyVersion("1.0.0.0227")]
    [assembly: AssemblyFileVersion("1.0.0.0227")]
    [assembly: AssemblyInformationalVersion("0.0.0.0227")]
    I built the application and went to the Windows File Explorer and brought up the file properties. What I see is that the product version showing the leading zeros, but the file version field does not show the leading zeros.
    It appears to be a bug either with Visual Studio or with Windows. Which one is it and is there a fix?

    Hi Sarah,
    We can't see the screenshot. Do you mean you use Windows Explorer to browse to the AssemblyInfo.cs file and check the property?
    If you change the product version or the file version from the AssemblyInfo.cs file, you need to firstly rebuild the assembly, then if you go to the debug/release folder, check the property of the assembly file, the Details tab will show you the corresponding
    changes of these properties. It's the assembly property but not the cs file property.
    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.
    Click
    HERE to participate the survey.

  • File properties: mysterious dates for created, modified and last opened

    I've seen this ever since I started using my Mac - I am a relatively new Mac user (a year or more vs. well, decades on Win/PC).
    Finder: click on a file and it will show its properties. It will have a "More info" button.
    The dates displayed between the 2 above are different.
    1) In the "immediate" display it would say something like:
    Last opened: Today at 10PM
    - this wrong day, "correct" time
    - considering that it will display this at say 7AM "today"...well, it's a "future" date/time
    2) If you click the More info button, the "truth" comes out
    Last opened: Yesterday at 10PM (accurate)
    Never really cared, but thought I'd ask here. At some point, if I start some development on the Mac, and filesystems, file properties are involved, this will obviously be an issue. I don't even know if this affects file searching based on these properties - again, new user, using Mac for very specific purpose, but usage is definitely on the rise, so I'd like to get some direction on very basic OS behavior like this fully understood.
    Thanks and happy new year to all!

    EdSF wrote:
    Thanks VK. I'm the only user.
    Can you please clarify on what user accounts have to do with this behavior?
    I've seen many times when corrupt date settings in the global user preference file cause wrong modified dates to be displayed in finder. in that case if you make a different user they will be displayed correctly. the file in question is ~/library/preferences/.GlobalPreferences.plist.
    It's ok to be technical in your response....if it goes over my head, I'll be frank and ask for clarification....
    - Is it a user-defined preference/setting?
    - It's almost like a busted UTC/time zone routine (somehow "TODAY" is UTC, but the time value doesn't match) re: 10PM last night on PT is/was "today" in UTC....

  • SSIS 2012 Script Task to Get File Properties

    Hello,
    I researched on how to grab a file properties such as file size, file modified date, etc and I came across the following
    link:
    I followed exact steps and when I went to execute the package, I got the following error:
    Below is the code:
    // C# code
    // Fill SSIS variables with file properties
    using System;
    using System.Data;
    using System.IO; // Added to get file properties
    using System.Security.Principal; // Added to get file owner
    using System.Security.AccessControl; // Added to get file owner
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_cb8dd466d98149fcb2e3852ead6b6a09.csproj
    [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
    public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
    #region VSTA generated code
    enum ScriptResults
    Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
    Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
    #endregion
    public void Main()
    // Lock SSIS variables
    Dts.VariableDispenser.LockForRead("User::FilePath");
    Dts.VariableDispenser.LockForWrite("User::FileAttributes");
    Dts.VariableDispenser.LockForWrite("User::FileCreationDate");
    Dts.VariableDispenser.LockForWrite("User::FileExists");
    Dts.VariableDispenser.LockForWrite("User::FileInUse");
    Dts.VariableDispenser.LockForWrite("User::FileIsReadOnly");
    Dts.VariableDispenser.LockForWrite("User::FileLastAccessedDate");
    Dts.VariableDispenser.LockForWrite("User::FileLastModifiedDate");
    Dts.VariableDispenser.LockForWrite("User::FileOwner");
    Dts.VariableDispenser.LockForWrite("User::FileSize");
    // Create a variables 'container' to store variables
    Variables vars = null;
    // Add variables from the VariableDispenser to the variables 'container'
    Dts.VariableDispenser.GetVariables(ref vars);
    // Variable for file information
    FileInfo fileInfo;
    // Fill fileInfo variable with file information
    fileInfo = new FileInfo(vars["User::FilePath"].Value.ToString());
    // Check if file exists
    vars["User::FileExists"].Value = fileInfo.Exists;
    // Get the rest of the file properties if the file exists
    if (fileInfo.Exists)
    // Get file creation date
    vars["User::FileCreationDate"].Value = fileInfo.CreationTime;
    // Get last modified date
    vars["User::FileLastModifiedDate"].Value = fileInfo.LastWriteTime;
    // Get last accessed date
    vars["User::FileLastAccessedDate"].Value = fileInfo.LastAccessTime;
    // Get size of the file in bytes
    vars["User::FileSize"].Value = fileInfo.Length;
    // Get file attributes
    vars["User::FileAttributes"].Value = fileInfo.Attributes.ToString();
    vars["User::FileIsReadOnly"].Value = fileInfo.IsReadOnly;
    // Check if the file isn't locked by an other process
    try
    // Try to open the file. If it succeeds, set variable to false and close stream
    FileStream fs = new FileStream(vars["User::FilePath"].Value.ToString(), FileMode.Open);
    vars["User::FileInUse"].Value = false;
    fs.Close();
    catch (Exception ex)
    // If opening fails, it's probably locked by an other process
    vars["User::FileInUse"].Value = true;
    // Log actual error to SSIS to be sure
    Dts.Events.FireWarning(0, "Get File Properties", ex.Message, string.Empty, 0);
    // Get the Windows domain user name of the file owner
    FileSecurity fileSecurity = fileInfo.GetAccessControl();
    IdentityReference identityReference = fileSecurity.GetOwner(typeof(NTAccount));
    vars["User::FileOwner"].Value = identityReference.Value;
    // Release the locks
    vars.Unlock();
    Dts.TaskResult = (int)ScriptResults.Success;
    Eventually I am looking to just grab the Modified Date from the Windows Explorer folder and insert into table. Any suggestions? Thank you in advance!
    Sanjeev
    Sanjeev Jha

    Hi SSISJoost,
    I am so glad you responded to this thread. You are absolutely right. I copied the entire code including the project name (guid) and that solved the error problem.
    Now, what did you do to get the message box? I added the watch and I could see the values but how do I get these values in a table? If I remember correctly, in your blog, you mentioned something about using derived columns. I am familiar with Derived Columns
    but how do I do that? I appreciate your response.
    Thank you.
    Sanjeev
    Sanjeev Jha
    I used a second script task to show all variable values. It has a
    MessageBox in it and between all
    variables I added a
    newline to make it more readable...
    But with an Execute SQL Task and parameters you can also put these values in a Table... or you can read the file in a Data Flow Task and add those variables (as metadata) to each record with a Derived Column
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • Windows File Properties vs. Content Services Properties

    Hi.
    On behalf of a customer I am evaluating Windows file properties vs. CS file properties.
    Client Environment: Windows XP SP2, O-Drive.
    Rightclick a File stored on O (O-Drive, Content Services).
    a Props. Dialog shows up, the first tab is General*. It shows several file
    properties among others the following:
    - Last Access Date: This always shows Wed. 1 Jan 1986 00:00:00
    Does this correspond to any content services file property? If so, why
    is it always 1-jan-1986 00:00.00 and does not change? Is it a bug?
    - Checkboxes Write protected* / Archive* / Hidden*
    Do these correspond to any cs file property? Do these have any effect?
    (I tried write protected, but it did not work as expected, I was able
    to overwrite the file) Bug or Feature?
    If these checkboxes do not work, could these be disabled through O-Drive,
    otherwise users might get confused...
    Regards, Tom
    * (I don't know the exact english labels as I am working on a german client... so
    I translated the german labels - sorry)

    Hi. Sure, here's some collateral information:
    We are evaluating Content Services for several customer projects.
    During a presentation I held 2 weeks ago a customer asked exactly
    those questions and I had to admit I could not answer.
    So I retried on our test instance and checked the docu and still
    could not get a clue how windows attributes and cs attributes correspond.
    Then I asked MJS during last weeks workshop he did not know exactly either.
    Hence I am asking on the forum.
    Regards, Tom
    (PS. If you require further background information you may contact me via email
    or ask E. Neuwirth on Tom Gansor / OPITZ Consulting).

  • Editing metadata in the file properties window

    Hi,
    I’m using Win XP SP3 on a “normal” Desktop-PC. Since my problem is not connected to hardware I think that description is enough but I do not know which software information is required. So you may ask. Important is maybe that I am running Adobe Acrobat and Reader simultaneously on the same machine.
    The problem: I always changed and edited some of the metadata of my PDF files by bringing up the file properties window of the PDF (right click - properties). Next to the “General”-Tab is the “PDF”-Tab. You can see the title, author, topic, dates and PDF-Version of the document. The first four fields where always editable textboxes. I get used to put in some comments and other important information because I didn’t want to use any tool. Now the complete window is locked. Is this because of the new 9.3.3 Reader update? I updated so many times and never anything like this happened. How can I turn back to the old behavior?
    I do not want to edit those information in Acrobat by choosing File and then propertis because it takes much more time because i have to open the file (if it is one its fine) but if there are more where the same info shall be in I'd like to use the built in function of the properties sheet in windows.
    With kind regards
    DragJo

    At first I asked that question by mistake in the wrong forum so I put in it here. But it has been answered there http://forums.adobe.com/message/2973589
    so I mark this as answered, too.

  • Editing metadata in the file properties

    Hi,
    I’m using Win XP SP3 on a “normal” Desktop-PC. Since my problem is not connected to hardware I think that description is enough but I do not know which software information is required. So you may ask.
    The problem: I always changed and edited some of the metadata of my PDF files by bringing up the file properties window of the PDF (right click - properties). Next to the “General”-Tab is the “PDF”-Tab. You can see the title, author, topic, dates and PDF-Version of the document. The first four fields where always editable textboxes. I get used to put in some comments and other important information because I didn’t want to use any tool. Now the complete window is locked. So my question is why did this happen? Shall this be a Feature of the new 9.3.3 update? If yes I just can say it isn’t. And my question would then be: How I can turn back to the old behavior?
    With kind regards
    DragJo

    Thanks,
    I just ran the Acrobat repair installation and I got the expected function back. In addition it does not matter any longer which icon I click (reader or acrobat) to open Acrobat. The reason for having both installed is just that I needed a "pdf viewer" from the first minute after having installed the OS and installing Acrobat needs much more configuration in my case then just the "tiny" Reader equivalent. The best thing: I did not realize any other problem.
    Kind regards,
    DragJo

  • Adobe Bridge CS 4 missing file properties

    I'm working with photoshop files (CS 4) and a few seem to have dropped some of the metadata from the file properties in the bridge browser. Dimensions, Resolution, Bit depth, and Color Mode are missing, and the Color Space is listed as Untagged, even though it is in fact tagged as Adobe 1998 in the Photoshop file. It's as if I inadvertently hit it a quick key to dump the information, as it has only occurred on a couple of files. The thumbnail appears smaller too. Any ideas?

    I tried all of the above to no avail. I saved a copy in another folder and the file still had the diminished thumbnail and missing data. I added another layer (the files contain many layers and adjustment layers) to the file, cropped and re-saved and it picked up the missing data on the new version. I made some benign changes on my original, but alas it didn't work.
    When I get a chance I'll do some more testing on this. It may have something to do with I import certain layers. I have been flowing layers in from both Aperture and Bridge, and from the latter, sometimes as smart objects. So maybe there is something going on there.
    Except for this minor glitch, and some more serious PS stability issues, I am preferring the Bridge/Photoshop workflow to the Aperture/Photoshop workflow, and I'm thinking of jettisoning Aperture altogether in favor of the "browser" method of managing files.
    I appreciate all the suggestions and will get back to this problem soon. But for know I have to meet a deadline.

  • Extracting "File Properties" metadata

    After processing scanned images in Photoshop CS3, I am uploading them to a DAM solution that has the capability to extract embedded metadata using custom defined keys. I would like to know the syntax/structure of embedded metadata labels that display in the "File Properties" template of Bridge CS3 (e.g. File Size, Dimensions, Color Space) so that I can extract that metadata.
    Thank you!

    In Preferences>Metadata there are two choices for dimensions - inches and cm, check the box for your poison.

  • Extracting "File Properties" metadata from Photoshop CS3

    After processing scanned images in Photoshop CS3, I am up loading them to a DAM solution that has the capability to extract embedded metadata using custom defined keys. I would like to know the syntax/structure of embedded metadata labels that display in the "File Properties" template of Bridge CS3 (e.g. File Size, Dimensions, Color Space) so that I can extract that metadata.
    Thank you!

    I have this printer and use Leopard, but I don't have this problem I am useing the 6.2 driver. There are two drivers on their website, I am using only the driver that came with the machine. I would re-install the driver. Secondly and this caught me up a bit at first. You open the CS print manager, press print and then the Epson driver emerges, there i s no direct access from CS3 to the driver. Secondly in the Epson driver there are two or three set of drop down menus, the one that permits setting the paper profile is not exactly where you expect it, just have a look through all the menus(I am not sitting in fronto of my mac right now so I am of limited help). Good luck.

  • Author metadata separated by semi-colons truncated in file properties and "Get Info"

    I'm using Acrobat Professional 9.0 (CS3) for Mac to edit the metadata for a collection of PDFs to be made available on the web. When I enter the data, I am inputting a list of authors separated by commas, like this: Smith J, Watson C, Brown J. If I click on "Additional metadata", the data I've already entered is transposed into the various XMP fields. And the commas separating the author names are changed to semi-colons. I gather that this happens because XMP wants to separate multiple authors with semi-colons, and Acrobat wants the metadata in XMP fields to match the metadata stored for the file properties. Fine.
    However, if I save such a PDF and then use Get Info on my Mac (OSX 10.4) to look at the file properties, the list of authors is now truncated where the first semi-colon appears. The list is also truncated in Windows XP if I right-click and select properties. The list is also truncated when I look at the file properties in Preview on my Mac, or if I look at file properties using FoxIT, or using Adobe Acrobat Reader 7 or earlier. The only way a site visitor will actually be able to view the full list of authors in a file saved this way is to use Adobe Reader version 8 or later.
    I would like to preserve XMP/Dublin Core/etc metadata in the proper format in the XMP code, but would also like users of standard, popular file viewers to be able to access the full list of authors. Is there a way to do this with Acrobat 9?
    Also, once I've saved a file and the XMP metadata has been altered, Acrobat seems to permanently change the way that the authors are listed in the file properties. I cannot manually change those settings any longer without Acrobat overriding my changes and converting commas to semi-colons, or surrounding the entire list of authors in quotation marks. Is there a way to get around these Acrobat overrides and manually take control of my metadata again?
    Does Windows Vista read the authors list correctly in the file properties if it is separated by semi-colons?
    It seems to me that in an attempt to get XMP metadata working smoothly across the entire CS line, Adobe has jumped the gun somewhat and is now forcing Acrobat users to use "file properties" metadata that is really only fully compatible with Adobe products. Is there a way I can get some backwards compatibility on this?
    Thanks for any suggestions or insight anyone can provide to this vexing issue.
    Phil.

    Bridge has some pretty powerful and helpful features. However, I am unable to figure out how to access the non-XMP "file properties" fields through Bridge, and if I add metadata via Bridge, then I run into the same problem regarding the use of semi-colons to separate authors.
    If I had more time, or a larger set of files I might investigate the use of ExtendScript to import all my metadata from an Excel file (where it already exists) into the PDF file properties and XMP metadata.
    The best solution for my case though appears to be to use Acrobat 9 and to do the double-edit process for each file. I should be able to just cut-and-paste the metadata from the Excel file, and then if I save the Authors list to the end, I can simply paste it once into the XMP field (through the Advanced metadata button) and then return to the regular file properties page and paste it again in there, where Acrobat will add quotes around it.
    Lastly, if anyone else happens to find this post and is looking for similar information, I would recommend searching in the Bridge forum as well as the Acrobat forum.
    Phil.

  • Script to enumerate, and interactively modify File Properties (eg. meta-data)

    Hey Script Guys:
    I am analyzing SharePoint capabilities for a customer and there are some things that they need that is not there, but so far it seems it is but can't be seen.
    First two things are:
    'Stored Procedures' - That is a way from within a rule or workflow to interact with an interpretive host.  Right now I use REXX, which has the INTERPRET function.  I can write a script into a text element, send it there, and get the results.  Handy,
    but rough.  This is especially handy in validation situations, or re-mapping of data.
    A way for metadata to be plugged into a file easily without using the Properties dialog (like read it from document fields, etc) so the Content Routing can be cleaned-up to be more fully automated.
    Bear in mind I grew-up on Motorola Assembler, BAL and MASM to develop  ASIC's, process controllers, operating systems and compilers, so alot of this shell programming is still a little weird.  Be nice
    JgEarl (FOG) sends...

    File properties in WIndows are not part of the file. Some are part of the directory entry like the LastWriteTime and ReadOnly flag.
    In Windows Explorer file properties like the internal properties of an MSWord document or an Adobe PDF file can be exposed if the vendor provides a support DLL that Explorer can use to expose these. They are not normally available to any program directly. 
    They are only available via the "Shell" (Explorer) or via the application that manages the document.
    In SharePoint the "library" or other container manages a set or properties defined by SharePoint.  For MS documents we may be able to use "shell" methods to tattoo the SharePoint library with this information.
    None of this has much of anything to do with scripting.  It is e3xternal to the scripting system and can be accessed by the product specific support DLL such as the dll installed by MSWord and Adobe.
    To access these things through the shell in script we must instantiate the "Shell" object.  In SharePoint we can do this prior to loading the document or we can load documetns that Sharepointas nan installed DLL for.
    At this time I am not sure as to how SP does this.  I recommend posting in the SharePoint developer forum for information on how to access and build these extensions DLLs.  I believe you can also look it up in the SharePoint SDK.
    Outside of serverside code or using a custom library I do not see how you can do this.
    You can, of course, always generate a file of name/value pairs describing your files.  You can also add almost anything to the SharePoint library structure or create custom types to display your custom metadata.
    ¯\_(ツ)_/¯

  • Unable to rotate downloaded photos- missing file properties

    I copied/pasted my photos from Windows Explorer. I tried rotating the pictures to the correct position, however it throws an error indicating that the picture contains missing file properties. Has anyone encountered the same thing? How can you fix it?
    BTW, Using iphone 4S with iOS 5. Never had any issues with my 3GS.

    Well that message is a Finder error.
    As to the iPhoto problem:
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair library permissions.
    Regards
    TD

  • Change date on PES8 Organizer and file properties

    Hi,
    I change the date of the vue in the metadata of a photo with PES8 Organizer and update it with the option in the "file" menu (write the.... and properties in the photo).
    The problem is : The date in the properties (right clic on windows on the photo file / properties of the file)  is different (few hours) of the date that PES8 Organizer would have change. I'm very embarassed to organize my pictures.
    Does anybody can help me ? Does anybody have this trouble ?
    Thanks
    Very sorry for my english !!!!

    Thank you for your answer !
    I think my problem will be more explicit with this :
    Thanks for your help !!

  • Buggy AAC Conversion process drops File Properties?

    Hi,
    I just decided (apparently crazily) to convert my MP3s that had been ripped from CDs over to AAC (m4a) format. After multiple passes through it finally completed.
    Now having looked at my files, they have lost all of their file summary information. Which means that I can't index them any more on windows, and worse, when I transferred them to my phone, they are all marked as "unknown".
    Does anyone have some software that I can use to restore all the file properties information. (Note: getting the CD information using iTunes doesn't seem to do anything at all).
    tx
    P

    You should always, whenever possible, rip fro the
    original CD.
    Don't convert from a lossy format to another lossy
    format.
    >> Fair enough... but nevertheless, it was a feature of iTunes to convert my Mp3s which had all their file properties in Windows, and then after being converted, they lost them.
    What did you convert them with?
    >> itunes
    Now having looked at my files, they have lost all
    of their file summary information.
    Do you mean the iD3 tag info?
    >> no. the id3 tags are there, but the file properties are missing, Summary, album info etc, which means that my phone and other devices (that don't read id3, but read file props) no longer work right :(
    getting the CD information using iTunes doesn't
    seem to do anything at all).
    You have to have RIP'd the CD in iTunes for this to
    work.
    >> ic... well.. sigh

Maybe you are looking for

  • Best way to have an iMac second monitor and Thunderbolt daisy chain?

    I'm getting new iMacs for my school lab & wish to daisy chain with Thunderbolt cables into pods of 6 for backing up. I also want to run a second monitor with each iMac. What is the best way to do this since both Thunderbolt ports will be used? USB 3.

  • No Sound in Flash Player 10

    My audio is working fine in programs such as Itunes and windows media player but out of nowhere websites such as Youtube and Veoh which use flash no longer have sound. I have been looking for a solution on and off for about 6 hours now. I have tried

  • Insert Blank Row after writing record to .csv

    J Developer 11.1.1.6.0 Oracle SOA 11g - BPEL I am currently performing 3 separate transformations in a bpel process. In the first transformation I extract header level information (only 1 record line) and write this to a csv file together with HEADER

  • Spotlight and Finder search

    Hi, What is the difference between the Spotlight search and the Finder Search ? anybody? Or its spotlight in the finder? yours sincerely jagjit

  • Create activity with survey through BSP

    Hello, can somebody tell me how we can create a survey through a BSP page and link this to an activity? Kind regards Geoffrey