Get "EXE File properties"

I would like to get the follwing "File properties" from an EXE File
- Original Filename
- File version
like if you "right klick" on a EXE File and than
klick on "properties".
How can I get these information with JAVA.
thanks
Aykut

Hmmmmmm I doubt you would find a specific example using JNI for what u asked....so do a search for JNI on here.
Then I would look at microsoft.com to see what API functions are used to get the information you desire.

Similar Messages

  • How to access iPhone "Photo Library" to get image file properties?

    I want to access iPhone "Photo Library" to get image file properties(name, list etc..) without dialog.
    Is there any suitable method/class to this?

    Allan,
    Thank you for your reply!
    My purpose is access to "Photo Library" by iPhone API.
    Because, I know several iPhone application which has own image list and the list is synced to "Photo Library".
    If I take photo by iPhone native camera, the taken photo is listed up on the image list so I guess those applications can access to "Photo Library" directly.
    Or.. any other solution..?
    Gazza

  • Version number incorrect in .exe file properties

    Just reporting a little glitch in version 9.3.4, just installed here. When I run the program, "Help; About" says that it's version 9.3.4 as expected. But the version number reported in the properties of AcroRd32.exe is still 9.3.3.177

    snofriacus wrote:
    Just reporting a little glitch in version 9.3.4, just installed here. When I run the program, "Help; About" says that it's version 9.3.4 as expected. But the version number reported in the properties of AcroRd32.exe is still 9.3.3.177
    Agreed. Software compliance scanning systems (like Retina) are scanning to make sure that the exe file was updated from 9.3.3 to 9.3.4. Since the expected file was not updated, it beleives there's still an open vulnerability and flags the system as non-compliant (which in very strict IT/system environments can cause the users computer to be taken off-line until it is remediated).
    --KC

  • How do i get the file properties of any file in the phone?

    i need to get the meta data / properties of files in the phone.
    in addition, i will need the song title, artist, genre, etc information from video and audio files.
    can somebody help?

    but i cant seem to find any APIs Impl. would definitely complex.. as there are no stright api. matching your exact need (not sure if some third party has any library meeting your needs).
    that support the function of reading the whole file as the WHOLE file (headers + content).You could read byte by byte or set of bytes using read() and its overloaded method and store in byte[] array.
    It get the meaning full understanding of these bytes and get what you really need.. for the audio and video file, you need to go to the specification and read the bytes accordingly.
    if there are, then is there a way to rewrite the file?
    is there a way to change the bits in the file without creating a new one?Yes you could if you open the file with readwrite (look at Connector) mode and with OutputStreamWriter.
    Some of the challenges you would phase are memory issues, performance issues while reading big files..
    Regards,
    Raja Nagendra Kumar

  • Getting audio file properties (length and size)

    Hi,
    when I load a screen I have two labels. One should display me the audio file length (in seconds) and the other the size (in MB).
    But I cant get it to work. The labels just show me '(null)' all the time.
    What am I missing here?
    @interface AudioViewController : UIViewController {
    NSString *size;
    NSString *length;
    IBOutlet UILabel *audioSize;
    IBOutlet UILabel *audioLength;
    -(UInt32)audioFileSize: (AudioFileID)fileDescriptor
    //Get file size
    UInt64 outDataSize = 0;
    UInt32 thePropSize = sizeof(UInt64);
    OSStatus result = AudioFileGetProperty(fileDescriptor, kAudioFilePropertyAudioDataByteCount, &thePropSize, &outDataSize);
    if(result != 0) NSLog(@"cannot find file size");
    NSLog(@"file size: %@", result);
    return (UInt32)outDataSize;
    //Get file length
    NSTimeInterval seconds;
    UInt32 propertySize = sizeof(seconds);
    OSStatus err = AudioFileGetProperty(fileDescriptor, kAudioFilePropertyEstimatedDuration, &propertySize, &seconds);
    if(err != 0) NSLog(@"cannot find file length");
    NSLog(@"file length: %f", seconds);
    size = [NSString stringWithFormat:@"%i", outDataSize];
    length = [NSString stringWithFormat:@"%f", seconds];
    - (void)viewWillAppear: (BOOL)animated {
    audioSize.text = [NSString stringWithFormat: @"%@", size];
    audioLength.text = [NSString stringWithFormat: @"%@", length];
    Thanks for your help!

    you should not attach sounds to timelines if you want precise control of your sounds, and use actionscript. 
    that said, your sound will play if you assign its sync property to event, instead of stream.

  • How to get remote file properties in Adobe AIR

    Hi Folks,
    I am developing a desktop application in AIR wherein we have a requirement for Live Update. I need a mechanism by which I can check the last modified date time of a file and if a new version is available, I need to download it.
    I am able to download the file from remote server. But the main issue is reading the last modified date time. Is there any way to get this information in AIR.
    Any help/suggestions would be highly appreciated.
    Thanks,
    Hitesh Patel (India)

    This depends on the type of server from which you are downloading the files. For example, if you are downloading the files from an HTTP server, and the server provides "Last-Modified" values in the HTTP response headers, you could use the following ActionScript code to determine those values:
    var urlReq:URLRequest = new URLRequest("http://www.example.com/");
    var urlStream:URLStream = new URLStream();
    urlStream.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, statusListener);
    urlStream.load(urlReq);
    private function statusListener(event:HTTPStatusEvent):void
        for each(var header:URLRequestHeader in event.responseHeaders)
            if(header.name == "Last-Modified")
                trace(header.value);

  • How to get .ai (Adobe illustrator) file properties???

    Hello to all,
                         I am using c# window application framework 3.5 .I am working on the graphics search engine . Now i want to get the .ai (Adobe illustrator)files properties  so please help me how to get .ai files properties?????

    Illustrator file is not just simple one image, that there will be a single image height, width and bit depth available. Illustrator file is made of two components, one is PDF and another is Illustrator private data called PGF. PDF spec is available to everyone while PGF has very limited documentation, but both of them are vector based format, it can contain paths, images, gradient, text etc. They can have multiple pages of varied sizes and each page can have multiple images. So there is no single image height, width or bit depth for the entire file in total.

  • How do I get the Adobe Presenter trial .exe file to run? I'm getting an error requiring placement into a designated folder,

    Getting an error trying to run the Adobe Presenter trial .exe file because it is requiring that the file be placed in a designated folder with the other downloaded file. How do I solve this problem?

    Thanks, the offset command worked well. I did have to modify the script some more, there was really no reason for the first repeat loop using the offset command. Also, I had set my text item delimiters to tab for another script, and that was causing problems running this script. I think I have everything fixed now. This is the final version.
    set my_folder to choose folder
    tell application "Finder"
    set myfolderstring to name of my_folder as string
    set myfolderlist to every character of myfolderstring
    end tell
    set mycolorlist to {"A_Green", "B_Teal", "C_Purple", "D_Pink", "E_Yellow", "F_Orange", "G_Blue", "H_Black"}
    set my_break to offset of "_" in myfolderstring
    set the_code to items 1 thru (my_break - 1) of myfolderlist
    set the_code to the_code as string
    repeat with i from 1 to number of items in mycolorlist
    set the_color to item i of mycolorlist
    tell application "Finder"
    make new folder at my_folder with properties {name:the_code & "_" & the_color}
    end tell
    end repeat

  • The exe files are not responding on my computer. I can't get to firefox.exe - what can I do?

    I downloaded a 7-zip file from CNET and it didn't do what I wanted and so I uninstalled it. However, all the "exe" files on the computer are now not accessible. I can get to Firefox thru a "shortcut" on my desktop for the local newspaper. The e-mail is working thru my yahoo account only. I purchased PC MightyMax and that didn't do anything for me. I've tried to restore the computer to yesterday or earlier and the restore window will not come up either.

    In some cases, all EXEs being broken can indicate a malware infection.
    Do you get a specific error message when you try to start a program?
    I'm concerned that PC MightyMax itself might be an infection you need to remove, but let's come back to that issue.

  • 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

  • Get these two error messages when I run the iTunes exe file:  Error 2 and Error 2 (Windows error 2).  Both say Apple Application Support is required.  Uninstalled and tried to install again several times.  Using Windows 7 64 bit on laptop.

    Trying to install iTunes on my Dell laptop with Windows 7 - 64 bit.  Get these two error messages when I run the iTunes exe file:  Error 2 and Error 2 (Windows error 2).  Both say Apple Application Support was not found.  Can anyone tell me why this is happening?

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • I need to de-install Foxfire 6 and go back to Foxfire 5 on my Mac to run a picky program that won't run under Foxfire 6. I can't get install software for version 5 to run. It sees it as exe file.

    When I drag the downloaded Foxfire 5 install file to my Applications folder, it shows up as an .exe file. When I double click to run it, I get an error message saying it is not DOS executable.

    In the exact same boat here. Life-long iPhone user. Got a 6 on Tuesday and absolutely hate it to the point where I dread using it. Upgraded from an iPhone 4 I'd had for 4+ years. After making several phone calls, my understanding is that Apple will take it back no problem, within 14 days. My iPhone 4 was out of contract with AT&T but when I bought the 6, I renewed my previous contract for 2 years. My AT&T contract also has a 14 days, cancel for any reason with no early termination fee, clause. I assume your AT&T contract would have the same. But I don't think you need to worry about canceling your contract. Since you still have your iPhone 5, you should be able to bring it to the AT&T store, have them switch the existing contract from the 6 to your old 5 and then you can go return the 6 to the Apple store where you bought it. That's no different than being halfway through a two year contract, your phone is stolen and you have to buy a new one at retail price to replace it on your existing contract. You're essentially just bringing your own device you already paid for (the 5) to the existing AT&T plan.
    I would just caution that assuming you want to keep your phone number, get the service put back on your 5 at AT&T and have them deactivate the 6 before you go return the 6. Or just make sure the Apple store is capable of transferring the service from the 6 back to the 5 while you're there to do the 6 return.

  • Firefox wont open get message saying no exe file found

    Hi I have been using firefox for years then a couple of months ago I started getting this message 'Windows cannot find C:\Program Files\Mozilla Firefox\firefox.exe' I've tried to un-install and re-install but I keep getting the same message so I've been stuck on Opera which is ok but I want firefox back, any suggestions please as this is driving me mental. No changes were made to the computer before the problem started. Thanks in advance.

    Well hopefully you didn't go mental it will make this harder to solve.(he he)
    Number one if this is the command line in your shortcut it is incorrect
    C:\Program Files\Mozilla Firefox\firefox.exe'
    It should read like this
    "C:\Program Files\Mozilla Firefox\firefox.exe"
    Go to shortcut and right click it, in the command line copy paste what I entered there instead.
    Second if the above was a typo on your part then go to the directory C:\Program Files\Mozilla Firefox and see if there is the exe file firefox.exe
    If you find it is there then the problem gets a little deeper, let me know.

  • I get a message that itunes  has stopped working. When I check out why it is because of the dep security on my computer. When I try to find the program for itunes for the .exe file i cannot find it to turn off the dep for  that file

    I get a message that itunes  has stopped working. When I check out why it is because of the dep security on my computer. When I try to find the program for itunes for the .exe file i cannot find it to turn off the dep for  that file

    I found the file but when I added it to the  list for the Data  Execution Program to ignore , I received a message that the Program.x86/itunes file must have the DEP on in order to run. Anyone else having this problem ?

  • I dont have a internet connection at home, i connect my iphone 5 to my computer, it says i need new version of ITunes 11.2, i cant download it with out internet, i am at Library can i get ITunes 11.2 in a zipped files or exe file downloaded to my usb driv

    i dont have a internet connection at home, i connect my iphone 5 to my computer, it says i need new version of ITunes 11.2, i cant download it with out internet, i am at Library can i get ITunes 11.2 in a zipped files or exe file downloaded to my usb driv

    i can take pictures off my phone but thats it, i have some nice programs for pictures and art work and cant get them back on my phone to send them to friends and family. Also have some OLD pictures of Family on this Computer that was given to me i want to get off of it and send out but i can dragg and dropp from phone to computer but i cant drag and drop onto phone from computer and there the same jpg files, sad. i like my iphone5 and want another one but i might have to change when it time to upgrade , i dont want to, but i cant afford internet let alone a mac or pc, this one was given to me, was lucky to have saved to get the phone and service on a family plan, i have unlimited internet on phone that is my life source for internet, wish io could afford both phone and internet, its phone or internet, and with phone i have both in a way

Maybe you are looking for

  • Living in Puerto Rico+Buying a MacBook+Apple Store=0 MacBook

    I'd like to buy a MacBook from the Apple Store, but I'm afraid don't know how, since I don't see Puerto Rico listed anywhere. Don't you guys ship to Puerto Rico? If not, WHY? What other way is there for me to get the MacBook I want? --> The White Mac

  • Incoimg payment of customer

    Hi SAP Guru, Can any one please let me know , what is the TC to receive the incoming payment & how I can do it ? Thx & Regards Pankaj Bahre

  • How to delete all color swatches?

    How can one delete all color swatches in a palette, or delete all "unused" swatches, such as one can do with Muse? Or: how can one create a new set of swatches, that would be blank?

  • Live install under Solaris 8

    The Solaris 8 What's new document advertises the ability to install to a blank disk without re-booting the server. Can anyone tell me if I can do this installing from 2.6 or does it only apply to installs beyond solaris 8. I have a big server with a

  • Problem w/ creation of application system

    I'm new to designer2k r6. Everytime I input a value to application system dialog box, I get RME-00011 error message. Operation 'open' on ACTIVITY has failed. and Operation 'INS' on ci_application_system has failed. What can I do to fix this? null