JFileChooser opens .lnk files as separate files

When .lnk file is chosen in a JFileChooser,
it returns this .lnk file. How to make the chooser to return the file this .lnk links to ?
THANK YOU!

Dear Dude, the .lnk files are Win32 executable files.
(and so can be infected by virus)
The only true links I know are in Unix-like file systems !!
Windows LNK files are system-specifics, so it is not Java conern to handle them !
Do as rustypup advise you to do, but it is easier to say than to do !!

Similar Messages

  • I am trying to open PDF files from safari, but when I click on them they open in a separate window and the information is encrypted. Any ideas on how to get them to open them in Adobe? Any help please!

    I am trying to open PDF files from safari, but when I click on them they open in a separate window and the information is encrypted. Any ideas on how to get them to open them in Adobe? Any help please!

    The pdf is loading as html code. If you save it, it will download as :
    605124.pdf.html
    Change the extension to .pdf
    And it opens and works perfectly, I just tested it:
    Use this link to download it automatically:
    http://saladeaula.estacio.br/arquivo.asp?dir=00/1020624/605124.pdf&num_seq=59828 4

  • I tried opening my Mac files to windows by using Macdriver 8, however upon opening the file my previous mac folders were converted to windows shortcuts and upon returning to my mac pc, all my folders has a .lnk file extension which I cannot open.

    I tried opening my Mac files to windows by using Macdriver 8, however upon opening the file my previous mac folders were converted to windows shortcuts and upon returning to my mac pc, all my folders has a .lnk file extension which I cannot open. Need help very badly since the hard drive I use is the only back up I have for my very old pics. Thank you...

    Backup with cloning software your HD to have an exact copy of it as it is.
    Use this methodology to recover your partition.
    Have fun,
    Leo

  • Opening the file selected by JFileChooser()...

    Hi,
    can anyone explain how to open a file selected by using JFileChooser()...
    Thanx ..
    Regards,
    Sangeetha..

    ya..how to open a file given a file name??
    am new to java programming & plz dont take otherwise if i have asked a nonsense Q.,
    anyways, Thanx for sparing ur time & answering..
    regards,
    Sangeetha..

  • After deleting some unnecessary Apps in my Macbook Pro, I plugged my thumb drive to discover that I can't open my files, which I normally can, because they've turned into ".lnk" files. Please help.

    I have files in my thumb drive that I cant open. Inside my thumb drive, I've organized files in folders but I have files I havent put in folders yet. Those files turned into .lnk files.
    My theory is, my thumb drive caught a virus from another laptop because I copied files from my colleagues laptop.

    There are no viruses for a Mac, new theory required. .lnk files are aliases to a file, what did you delete?

  • Lnk files are appearing and Adboe acrobat reader can't open them

    2 days ago I sent a file from my other laptop to this Toshiba one, when I went to open it it didn't open, it said it was a LNK file, now all the icons on my desktop are showing as lnk files and saying adobe can't open them as they are not supported or not coded correctly.
    Also when I click on all programmes they are all saying Adboe can't open them? All my files seem to have changed? Has anyone got any ideas what has happened and also how I can reset it?
    Thanks

    Hi,did you copy and paste the files or drag and drop the files through network folder,lnk extensions are shortcut links,try reconnecting the laptop to the network and try opening again,if you need the files on your laptop make sure the whole file is sent,check file size by right clicking then selecting properties the file size is there then compare both files.

  • JFileChooser and windows shortcuts (lnk files)

    Is there any way to get JFileChooser to follow windows shortcuts? I am using 1.4.1_01 on XP, which is full of "helpful" shortcuts to things like shared picture folders, etc, which JFileChooser chokes on.
    I would think Sun would implement support for the underlying lnk files, since this is an OS issue.

    Ok, I found a bug report for this, with a workaround hack. I'll post it here for anyone who is interested.
    http://developer.java.sun.com/developer/bugParade/bugs/4356160.html

  • Problem opening html file in separate browser window

    I have an forms app where a user can download a file from the database and then open that file on the client. After the file is downloaded, I use webutil_host.nonblocking ('cmd /s start' ||filename) and it works fine for .doc, .xls etc. as these open a separate program. Problem occurs when user downloads an html file, the command opens the file in the same browser window as forms is running, thus ending the forms session.
    I've tried web.show_document('file:\\'||filename) but that fails as I assume it is looking for the file on the application server instead of on the client.
    Any ideas on how to workaround this issue?

    Well I searched around on google looking for a java servlet or jsp example and couldn't find one. I know they are out there becasue thats where I got mine about a year ago. I dont work at the same place anymore and couldnt take my code with me. Anyway, you would use this servlet for any document (xls, doc, html, txt, pdf) that is in the blob column in the db. The servlet would send a mime type first in the response and then the blob. The browser would display the blob in the associated helper application on the client (Excel, Word, IE, notpad, Adobe Acrobat Reader, etc..). The user can then save the document to their hard drive if they wish. This is faster becasue the clients hard drive isnt involved in the transfer from db to client. The user can then edit the document and reupload the document. Thats how we did it.
    Maybe somebody else can post a link to a generic blob download servlet? Thanks..

  • Opening a a .lnk file to a word .dot file

    ''Duplicate post, continue here - [https://support.mozilla.com/en-US/questions/786768]''
    Hi I am trying to open a .lnk file to word template file that contains macros, when i select the open with word for this file type firefox will open the link file but the macros will not work in the document.
    Is there any thing i can do to resolve this issue

    Adobe do not offer any products, or help, in hacking protected files.

  • Adobe Bridge CS6 (Mac) won't open .arw files from my Sony RX100. How do I get and install the right version of Camera Raw?

    Adobe Bridge CS6 (Mac) won't open .arw files from my Sony RX100. I was told to update Camera Raw to at least 7.2. I tried to download this but got a DNG Converter instead. Where is Camera Raw? (it does not show up in a search of my hard drive. There is a folder of camera profiles but no extension or plug-in with this name). How do I find out what version I have already? How do I get the correct version?  . . . OR . . . is it the case that Bridge will never open Sony raw files directly and I will have to do a separate conversion process every time I want to use a raw file??. Can someone explain this?
    Thanks.

    A Good samaritan answered this for me on another forum
    How to update Camera Raw

  • Opening a file with FILE_SHARE_DELETE mode (Only on Windows)

    Hi,
    We have an application that imports logs from several 3rd party vendor's applications. Basically what we do is import the logs in real time, i.e we do have a live FileInputstream connection to the log file. Now, when the 3rd party applications that rotate these logs (many of them do when they grow big or scheduled periodically), all unix flavors dont see to have any problem, while the windows does complain that the device or resource is busy and the original application is not allowed to rotate it. When i dug into the native code of windows jvm, i found that the file is not opened in the FILE_SHARE_DELETE mode and only with FILE_SHARE_READ and FILE_SHARE_WRITE modes. When we wrote a separate C++ application the opens a file with FILE_SHARE_DELETE mode, we found that the logs are rotatable.
    Now, how can we instruct the JVM to open a file with FILE_SHARE_DELETE mode? Is there any such implementation already or do i have to come up with another class extending the FileInputStream and use a totally different open method where the file is opened with this mode in the native code?
    Thanks
    Manava

    Hello,
    I think you can write :
    Runtime.getRuntime().exec("start.exe " + MyFileDialog.getDirectory() + MyFileDialog.getFile());
    So, "start.exe" choose the application (not valid for NT machine), ".getDirectory()" return the PATH and ".getFile()" return the NAME.
    Best regards from France
    Thierry

  • Can't open Illustrator file - "does not have the correct number of operands..."

    Right off the bat - Mac, 10.6.8, Illustrator CS4. I've seen different variations of this "...correct number of operands..." error on these boards, with fonts and other things as the culprit, but I haven't come across this specific issue yet. If someone has seen something along these lines please let me know.
    I work for a small design agency that uses Illustrator CS4 on a consistent basis. We have had an ongoing issue where random files that had been working fine will sporadically become corrupt, causing us to have to use the Document Recovery Mode and then edit the file in a text editor to fix the problem which does work for this issue flawlessly, other than the headache of having to do this repeatedly.
    Our workflow is such that we use a local area storage RAID which everyone uses to access the same client files. These client files are all in a series of nested folders we employ to keep all our separate client's work separate. The error arises when certain images are placed into a document, then the document is saved and closed. Upon trying to reopen the file we get an error message like this:
    Where the string "/CR0050_ret.psd" is the filename of the offending image. Basically what has happened is that in the actual code for the document, there is a string that starts as "%%IncludeFile....." which specifies the file's pathway on the local area storage we use. The last segment of that string is the image's filename, which has gotten returned to the next line down, and now the program cannot interpret that line in the code, so it cannot properly open the file. The file will open but only the content that is above the offending IncludeFile string is visible.
    (client information blurred out)
    This does not happen to all the "%%IncludeFile" strings in the document, and does not happen for all images on our local area storage. We know how to fix the problem through the Document Recovery mode and then editing the text. Once we return the filename portion of the code back up to the proper line, and save the file in the text editor, the file will open in Illustrator and show all the information contained within properly. However, if you save the file out again without making any changes, the same errors will propagate throughout the file's code again, and become unreadable prompting another document recovery. Insert endless cycle here.
    What we would like to try and find out is why is this happening, so we can prevent it from happening in the future. Is the image nested too far down in the hierarchy of folders? Are there too many characters in the file pathway string? What can we do to keep this from happening moving forward?
    I know that an easy answer is to copy the files over locally to our hard drives, and work from there, but this is not a very efficient way to work, as we are all collectively working on different files, utilizing common image resources. We like to keep one set of images so there is no duplication that may lead to the wrong image being sent out - "Oh you sent John's version? You should have sent Molly's version of the image for that file"
    We also downloaded the trial version of Illustrator CS6 to see if an upgrade would work wonders, but it does not, the problem persists when saving a recovered file in CS6.
    Any thoughts? Thanks in advance.
    ABK

    In Illustrator it is generally not a good idea to read and write directly to and from a server: http://helpx.adobe.com/illustrator/kb/illustrator-support-networks-removable-media.html
    If you really think you need to do it, then check your network thoroughly.

  • Can't open INDD file from icon

    I have an installation of InDesign CS3 (upgraded from CS2) that won't let the user open a file from it's icon. You get the error message of "<filename> is not a valid win32 application"   The file will open if you open InDesign and use the file open menu.  The icon isn't the InDesign icon either-looks like a doc file icon without Word installed.  I've gone into File Types (from the Tools-Folder Options-File Type window) and tried to manually made the indd file open with CS3 but that still didn't work (oddly when I try to use the CS3 icon it too has a generic .exe icon).<br /><br />If I log in as myself (admin rights on the Windows XP) and once I did the above it worked for me.  I gave the user full rights and tried the above again but it didn't work-still wouldn't open by clicking on the icon-just keep getting that error message.  Any help would be great as I can't seem to come across anything googled that is helping.

    This is a follow-up.  My question has been answered in that  did get to open the file as follows:
    By trial and error (based on responses)  basically I was able to open the file as a copy from inside InDesign. There are three options in the lower left had corner of the window, I picked copy after trying the other two. Up until this time I could not find any idlk file.
    Once I opened the file I backed it up and made another copy that I opened.  I went back to the original file and tried to open it from finder. It would not open. Still no sign of the idlk file.  But when I went back to open the work copy it opened but now the idlk file popped up in the finder  and it continues to do so every time I open any file associated.    This idlk file comes up with an icon that says "Locked"
    My only question now: Is there a way to unlock this file from whatever it is linking to? Does it make any difference at this point?
    I have learned this is a temp file of sorts that prevents changes to the original file. I would like to unlock the file so that it not connected to anything.
    I have moved or deleted all files that it might be linking to.  I have shut down other computers and hard drives using the same network. The idlk file come up every time. It goes away when I close the file.  I have also deleted it while the file is open. I deleted all attempts at creating Book files. I'v been through preferences and checked Assignments. It seems like once you make a copy of a file, the original is always looking for the copy? Or the copy for the original?
    So I'm working and making separate files for each chapter so that I can set up a book and have back-up and maybe create a whole new Book file that isn't linked to anything else but maybe that's not necessary.
    I've been working with InDesign for a long time and never encountered this phenomenon before.
    Thanks again for your responses.
    Jim

  • Error while running forge - Could not open DTD file

    Hi,
    I have a simple application created in Endeca,facing below error when I run baseline_update.sh
    FATAL   09/04/13 22:26:42.491 UTC (1378333602491)       FORGE   {baseline}: Error in file 'file:///../../endeca/apps/Sample/data/processing/Sample.analytics_config.xml' (line 2, char 58): An exception occurred! Type:RuntimeException, Message:Could not open DTD file 'file:///../../endeca/apps/Sample/data/processing/analytics_config.dtd'.
    Initially Forge was running error free, only changes we made were :
    1. Ingesting multiple XML files.
    2. Changed match mode of dimensions to Autogen
    Forge is unable to open any of the DTD files, for testing removed DTD reference line from Sample.analytics_config.xml.
    Forge fails again " FORGE   {baseline}: Error in file 'file:///../../endeca/apps/Sample/data/processing/Sample.cral_profile.xml...................................."
    Regards,
    Shruthi

    I've seen this type of error before when Forge is configured to read multiple files with spec *.xml.  Is that how you've configured your record adapter?  This configuration then collides with Forge XML config files merged into the same data/processing directory.
    From memory there's a couple of solutions for this - one might be to give the files a common name prefix if that's feasible, e.g. _data*.xml.  You could use a sub-directory to separate the files, but you'd need to modify your copy scripts.

  • How to open a file with a .Ink ending?

    I installed Dropbox (from Dropbox.com) and my files transfered from a windows computer were labeled with the .INK ending> was not able to open them on the mac... any ideas as to how or why?

    ascala wrote:
    I installed Dropbox (from Dropbox.com) and my files transfered from a windows computer were labeled with the .INK ending> was not able to open them on the mac... any ideas as to how or why?
    Your subject line refers to a .lnk file extension and the body of your post refers to a .INK file extension. Which is it? If it is .lnk then it is a link to a file, not a file. In Windows a file name ending with .lnk is a shortcut link to the file. You likely copied over the shortcut rather than the file itself. Therefor you can't open it because it is not there on your Mac.
    Message was edited by: BobTheFisherman

Maybe you are looking for

  • File Upload - When  is File saved in database

    Hi, I'm already using File Upload and Download in my application, which is working fine. Now I only need an information for better understanding. Is the file saved in the database table, when user selects the file from the file browse dialog or is it

  • Flatten to sring doesn't work properly.

    Using LV8.20, found "flatten to string" function under 7.x function group. but it doesn't work properly in lv8.20. Is there a function "flatten to string" function in LV8? Thanks.

  • Get clicked column header not working

    Here's what I'm trying to do: Have a multi-column listbox of elements.  Allow the user to select a few rows he is interrested in (and the become highlighted).  Allow sorting of the listbox by clicking on the column headers. I've got the listbox popul

  • 8330 screen is dark & get blinking red light (4blinks)

    My 8330 screen is dark and I get flashing or blinking red signal.  I have tried pulling the battery to reset and does not help.  Can anyone offer any suggestions? Thanks, JRW8 Solved! Go to Solution.

  • Smart album duplicates flickr photos

    I have a smart album set up with a condition "keyword contains ... ". The trouble is it also includes any photos uploaded to Flickr with the same tag. Is there any way to avoid this duplication? Thanks