How to invoke windows file properties menu

Can we invoke windows file properties menu (just same as right click a file in windows explorer and click properties) in a java program, eg. using shell32.dll?
Please help!

Hi Joanne,
I can't figure out what exactly you're trying do to but just in case... you may simulate a right click using java.awt.Robot class.
Best regards,
Lionel Badiou
CodeFutures -
Java Code Generation
http://www.codefutures.com

Similar Messages

  • How do read  windows file properties?

    I want to be able to read the size of the file on disk - no the size of the file using file.length() which only gives the size of the file in bytes. also i want to be able to read anyother info that the os is keeping on a file. so, how can i do this? where does windows store property info. fi hope you can help.

    This might work. Copy the following into wordpad and save the folowing as text in the location C:\Windows\.hotjava\ named properties, no extension:
    #AppletViewer
    #Sat Jul 29 14:43:34 2000
    appletviewer.version=1.0

  • 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).

  • How do I set file properties (win XP) ?

    Does anyone know how to set/modify a windows file properties inside Labview ? For exemple : change the author, the comment... etc.
    Thank you !
    J.K.

    Hello,
    It is not possible with advanced file I/O LabVIEW VIs.
    There is a possible workaround by using low level Windows functions in a dll.
    Perhaps the easier would be to set your properties at the top of your file.
    You will find some explanations here :
    http://forums.ni.com/ni/board/message?board.id=170&message.id=85101&requireLogin=False
    regards
    Marc L.
    NIF

  • How to invoke Java file into Mobile phone

    hi
    I have one java file (as servlet to display WML content on mobile phone) but i don't know how to invoke it into mobile phone . Can you help me ?
    Give me your answer asap
    Thanks
    .

    Depends on the phone. Some let you send an app via IR or bluetooth, and others (like the sharp) make you do it via the wap browser.
    Suggest you investigate http://www.midlethosting.co.uk

  • How to invoke WADL files from BPEL?

    Hi,
    I have an urgent requirement of invoking WADL files from BPEL process.
    Can anybody help me on how to do it and provide some documentation on it.
    Thanks in advance!!

    We had a similar requirement, BPEL calls the stored procedure, it calls the custom job created in Oracle EBS, this job runs the command script
    Hope this helps,
    N

  • How to start Windows file chooser?

    I don't mean the AWT file chooser FileDialog.
    I have seen a Java application use the new Windows file chooser which is used in Windows 2000 and Windows XP. On the left side it has a large bar.
    How can I start that new Windows file chooser?

    Hello, my name is Silvia.
    I'd like to know how to hide that large bar on the left side in the file chooser (jdk 1.4.x).
    My problem is about truncated names like 'My Document' (it is shown as 'My Docum...') or 'My Network Place' (it is shown as 'My Networ...').
    Should I extend the JFileChooser class? What is the name of 'the large bar on the left side in the file chooser'?
    Thank you very much, Silvia.

  • How to rebuild Windows 7 start menu?

    Having had a virus and removed it successfully I am left with an odd problem.
    The virus, amongst other things, seems to have altered the start menu removing the "pinned" programs which is not a problem but also removing the contents from the folders in "all programs" for instance under "Microsoft Office" there is a sub folder called "office tools" (empty) but nothing else.
    The programs are all still there and work they just aren't available in the start menu. There must be a way of rebuilding this menu without having to reinstall every one of the very many pieces of software on the machine.
    Suggestions welcome.

    Start Menu common to all users is C:\users\all users\microsoft\windows\start menu.
    For each user C:\users\username\appdata\roaming\Microsoft\window s\start menu.
    By default these are hidden folders.
    Open using Windows Explorer and create shortcuts, copy, paste etc.
    A search pulled up this [http://softzilla.blogspot.com/2011/04/free-windows-7-context-menu-editor.html] No idea if it is of any use
    Message was edited by: peterk_1

  • How to invoke windows powershell in soa bpel

    Hi,
    could anyone please let me know if we can invoke windows powershell from soa (bpel). if yes please share any helpful url for the same.
    Thanks

    Hi there,
    you can use this discussion to see the Java code that is required in
    order to get a PowerShell script executed from Java. Then you would have
    to use the Java embedding in BPEL to call that code.
    https://social.technet.microsoft.com/Forums/itmanagement/en-US/d32537bd-0aef-440e-8760-6b3085390c37/executing-powershell-script-via-java?forum=winserverpowershell
    Hope this helps,
    A.

  • How to modify a file .properties

    Hi,
    I wrote this function in order to modify the values in a generic property file :
        private boolean modifyPropertyValueForAkey(String KeyValue, String propValue) {
            // 1.  acquisire il file properties
            Properties prop = new Properties();
            InputStream inStream = null;
            try {
                inStream =  Computer_STATUS_ForNetworking.class.getResourceAsStream (nameOfThePropertyFile);
                prop.load(inStream); // abbiamo caricato prop (usando inFil)
                // a questo e' servito inStream
                inStream.close(); // chiuso il file per leggere
            } catch (IOException ex) {
               System.out.println("modifyPropertyValueForAkey (IOException 111) " + ex);
            // ======================
            //2.   bisogna avvisare che la modifica non si puo' fare
            if (prop.containsKey(keyValue) == false) {
                return false;
            // ======================
            // 3.  scrivere (= salvare la modifica nel file properties)....
            OutputStream outFil = null;
            try { 
                outFil = new FileOutputStream(nameOfThePropertyFile); // salvato il file
            } catch (FileNotFoundException exep) {
                System.out.println("modifyPropertyValueForAkey (FileNotFoundException 222) " + exep);
            try {
                // key = key_database_path_omTheServer
                prop.setProperty(KeyValue, propValue); // assegnare il valoe
                prop.store(outFil, "---No Comment---");   // salvare la modifica
                // errore la modifica non e' effettuata !!!!!!!!!!!!!!!!!!!!
                outFil.close(); // chiuso il file per scrivere
            } catch (IOException exeption) {
                System.out.println("modifyPropertyValueForAkey (IOException) " + exeption);
            return true;
        }//modifyValuesInApplicationNetworkingConfiguration()I did it following a pattern that I found in the tutorial.
    It looks to me to be correct, but it doesn't work..
    What it is wrong there ?
    I need some help to fix this problem.
    thank you
    regards
    tonyMrsangelo

    hi,
    thank you for answering me
    the function doesn't work because, when the code is executed, the
    value of the property (for the key that demand to be modified) doesn't change.
    I am not sure about the part of the function that fails
    (I know only that no exceptions are raised).
    I run this function debugging the program, and
    I realized that the .. the bug, in the program, come because the value of
    the property that is expected to be changed it is not.
    I made several tries to learn more about the fault....
    but all I can learned is that, when I open the property file (using the
    NetBeans IDE) the value of the property doesn't change..
    thank you
    regards

  • How to invoke a plug-in menu item via Javascript?

    Hi, I installed a plug-in on my Acrobat Pro v11, it shows a plug-in menu, and there's one menu item in this plug-in menu dropdown. I can manually select that menu item and it does what it's designed to do.
    My question is, how do I use javascript to invoke it, to achieve the same result as when I manually select that menu item?
    I tried using this "app.execMenuItem("name-of-menu-item");" under my click event of a button on the PDF form, but it didn't work.
    What have I done wrong? How to make it work?
    TIA

    Thanks to all those who responded.
    Actually I got it working soon after I posted the question.
    However, I don't know, my trial&error way seems to be a little different from all those documents I read. 
    So, I am not exactly sure if it's the correct way to do this sort of thing or not.
    It certainly is not very end-user friendly IMHO.  
    I will describe what I did below, if you know of a better way, please let me know, thank you.
    First, I put a folder-level script in the Acrobat install folder, the so-called "app" level;
    because when I used the getPath("user", "javascript") call, it returned an error without giving me the user-level path. 
    Anyway, my script (the .js file) looks like this:
    xyz = app.trustedFunction(
                 function() {
                  app.beginPriv();
                  app.execMenuItem("ADBE:myxyz");
                  app.endPriv();
                  return;
    Then, on my form's button-click event, I make a call
      xyz();
    and that got it to invoke the menu item "myxyz" successfully.
    But... I can't say I like my solution:
    1) I don't like the .js file, because I'll have to put it in all my users' Acrobat install folders.
         Extremely inconvenient.
         Is there a way to make it work without using the folder level script???
    2) The script itself, I am not sure if it makes sense or not.
         I can't say I understand all these trustFunction and Security stuff;
          it just so happened that it worked for me, but I don't know why.
          so, maybe there could be a simpler script that can also work?
    3) If I put the "beginPriv()" , "execMenuItem()" and "endPriv()" lines directly in the Button-click event,
          I got an error message in the Acrobat console, something like:  "your security settings does not allow....";
          in fact, I tried many many different ways to write this Button-click script, none of them worked without the folder-level .js file.
          But I hope somebody could come up with a way to make it work without the folder-level script file....
          Is there a way to change the "security settings" without using the .js file?
    4) The execMenuItem is also a headache, sorry about complaining... but... sometimes it just silently exited without doing anything,
          and without returning any error messages... how am I supposed to know what went wrong when it's so quiet?!
           Furthermore, why does it insist on taking the full name of the menu item?  I mean, why do I must put the "ADBE:" part in there?
          there's no other menu item named "myxyz", right?
          I remember Adobe's founders once said that "making our customers' lives easier" was what drove them to work everyday.
          execMenuItem() certainly didn't listen to what they said.

  • How to change pdf file properties?

    Hi all,
    Preview works great at generating PDFs from Word files, but the metadata fields (e.g., author, title, etc.) don't come over accurately. In Preview, when I click "Get Info," the metadata fields have different values than the original Word document had.
    Anyone know how I can edit the info in the pdf file? Even if I open the properties window through the Finder instead of Preview, I can still only view them, not edit them.
    Thanks

    It isn't actually Preview's fault - at least, I doubt it. I expect you would see the same in any viewer. It could be Word's fault or it could be Apple's underlying PDF creation software. Apple's distiller respects this data when created in other ways, though.
    I didn't suggest the text editing option because it is a little hair-raising editing binary files in that way and I assumed you probably wanted a slightly more user-friendly option. I can see it working if your need is infrequent, though - especially since if anything does go wrong, you can always recreate the PDF from the Word source.
    Good luck with it, anyway.
    - cfr

  • How to invoke Debug from Oracle Menu running on WEB?

    ENVIRONMENT:
    Oracle Forms 10g resides on Linux server.
    Forms are called from the Oracle Menu.
    Runs on company-wide WEB intra-net using Internet Explorer version 6.
    User workstations are PC running Windows XP version 5.1.
    PROJECT:
    Create Oracle Menu option named: DEBUG.
    After clicking on DEBUG, control returns to the Menu.
    Any Form subsequently selected from the Menu will run in debug mode.
    So every trigger firing in the Form will cause a message displayed on screen.
    This will continue to happen whenever a Form is selected.
    This continues until DEBUG is selected again...to toggle off.
    QUESTION:
    Is this possible?
    If yes, how to do?

    Possible: maybe.
    How to do: this bean lets you get the values of the forms applet parameters and also set them. Perhaps debug_messages is settable in this way.
    I've never found the debug_messages option to be very useful - it's usually fairly easy to work out which triggers are running and if there's an error then forms tells you which trigger it ocurred in. If the above (or anything else) doesn't work then you could use something like the package I posted Re: Zdebug -- Download a Forms debugging message tool, but it would mean having to code your own debug messages into the forms. Adding a new procedure to turn debugging on or off, or even to use a message level like forms has, would be quite simple.
    eg,
    -- new package variable:
    debug_on BOOLEAN := TRUE;
    PROCEDURE toggle_debug IS
    BEGIN
      debug_on := NOT debug_on;
    END;
    -- write_log becomes:
    PROCEDURE write_log(
      p_text IN VARCHAR2,
      p_indent PLS_INTEGER DEFAULT 0) IS
    BEGIN
      IF debug_on THEN
        write_log_internal(p_text, p_indent, 'N');
      END IF;
    END write_log;
    etc

  • How to transfer windows files from old macbookpro under bootcamp to new notebook

    Hi all,
    I'm currently using both Mac OS and Windows XP on my macbookpro, and I'm buying a new one. I know how to transfer everything on the Mac OS, but how do I do so for the Windows part. Please advise.
    Thanks in advance!

    Drag and drop copy the iTunes folder to a external hard drive on Windows, then take it to the Mac and use iTunes there to import it.
    If you want to read/write the external drive between Mac's and PC's, right click on the drive and format it exFAT or FAT in Windows, not NTFS.
    Some Mac's can read NTFS, but not write to that format as it's proprietary.
    When you format the drive, all data will be erased on it, so make sure before you do so.

  • How to repeat IVR file in Menu(M) microapp

    I am having a setup where i am using Network VRU script M,Media.wav . i am using it with Run external script object in ICM.
    problem here is that my Media file play only for a single time. i want to repeat this annoucement which is not happening ?
    Call flow is as follows.
    Call get queued to Skill group. if agent are busy call should give a queue annoucement " All agents are busy be in queue or press 1 for voicemail.
    Above annoucement file play for one time but go to silence mode after that.
    i am using Runexternal Script object with M,media file microapp. success node i have connected to CED to collect digit for voicemail.
    while X node is connected to wait object and then again connected to Runexternal Script node.
    Screenshot are attached for reference.

    This is your first microapp script, correct?
    In case of agent busy i have connected queue to skillgroup object X node to Run external script .....
    That's wrong. If all the agents are unavailable and it queues the call, it comes out the check port, not the X port. If it comes out the X port, it's probably because your "condition if" failed.
    . but if i am not pressing anything at no input condition of Run external script media file is not repeating i want it get it repeat three times  . media.wav is playing only one time and call getting disconnected if i dont press anything.
    No you don't. You are saying to the caller "Press 1 for voice mail or just stay on the line" so you certainly don't want to repeat this. You really want to just play this once. The specifications I use when I do this is to set the "no entry" tries to 1 and override the custom messages.
    Check the CVP logs. If the call is coming out the X port of the Run Ext Script, it's because there is an error. Now it may be an error you are expecting (like reaching the max number of no entry tries) but you need to catch it and process it. In your case it could be because it can't find the system message "please make a selection".
    Callflow is simple . call comes to ICM script which is forwarded to CVP application for welcome annoucement and from there it is coming back again for agent getting it to icm object (queue to skillset)
    Let's look at your script again.
    It looks like you set up for Audium (CVP VXML) and call the application "Hns SD Project" through PlayVXMLScript node 149 (I assume this is GS,Server,V). Is that your Welcome? Why does the X out of 149 go to 192?
    Now it goes to the Q2SG. If no agents are available, it goes to node 191. How can 191 go to both 192 and 193?
    microapp.media_server should be set to a key word like "media" and resolve this on the gateway. Why is this set to "http://ms/en-us"?
    The locale will kick in and append the locale - which you don't override. That's en-us. So it will make this "http://ms/en-us/en-us/app" and this is going to be wrong.
    196 failure goes to 197 (wait) which is illegal and then goes back to 196. What are you doing?
    This script is full of errors. It cannot possibly validate.
    Regards,
    Geoff

Maybe you are looking for

  • Looking for a recently played tracker

    I'm using ITunes 8 and Tangerine BPM earlier to build my Jogging playlists, but i'm looking for something to tell me more than just the skip count, does any one know if any way, or any App, that can tell me at what point of a song skipped it. Help is

  • Sending an email to multiple recipients

    I'm trying to send to an email to to a few hundred addresses (a gig announcement- I'm a musician), and Apple Mail won't let me. The addresses are in a group in the Address Book. I use to do this on my G5, but this computer won't allow it, even though

  • Forms Migration to 11g, RUN_PRODUCT must be declared

    Hi All, I'm performing forms migration from 10g to 11g, I used Forms Migration Assistant to Migrate forms, But if a form is calling reports then those forms are not getting compiled and giving the error RUN_PRODUCT must be declared. I know that RUN_P

  • FM for list of holidays

    Hi Friends, i need a Function module for knowing the list og holidays based on emplyoee subgrouping and personnel subarea grouping and workschedule as shown in PT03 transaction. regards Kumar M

  • How do you Debug start routine?

    Hi gurus How do you Debug start routine? Thanks in advance Raj