Application programming and finding specific files

Hi there,
I'm doing some applications programming where the apps will actually be installed by something like InstallShield. The apps themselves need to be able to access many files and directories which all will be children of the directory of the application (e.g. MyApplication.dir will contain many files and directories, including the class files of the application itself).
But different OS's/users will place the directory in a different place so I cannot hard-code something like:
new Image("C:\\MyApplication\\Images\\logo.gif");
Does anyone know how to get the the location of the MyApplication directory at runtime, please?
Many Thanks.

set it relative to an environment variable
kinda...
apps_home\..\..\
tht mst work

Similar Messages

  • Will iCloud backup and push specific files from one MAC to another?

    will iCloud backup and push specific files from one MAC to another?

    This is what I get when I follow that Link, Winston.
    I am using Safari and I am sighned in with my Apple Id. I'm not sure what the trouble is but I can not seem to read that tip is there some other way for me to find it?
    Unauthorized
    It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake. 

  • I have recently updated my CC programs to the latest version and now all of my files wont open by default into their respective programs, only if I open the program and go to file open and open the file from there. How can I fix this?

    I have recently updated my CC programs to the latest version (CC2014) and now all of my files wont open by default into their respective programs, only if I open the program and go to file>open and open the file from there. How can I fix this?
    I have tried 'Open with' and the version of the program now installed on my computer isn't even suggested as an option and when I browse for it, the file wont open with it anyway

    On Windows (don't know about Mac), the latest version will always take over the file association, and become the default for indd files. It's impossible to change it.
    But there is a plugin for ID that makes this possible. Never tried it myself.
    https://www.rorohiko.com/wordpress/downloads/lightning-brain-soxy/

  • I previously had PS CS5 Trial installed but removed it using both Control Panel Programs and deleting all files from the CS5 directory on Program Files.  I then installed a purchased product from Adobe disc using the serial number on the case.  But when I

    I previously had PS CS5 Trial installed but removed it using both Control Panel Programs and deleting all files from the CS5 directory on Program Files.  I then installed a purchased product from Adobe disc using the serial number on the case.  But when I try to launch it, I get a screen headed Photoshop CS5 Extended Trial.  It asks for the serial number and says that my trial has expired.  It rejects the serial number from the Adobe case saying "This Serial Number is not valid for this product".  It thinks that I still have the expired Trial Version installed.  How do I convince it (the program) that the Trial Version is long gone and the currently installed product was installed with a valid and accepted serial number????

    Let me know how it goes. Go into your Adobe account and register your serial number asap.
    https://www.adobe.com/account/my-products-services.html
    That way, should you lose it or you need support, it is on record that it's yours and you can fetch your s/n it from anywhere.
    There are too may sad stories here, where people forgot and the box is buried or lost.
    Gene

  • Time Machine, Migration Assistant, and copying specific files to a new machine

    Things were running fine. Then repeating kernel panics! A fresh Mountain Lion install seemed to fix things. To test whether the panics were related to some application or preference, how can I restore only my data, specifically the Aperture library, iTunes library, and iMovie library and nothing else from my Time Machine backup? In other words, how can I see the file structure of the Time Machine backup so I can copy only specific files and folders?
    Thanks for any advice!

    Hey hp12c,
    Thanks for the question. The following article may provide the information you are looking for:
    Mac Basics: Time Machine
    http://support.apple.com/kb/HT1427
    Restoring specific files or folders
    Choose Enter Time Machine from the Time Machine menu and the restore interface appears. You can literally see your windows as they appeared "back in time."
    You can use the timeline on the right side of the window to reach a certain point back in time (the timeline shows the times of all backups on your backup drive). If you don’t know exactly when you deleted or changed a file, you can use the back arrow to let Time Machine automatically travel through time to show you when that folder last changed.
    Note: Dates in pink indicate the data resides on your Time Machine backup device. Dates in white indicate the data resides on your Mac. In OS X Mountain Lion and Lion, portable Macs have the feature of local snapshots. See this article for details.
    You can also perform a Spotlight search in the Time Machine Finder Window search field to find a file. Simply type the Spotlight search field and use the back arrow to have Time Machine search through your backups to find what you are looking for.
    Before you restore a file, you can also use Quick Look to preview a file to make sure its the one you want. Highlight the file and press the Space Bar to bring up a quick look.
    To restore, select the file/folder and click the "Restore" button. The file will automatically be copied to the desktop or appropriate folder.  If the file you are restoring has another file in the same location with the same name, you will be prompted to choose which file to keep or keep both.
    Thanks,
    Matt M.

  • Finding specific files in Time Machine archives

    So I have a whole bunch of audio files of different lines from 2001: A Space Odyssey on my computer. Or at least I did. They seem to have disappeared without a trace, and I can't track them down.
    Is there any way to search the archives of Time Machine for specific file names or wildcards? It seems to me I can only browser the folder tree, but I don't recall where on the drive I may have stored the files.
    dt

    Peggy Lynn wrote:
    Go to the finder and type Command-F. Type in the name of one of the files you want to recover in the search window. Beneath the search window click on File Name. Then without clicking on anything else click on the Time Machine icon in the dock. Click on the back arrow and Time Machine will take you back to the file when it was last backed up. If you click on the file it will show you the path in the bottom of the window. Then you can go to that folder, select all the files you want and click on Restore.
    Peggy, I tried your method described above. I've had a folder that used to live on my desktop but that I deleted some time ago. Inside I had a file, collage2.tif. After entering the name and click File Name (and at this point, I get the result window showing no found file - I had not clicked on anything else in the search window), I click on TM's icon. In TM, I click on the back arrow, and TM goes back in time, but doesn't show the file. [In fact it goes back to the very first back up.] However, if I look in the desktop folder and inside the subfolder that I had deleted (it shows up now since I've gone back in time), there's the file. I then checked to see if that folder/file existed on a more recent date (I wondered if TM want back in time to the most recent day that file existed) and sure enough, it exists in more recent days.
    I've tried this several times, searching "This Mac" and "Desktop", but TM doesn't find the file, even though I can manually find it.
    Message was edited by: pvonk

  • One Note application can not find a file SKU1A1.cab

    I have a problem i had te reinstal my computer en since than i have a problem whit one note. I hav ethe problem that the installtion program can't find the file SKU1A1.cab. My qeustion is how can i get this file? Do i have to use the recovery cd and if so can somebody tell me how i have to do it? Or is the problem that run office xp net tot one note 2003?
    Already thnx

    Hi
    Nice solution. I use OneNote very often but I never had this problem. Dikkie it will be nice if you can tell me did you have success using Microsoft solution.
    Thanks
    Bye

  • Locate to find specific file

    I'm trying to find an exact, one-off, file in my home directory, but locate is giving me various options:
    locate 9.txt
    gives me 9.txt & 99.txt; how can I find the specific file?

    locate 9.txt | grep '^9.txt$'
    except locate is going to give you path information so may
    locate 9.txt | grep '/9.txt$'
    Or you could try the 'find' command:
    find $HOME -iname '9.txt'
    Message was edited by: BobHarris

  • Finding specific files in TimeMachine.  I've somehow deleted all iCal content.

    I've somehow deleted all Calendar content (historical and future).  I wish to restore from TimeMachine.  How do I find and restore the last iCal file?

    If you synchronize any of your calendars with a server such as iCloud, disable that synchronization. Quit Calendar.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Calendars
    Right-click or control-click the highlighted line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A Finder window should open with a folder selected. Enter Time Machine and restore that folder from the snapshot you want.
    Relaunch Calendar and test. Your calendars should be as they were when the snapshot was taken. If you don't sync with a server, stop here.
    If you do sync some of the calendars with a server, select each one in turn and then select
              File ▹ Export ▹ Export…
    from the menu bar. You'll get ICS files with the filename extension ".ics".
    Re-enable sync. Usually, all the calendars you just restored will be deleted. That's not a problem.
    Create a new calendar on the server for each one you exported and want to sync:
              File ▹ New Calendar
    Then import the calendar from the corresponding ICS file by double-clicking it. Follow the prompts to import the new events to the calendar you just created.
    For calendars that you don't want to sync, just import them again. They'll appear in the calendar list under On My Mac.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • Finder does not "find" specific file on my seagate external

    I am new to Mac. (1 week). I have a seagate 1.5 TB external drive I used with my windows system. The drive just contains music, photos and PDF files. My new Mac recognizes the drive but when I go to search for a particular file using finder, it does not find it. I have to look through everything to find the file. Being a Mac newbie, it's likely something I'm missing.

    You may need to add the external drive to Spotlight for indexing http://support.apple.com/kb/ht2409

  • How do I transfer over my Pages program and all its files to my new mac?

    I recently bought a macbook air and would like to continue to use my Pages program that I have been using on my old Macbook pro. Does anyone know if I can redownload it from the Apple store without having to pay or if there is another way I can access the program and all my old files?
    Thanks!

    The Apple Store is not the same as the Mac App Store, which is what I think KarenSelena is referring to when she says "Apps store." So, the question is, did you buy a retail box or a license for a downloaded trial of iWork '09 or did you buy the individual apps from the Mac App Store?
    If you did buy Pages from the Mac App Store you can go to the "purchases" section of the App Store.app & download it again using the same Apple ID as before.

  • Anyone using avast free antivirus program and finding it a good one?

    Needing an antivirus program for my Macbook and wondered about downloading the Avast free program.  Anyone using it and finding it a good program?  Wanted to see if it is too good to be true, especially given the 'price'.  Thanks for any response.

    Don't waste your money.
    There are many forms of ‘Malware’ that can affect a computer system, of which ‘a virus’ is but one type, ‘trojans’ another. Using the strict definition of a computer virus, no viruses that can attack OS X have so far been detected 'in the wild', i.e. in anything other than laboratory conditions. The same is not true of other forms of malware, such as Trojans. Whilst it is a fairly safe bet that your Mac will NOT be infected by a virus, it may have other security-related problem, but more likely a technical problem unrelated to any malware threat.
    You may find this User Tip on Viruses, Trojan Detection and Removal, as well as general Internet Security and Privacy, useful: The User Tip seeks to offer guidance on the main security threats and how to avoid them.
    https://discussions.apple.com/docs/DOC-2435
    More useful information can also be found here:
    www.thesafemac.com/mmg

  • I am cleaning up old programs and find there are 2 versions of FF installed. I just installed RC versio and it does not show in the list of installed programs so I am lost as to which one to delete, V4.0 or 4.0b8

    so which one do I delete?

    You probably only have an orphaned entry left in Add and Remove programs and only have the last update of the Firefox 4 version installed. It happens more often that the updater doesn't remove the entry from the previous installation, but only adds a new entry for the new, updated, version leaving you with two entries. You can use a registry cleanup program or remove the registry key yourself if you are comfortable with editing the registry.
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox (????)

  • HP OFFICEJET PRO 8500 - Will not install on wintows 8.1- says SYSTEM CANNOT FIND SPECIFIC FILE

    My HP Officejet 8500 will not install on windows 8.1.  The error message says:
    The system will not find the specific file

    Hi,
    Follow the steps below and check if that resolve the issue:
    1. Open Mcafee software, from the Virus and Spyware Protection section click on Schedule and run scans. Click on Real time scanning and then on Turn Off. select till I restart the PC and confirm by clicking the Turn Off button.
    Now try reinstalling the HP Software and check if the error no longer appear..
    If the issue persists continue follwoing the next steps below:
    2. Open the run dialog by clicking both the Windows key and the R key on your keyboard. Type %windir% and click on OK.
    3. Type hpoins*.dat into the top search bar, if there are any results rename the extention into old instead of dat. (e.g. hpoins1.old)
    4. Type hpwins*.dat into the top search bar, if there are any results rename the extention into old instead of dat. (e.g. hpwins1.old)
    5. Launch the Run dialog by clicking both the Windows key and the R key on your keyboard. Type MSIEXEC /UNREGISTER into the Run dialog and click on OK.
    6. Launch the Run dialog by clicking both the Windows key and the R key on your keyboard. Type MSIEXEC /REGSERVER into the Run dialog and click on OK.
    7. Run the installation file and check for any difference.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Find Specific File Type Group in Specific Folder

    Hi, I dont know how to find a specific group of files (i.e. all movies, all music etc) in one specific folder (and its sub folders) on Snowleopard.
    I do know how to find a single file type (i.e. .mov, .mp3)
    Thanks for the help.

    Hi,
    And, Welcome to Apple Discussions!
    In the search box, type
    kind:
    (that's "kind" followed by a colon) followed by either
    movie
    image
    or
    music
    I just tested it myself (I've never actually used it!) and it works a treat.
    HTH,
    S.
    Message was edited by: SiRGadaBout

Maybe you are looking for

  • Period open date in FA_DEPRN_PERIODS

    I want to know what controls period open date and close in FA_DEPRN_PERIODS table. We have first open period (JAN-02) for year 2002 from '02/27/2002' and now we have some depriciation transaction for this year (2002) before this date. So when we are

  • Event Creation from Mail is no longer working

    Hello, today I have been trying to create new ical events directly from Mail. This used to work fine and was very useful. Now I get the popup and fill in all the event details but it won't save. I can Cancel but hitting the create/save button does no

  • HOW DO YOU LIKE THE VIDEO ON THE NEW NANO

    My brother wants to get me something really good for Christmas and I was thinking about a new nano. Believe it or not I still have the original mini (the battery is long dead, but I use it in my car so it doesn't matter as it charges from the connect

  • DBMS_SCHEDULER wait for job/program to finish

    Hello All, I've run into a little limitation on my understanding of DBMS_SCHEDULER. I have an executable script which does a network scan. My goal is to lauch this from an application, and wait (could be 5 minutes or 2 hours) for the scan to finish b

  • F110 for money transer from an house bank to another one?

    Hi All, to order payents for Vendors, I can use t.code F110 with the creation of a dme file. Which kind of t.code could I use for money transer from an house bank to another one (creating a DME file)?