Could java deal with shortcut/link files ?

Hi all,
We could often use the shortcut(.lnk) or link files on Windows or Unix.
Could Java class deal with these files directly ? That is, could it got
the target file of the shortcut link files? So that, we could use the target file exactly the same with other normal files.
Any comments and help are welcome. Thanks.
-GeorgeZ.

Be aware that MS .lnk files are extremely different from what you use in Unix. In Unix, the OS resolves links automatically, and the application never even knows they are there. In Windows, this is absolutely not the case, and it takes a bit of work to get the windows shell to tell you where the link is pointing.
If you absolutely have to dereference .lnk files in Java you'll need to use JNI. The JNI interface will be the absolute easiest part of this, though. Getting a resolved .lnk in C++ is a major pain in the neck (about 50 lines of code).
- K

Similar Messages

  • Can Java deal with Roman characters correctly ?

    I am making a Java programme to insert some Roman characters such as TUV (multibyte) to Oracle8.1.7 database .
    Database character set is JA16EUC .
    As soon as I inserted those letters into the database , the letters will become ??? , why ?
    As I have used a Oracle8i tool named nativa2ascii to make similar transmition , but failed ?
    So I'd say , Java presently (SDK1.3.1) cannot deal with this situation , right ?
    Thank you for your great kindness !

    I don't want to uncompress the file.
    The idea of dealing with a compressed file is to hopefully save overhead that reading a big file has. I want to manipulate the data internaly without uncompressing the file. I can do it with a zip file but my 15M text file become 2M with zip and 96K with rar file. A huge difference.

  • Hi, I'm a new Mac user and I want 10.8.2 but i can't get that unless I have i have 10.8.1 and I cant get that unless I have 10.8. Now I was wondering if anyone could provide me with a link that would allow me to download this version?

    Hi, I'm a new Mac user and I want 10.8.2 but i can't get that unless I have i have 10.8.1 and I cant get that unless I have 10.8. Now I was wondering if anyone could provide me with a link that would allow me to download this version?

    Again, that's not a problem - if you purchase Mountain Lion through the App Store, it's been updated to 10.8.2 - and when there are other updates available, you can just download and install them as well.
    Just go to the App Store and purchase and install ML. Then run Software Update (Apple menu) to see if there are any updates available for your machine. I keep my System Preferences>Software Update prefs set to check automatically -
    Some people would rather check manually. No big deal, just buy it and install it.
    Clinton

  • Howto deal with multiple source files having the same filename...?

    Ahoi again.
    I'm currently trying to make a package for the recent version of subversive for Eclipse Ganymede and I'm almost finished.
    Some time ago the svn.connector components have been split from the official subversive distribution and have to be packed/packaged extra. And here is where my problem arises.
    The svn.connector consists (among other things) of two files which are named the same:
    http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/features/org.polarion.eclipse.team.svn.connector_2.0.3.I20080814-1500.jar
    http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/plugins/org.polarion.eclipse.team.svn.connector_2.0.3.I20080814-1500.jar
    At the moment makepkg downloads the first one, looks at its cache, and thinks that it already has the second file, too, because it has the same name. As a result, I can neither fetch both files nor use both of them in the build()-function...
    Are there currently any mechanisms in makepkg to deal with multiple source files having the same name?
    The only solution I see at the moment would be to only include the first file in the source array, install it in the build()-function and then manually download the second one via wget and install it after that (AKA Quick & Dirty).
    But of course I would prefer a nicer solution to this problem if possible. ^^
    TIA!
    G_Syme

    Allan wrote:I think you should file a bug report asking for a way to deal with this (but I'm not sure how to fix this at the moment...)
    OK, I've filed a bug report and have also included a suggestion how to solve this problem.

  • What is best way dealing with large tiff file in OSX Lion?

    I'm working with large tiff  file (engineering drawing), but preview couldnt handle (unresponsive) this situation.
    What is best way dealing with large tiff file in OSX Lion? (Viewing only or simple editing)
    Thx,
    54n9471

    Use an iPad and this app http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=400600005&mt=8

  • Can SQL*PLUS deal with 'flat ASCII files' (input ) in UNIX ? and how?

    Can SQL*PLUS deal with 'flat ASCII files' (input ) in UNIX ? and how?

    No, but PL/SQL can. Look at utl_file.
    John Alexander www.summitsoftwaredesign.com

  • Premiere Pro 2.0 slows when dealing with larger video files

    I'm having issues with Premiere Pro 2.0 slowing to a crawl and taking 60-90 seconds to come back to life when dealing with larger .avi's (8+ mins). When I try to play a clip on the timeline, drag the slider over said clip, or play from a title into said clip on the timeline, Premiere hangs. The clips on question are all rendered, and the peak file has been generated for each different clip has well. This is a new problem; the last time I was working with a larger clip (45+ mins, captured from a Hi-8 cam), I had no problems. Now, I experience this slow down with all longer clips, although I've only dealt with footage captured from a Hi-8 cam and also a mini-DV cam. This problem has made Premiere nearly unusable. I'm desperate at this point.
    System:
    CPU: P4 HT 2.4ghz
    Ram: 2x 1gb DDR
    Video: ATI Radeon 9000 Series
    Scratch Disk: 250gb WD My Book - USB 2.0 (I suspect this might be part of the problem)
    OS: XP Pro SP2
    I'm not on my machine right now, and I can definitely provide more information if needed.
    Thanks in advance.

    Aside from some other issues, I found that USB was just not suited for editing to/from, and on a much faster machine, that you list.
    FW-400 was only slightly better. It took FW-800, before I could actually use the externals for anything more than storage, i.e. no editing, just archiving.
    eSATA would be even better/faster.
    Please see Harm's ARTICLES on hardware, before you begin investing.
    Good luck,
    Hunt
    [Edit] Oops, I see that Harm DID link to his articles. Missed that. Still, it is worth mentioning again.
    Also, as an aside, PrPro 2.0 has no problem on my workstation when working with several 2 hour DV-AVI's, even when these are edited to/from FW-800 externals.
    Message was edited by: the_wine_snob - [Edit]

  • Deal with missing / renamed files via COM interface

    Hello,
    I'm trying to find some way to programmatically identify missing files in iTunes, including where iTunes is looking for the file, and if possible to point iTunes to the correct path. It's very straightforward to detect missing files, the original path could probably be obtained by analysing the iTunes xml file, but I can find no programmatic way of telling iTunes where to look. Simply deleting the missing file and then adding a new file from the new location is not acceptable.
    The reason for wanting to do this is very simple. I've a custom written backend music library management system that presents the library to iTunes as a set of .m4a files on a read only network share. From time to time, new files will appear, existing files will be updated or renamed, and files may be deleted. What I'd like to do is to write some simple vbscript that will keep iTunes in sync with this set of files.
    Most of the functionality it easy. The difficulty comes with dealing with renamed files. I can identify missing files by looking for those with a null location. If I can then find out what the file was previously called, I can then quite readily determine what it will have been renamed to. At this point however, I can find no way to update iTunes. As previously mentioned, just removing and re-adding the file isn't acceptable, as it will then disappear from any devices synced with iTunes.
    Does anyone have any clever ideas how to achieve this. The best idea I've come up with is to brute force the .itl file, and deal directly with that. I'd really rather not though, and it'll be a lot of effort, and may well spontaneously stop working. I'd also like to achieve the same effect of a mac platform, probably with Applescript, but am having basically the same issues.
    Regards,
    Chris
    The reas

    Christopher,
    I, too, wish this could be done. Unfortunately it looks like Apple does not currently have this capability (i.e. the Location property is read-only). I've submitted an enhancement request for this feature (as I'm sure many others have), but this appears to be by design. It appears you have already figured out the only workaround I'm aware of -- adding the file again (and optionally copying the properties from the old file to the new one).
    But by all means, please submit a bug report at http://bugreport.apple.com. Maybe if enough people gripe it will get implemented. You'll need an ADC account to submit a report via that link. If you don't have an ADC account already, you can get a free "ADC Online" account (or, of course, buy a higher-level account if you want).
    If you don't want to get an ADC account, you can use the Apple feedback page (http://www.apple.com/feedback) -- but I think you'll get a better response as a developer via the bugreport site.
    BTW, if you find good documentation on the iTunes Library file, I'd like to see it! I can't find any anywhere. Of course, if you figure it out and you don't want to share that's up to you...

  • Numbers 09 is slow dealing with relatively large files

    As some of you might know, Excel 2008 is painfully slow when opening relatively large files (about 12000 rows and 28 columns) that have simple 2D x-y charts. FYI, Excel 2004 doesn't have the same problem (and Excel 2003 in the XP world is even better). I purchased iWork09 hoping that Numbers 09 will help, but unfortunately I have the same problem. iWok09 takes more than 5 minutes to open the file - something the older versions of Excel could do in seconds. When the file opens up, it is impossible to manipulate it. I have a MacBook with 2.4 GHz Intel Core 2 Duo and 4GB of RAM running OS x (version 10.5.6).
    Has anybody else experienced the same problem? If so, is there a bug in iWork09, or is it because it isn't meant to deal with large files.
    I appreciate your response.

    Numbers '08 was very slow.
    Numbers '09 is not so slow but it's not running like old fashioned spreadsheets.
    I continue to think that it's a side effect of the use of xml to describe thr document.
    We may hope that developers will discover programming tips able to fasten the beast.
    Once again, I really don't understand why users may buy an application before testing it with the FREE 30 days demo available from Apple's Web page.
    Yvan KOENIG (from FRANCE dimanche 8 mars 2009 13:13:18)

  • Something 's wrong with the linked files

    I have a web movie with 6 linked images; if i publish with
    director mx, they load perfect; if i publish with the director 11
    versión, they don't load. I think the problem is with the
    path, but i can't find where. any idea?
    sayeg

    I think i found the answer. but i need ideas, please.
    sayeg

  • What's the best way to deal with Canon pf24 files?

    I'm working on a project shot mainly with Canon DSLR footage (1080p, 24fps.) But now I would like to add some footage from a Canon Camcorder recording in AVCHD format. It would seem to make the most sence to shoot at 24fps, or as Canon calls it pf24. The question is, is premiere or media encoder able to interpret the canon footage and do the proper 3-2 pulldown? Or should I record in 30fps (or pf30) and convert the footage to 24 fps in media encoder before adding it to my project? Keep in mind that I can't just shoot everything in 30p because the bulk of the project is already shot at 24p. Also, I am using CS6. Does anyone have experience with this? Thoughts?

    Ed you are soo right!   PP does not automatically fix the problem by dropping the footage into a 24p AVCHD sequence.  If you have CS6 PP and AE you can use easily fix this ugly problem.
    Excuse me why I step up on my soapbox - Adobe Premiere Pro development team -- please fix this @$%& problem asap!!!!  The PP Interpret footage function is a joke without it!
    The best solution I could come up with after investing a ton of time into this is to use AfterEffects inside PP as a filter.  Therefore you will not have to duplicate or re-render all your PF24 footage to create true 24p clips.  You work with the same source clips throughout the entire process.  Here's what you do - 1st create a 24p AVCHD sequence in PP and drop your PF24 clips into it. Now you can select individual clips or the entire sequence of clips and "right click" and select "Replace with AfterEffect Composition".  This will export the selected clip(s) into AE.  Now you can use the world-famous AE Interpret footage function to remove the pulldown issues.  Inside AE right-click the clip - select Interpret footage - select the fielding (in my case it was Upper Field First) - then finally the "magic bullet" - select "Guess 3:2 Pulldown" button.  Now when you jump back into PP you will be working with beautiful "TRUE" 24p footage.
    All the best!

  • What's the deal with backing up files to a cd rw?

    I must be having a dummy problem. help files seem to be sending me in circles. To backup individual files to a cd rw in Windows, all I did was drag the file to the cd rw and I could later easily overwrite the file just by dragging the newer version in. It seems a big project in OS X, ending with the cd being closed, not allowing the file to be overwritten. Can anyone point me to a link on how to do this? sheesh...
    thanks,
    --h

    Thank you. About four hours after I wrote that I remembered in XP I need a third party app to do that and was wondering if that might be the deal.
    --h

  • Error in Java console with lop.properties file

    Hi,
    I keep getting this error on my java console when opening XI.  Somebody have an idea why?
    Thanks
    Yves
    NFO: using logging implementation "Dual SAP/AII Logging"
    INFO: log configuration file "C:\Documents and Settings\berniery\Desktop\log.properties" could not be read
    INFO: using simple log configuration
    <<< frog.jar: version 5.1.4  08/20/04  sap.theme: Streamline >>>
    #8 09:33:22 [AWT-EventQueue-0] ERROR com.sap.aii.utilxi.swing.toolkit.ExceptionDialog: Throwable
    Thrown:
    MESSAGE ID: com.sap.aii.ib.core.roa.rb_all.ROA_MOA_NOTCOMPLETED
    com.sap.aii.utilxi.misc.api.ResourceException: Attempt to access the 1 requested objects on 1 failed. Detailed information:
    com.sap.aii.ib.core.roa.RoaObjectAccessException: Unable to read object Adapter Metadata BIC | http://seeburger.com/xi (a0d754d06f9f11d992c0c8340a0068a7) of type AdapterMetaData from application REPOSITORY on system REPOSITORY. Detailed information: Software component version with GUID a0d754d0-6f9f-11d9-92c0-c8340a0068a7 does not exist
    com.sap.aii.ib.core.roa.RoaObjectAccessException: Unable to read object Adapter Metadata BIC | http://seeburger.com/xi (a0d754d06f9f11d992c0c8340a0068a7) of type AdapterMetaData from application REPOSITORY on system REPOSITORY. Detailed information: Software component version with GUID a0d754d0-6f9f-11d9-92c0-c8340a0068a7 does not exist
         at com.sap.aii.ib.sbeans.gen.GeneralSessionBean.wrap(GeneralSessionBean.java:156)
         at com.sap.aii.ib.sbeans.gen.GeneralSessionBean.wrap(GeneralSessionBean.java:131)
         at com.sap.aii.ib.sbeans.misc.MiscServicesBean.getAdapterMetadata(MiscServicesBean.java:242)
         at com.sap.aii.ib.sbeans.misc.MiscServicesRemoteObjectImpl10.getAdapterMetadata(MiscServicesRemoteObjectImpl10.java:2028)
         at com.sap.aii.ib.sbeans.misc.MiscServicesRemoteObjectImpl10p4_Skel.dispatch(MiscServicesRemoteObjectImpl10p4_Skel.java:285)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)

    Hi Yves,
    Of course, here it is:
    " Attempt to access the 1 requested objects on 1 failed. Detailed information:  com.sap.aii.ib.core.roa.RoaObjectAccessException: Unable to read object Adapter Metadata File | http://sap.com/xi/XI/System (3b787a8035c111d6bbe0efe50a1145a5) of type AdapterMetaData from application REPOSITORY on system REPOSITORY. Detailed information: Software component version with GUID 3b787a80-35c1-11d6-bbe0-efe50a1145a5 does not exist"
    do you have any idea?
    Thanks and Kind Regards

  • Dealing with old AVI files - what is best format for 'master' storage.

    I kept a lot of original AVI footage from the original DV Tapes. I see these as the MASTER material.
    I also have the same footage on MPG.
    My new Smart TV will link to ny network and can see the AVI files but not play them.
    It seems i need to convert them to a Divx format of AVI in order to play these files...
    Question is therefore 2 fold.
    1 - I want store/keep and have as 'masters' the highest quality of the orginal recordings. So is the best 'original',  the orignal DV Tape AVI files or would editing these via CS6 and outputing an MPG or MP4 format be as good as the 'original'.
    Despite 15 years messing about with digital editing, i remain baffled by what constitutes 'ORIGINAL FORMAT'.
    2 - How can I convert the AVI files from current set up to a Divx Codec that my SMART TV will recognise and play.  WIll CS6 do this or Encoder ?  I cant see an option.
    I've tried all AVI outputs and the SmartTV cannot read any of them.
    Regards
    Kev.

    About 4 years ago I transferred all my old 8/Hi8/DV tapes onto my PC exactly the same as you have done.
    The AVI is a standard introduced by Microsoft http://en.wikipedia.org/wiki/Audio_Video_Interleave gives the detail and history
    Smart TV's in 2012 could play AVI's or at least the youtube demo I just watched did so you may want to check the manual to find out precisely what your TV will play
    Keep the originals as they are, do nothing to them.
    Editing and output to whatever the TV can play, MPG and MP4 should be OK and as future proof as possible.
    Try exporting a short say 1 minute of mixed footage to MPG and MP4 and view these, I did just this with my network and Sony TV and they streamed great, then I edited all that old footage to MPG and MP4 (I saved the same movie to both formats just in case).
    Do remember that your AVI's will be SD and these will be upscaled by your TV to fill the HD screen
    Divx is great but quite lossy and there has been a myrad of types over the years so future proofing may be an issue.
    I cannot advise on CS6 as I use CS5.5.
    Finally before you ask.......edit SD AVI's export movies to DVD's and playing back via a good quality upscaling Bluray player will probably give the best HD results, far better than thinking about software upscaling your AVI's to HD
    Col

  • Java Mapping with a huge file

    Hi to all,
    I have a strange problem in my integration process.
    there are two java mappings in order to create bapi input:
    -the first mapping keeps a file of 5Mb and transforms it in a file of 50MB (and it works!)
    -the second mapping keeps the file above and has to create another file of 50Mb.
    And this second mapping doesn't work on the customer system, while everything is ok on my developing system.
    On customer system I don't have any error message: SXMB_MONI gives me a "clock" and the message says: mapping in process..... It remains in this status "forever"!!!
    Why does it work on my system with same code and same file and it doesn't on customer's?
    There is any system parameter that I can check to see if there is some difference in system configuration?
    Thank for the help!
    bye,
    Antonio

    Hi Antonio,
    ...seems to be a hardware problem (sizing).
    I would write some logging in my java to see how far it comes.
    Regards Mario

Maybe you are looking for

  • Mods... a cry for help!

    Mods.. really hoping you can help. BT seem to be making a mess of my order, which isn't helped by being passed around from person to person as they all stratch their heads. Any chance you can help... Here's my tale of woe trying to order BT Vision an

  • Need step by step instructions for iWeb 08 and Autoviewer

    I'm working with iWeb 08 and trying to make a photography website. I'm also using Lightroom 3 to export my portfolio galleries. I'd like to use Autoviewer as a way to view my photos on my site. I've done a few searches and can't figure out how to emb

  • Cannot drag and drop, desktop icons disappear!

    When I try to drag any desktop icon, all of the icons disappear. Here's the crash report: Path: /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder Version: 10.3.3 (10.3.3) PID: 346 Thread: Unknown Link (dyld) error: dyld: /System/Library/C

  • N8 using bookmarks on shortcuts widget

    HI, you can on the homescreen use the widget to put 4 links too applications or bookmarks or folders.  Now i encountered the problem that i wanted to put in 4 bookmarks on in that widget. But the problem is it shows exactly the same icon for every bo

  • IPhoto deleted all my content!!

    I was browsing through my videos and iPhoto randomly stopped saying it needed to rebuild my library because of inconsistencies. I said "ok" because I didn't really have a choice. It froze while "rebuilding," shut down and when I opened it all 350 vid