Read files and folders from a CD

Hi there,
I am not sure this is the right forum for my question. Please redirect me if I am in the wrong place.
I have an AIR app that will be installed from a CD. The client will be changing certain data (like images and video files) regularly and wants to be able to simply write a cd with the new files in a folder and the AIR app install.
I have searched high ad low for ways to read files from a CD. I could do this if I knew the path, but on each system it is different.
Is there anything which can tell me what the path to the CD drive is or a way to package AIR so that when it installs it looks for a directory on the CD it is installing from and copies it to the AIR application directory?
Any help is welcome!
Thanks in advance,
Nikki

Hi - it looks like you can find the CD drive using the getStorageVolumes() method of StorageVolumeInfo:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/Storag eVolumeInfo.html#getStorageVolumes%28%29
So you'd  iterate through all the storage volumes, and for the ones that are removable (isRemovable property), check for the existence of some file you know will be on your CD (a unique name), and you would then know that is your install CD.
-rich

Similar Messages

  • HT1923 This article contains the only thing that worked for me.  I also had to sign out of iCloud and uninstall it.  Then I had to delete all files and folders from all of those applications that were under Program Files, Program Files x86, and Users.

    This article contains the only thing that worked for me.  I also had to sign out of iCloud and uninstall it.  Then I had to delete all files and folders from all of those applications that were under Program Files, Program Files x86, Program Data and Users.  My iPhone 4 will now sync with iTunes both in its USB-connected  mini dock and over Wi-Fi.  It's unfortunate (negligent programming on the part of Apple?) that the upgrade to iTunes 11 did not remove all of those files as part of the upgrade process. 

    I am having the same issue....Same address for years - same as USPS - I tried 5 times (3 macs and 2 iPhones) and now i have 5 CHARGES for 1.00 each on my credit card. I took the credit card info off so they don't charge me anymore. How can they charge me yet still not allow me to download free updates and say I have an invalid address? I'm sure I will spend weeks or months trying to get a credit out of these incompetent idiots.

  • I am working in LR 5.7. I am having problems moving files and folders from my internal Mac drive to an external drive.

    My process is to drag files or folders from one location to another. Sometimes it works, but it takes a VERY long time. Sometimes it does not work. For example, I tried to move a folder with 329 images. LR processed for 13 hours and moved 58 images; then it stopped and gave the message "…error copying files to the destination you selected. The following files could not be copied." Then it noted the files not copied. Does this look like a LR problem? A hardware problem? Any suggestions on how to fix would be appreciated.

    Jim has a very good suggestion. There are many factors at work here:
    1) How are you connecting the external drive to the computer?
    2) How big are files (329 x 1MB is not the same as 329 x 25MB)?
    3) What is your computer specification?
    4) Do you have any power saving settings on (in particular something that would send the computer/hard drives to sleep)?

  • How to recover hidden files and folders from memor...

    When you connect your memory card to a PC or connect your phone as a mass storage device to a PC which is infected by a virus, the virus may hide all your files and folders.
    The virus also changes their attributes to "hidden" and "read only" and may move all memory card content to another hidden folder, though the size of the disk looks unchanged, files are still invisible.
    Steps to recover hidden files and folders:
    First, change the settings in "folder options" so that we can see all hidden files and folders,
    Open any folder > select organise > folder and search options, select view tab and under hidden files and folders setting, select "show hidden files, folders and drives", and uncheck the option "Hide protected operating system files" and click ok, click yes if a prompt appears for confirmation, now you should be able to see all hidden files and folders.
    Second, connect your memory card to PC using a card reader or you can connect your phone as a mass storage device and note down its drive letter. (L) is the drive in my case as shown
    1. If you have autorun.info file, you can manually delete it or use tools like autorun eater(or any other you like).
    If all the folders are moved inside a hidden folder, select all the items inside that folder, cut them and paste them to root directory of your memory card.
    If you select properties of any folder on your memory card, the hidden attribute might be locked as shown:
    To solve these issues, type cmd in the start menu, right click on it and click run as administrator.
    2. In the command prompt window, type the following:
    L: [Press Enter]
    Here, I assume L as your drive letter.
    3. Type the following code to reset the attributes of all the files and folders to their default:
    Attrib *.* -r -h -s /s /d   [Press Enter]
    After few seconds, all the files and folders will be reset to their normal attributes settings.
    Hope you enjoyed reading the post and was helpful.
    -------------------If this post helped you, click on accept as solution.------------------
    -----------------------------Appreciate by clicking on white star.----------------------------

    Check the formatting of the external hard drive. To do that, right click on the drive icon and select Get Info. (Or click once on the drive and type command +i ) The pane includes information about the drive format.
    The drive should be formatted as Mac OS Extended. If it is not, run Disk Utility (App;ications / Utilities) and format the drive.

  • Transfering files and folders from an external hard drive to my new iMac Lion

    I recently bought an iMac Lion and today attempted to transfer applications folders and files from my old computer( tiger) using migration assistant.I was though only partially succesful in as much as my applications and office files were copied, but not so iTunes, iPhoto and iMovies content .I then decided to attempt transfering the files and folders using my external hard disc(La Cie).I have activated Time machine and can certainly see the two partitions i had originally set up in my old computer but cannot figure out how I can the User Files which contain the media i want.? I originally used Super Duper to do my backups but its not recognised on this new computer so i am inclined to think I need to re buy it
    Can someone please advise me? Thank you

    I have found the files and made the transference succesfully except iMovie as i except they are not compatible with Lion

  • How do i copy files and folders from one external harddrive to another on the iMac?

    For some reason when i drag the folder or file that i want to transfer or copy from one external harddrive to another, nothing happens when i drop it on the destination folder or drive. however, when i drag and drop to the desktop or any location on the Imac internal hardrive it works without any issue. The only problem is that i dont want to transfer or copy stuff to the computer. i want to copy it to an external harddrive. please help if your have answers to my question.
    Thanks!

    Check the formatting of the external hard drive. To do that, right click on the drive icon and select Get Info. (Or click once on the drive and type command +i ) The pane includes information about the drive format.
    The drive should be formatted as Mac OS Extended. If it is not, run Disk Utility (App;ications / Utilities) and format the drive.

  • Reading files and directory from a directory

    ublic static void readFromDirectory(String dirName) {
              // stop word ArrayLists
              ArabicStop();
              EnglishStop();
              FrenchStop();
              SpanishStop();
              DutchStop();
              File dir = new File(dirName);
              if (dir.isDirectory()) {
                   String[] child = dir.list();
                   System.out.println("hi Iam here");
                   for (int i = 0; i < child.length; i++) {
                        readFromDirectory(child.toString());
              File[] files = dir.listFiles();
              if (files == null) {
                   System.out.println("There are no files in this Directory ");
              } else {
                   for (int j = 0; j < files.length; j++) {
                        String filename = files[j].toString();
                        readFile(filename);
                   if (dirName.equalsIgnoreCase("English")
                             || dirName.equalsIgnoreCase("Nonenglish")) {
                        for (int i = 0; i < a2.size(); i++) {
                             keyWord = a2.get(i).toString();
                             //System.out.println("===" + keyWord + "===" + "KeyWord");
                             for (int a = 0; a < text.size(); a++) {
                                  String t1 = text.get(a).toString();
                                  if (keyWord.equalsIgnoreCase(t1)) {
                                       count++;
                                       //System.out.println("Found at:" + files[j] + " file");
                             keyWCount = count;
                             m1.put(keyWord, keyWCount);
                             //System.out.println(m1.get(keyWord));
                             count = 0;
                   } else if (dirName.equalsIgnoreCase("Spanish")) {
                        for (int i = 0; i < a5.size(); i++) {
                             keyWord = a5.get(i).toString();
                             //System.out.println("===" + keyWord + "===" + "KeyWord");
                             for (int a = 0; a < text.size(); a++) {
                                  String t1 = text.get(a).toString();
                                  if (keyWord.equalsIgnoreCase(t1)) {
                                       count++;
                                       //System.out.println("Found at:" + files[j] + " file");
                             keyWCount = count;
                             m1.put(keyWord, keyWCount);
                             //System.out.println(m1.get(keyWord));
                             count = 0;
                        //System.out.println(m1);
                   } else if (dirName.equalsIgnoreCase("French")) {
                        for (int i = 0; i < a3.size(); i++) {
                             keyWord = a3.get(i).toString();
                             //System.out.println("===" + keyWord + "===" + "KeyWord");
                             for (int a = 0; a < text.size(); a++) {
                                  String t1 = text.get(a).toString();
                                  if (keyWord.equalsIgnoreCase(t1)) {
                                       count++;
                                       //System.out.println("Found at:" + files[j] + " file");
                             keyWCount = count;
                             m1.put(keyWord, keyWCount);
                             //System.out.println(m1.get(keyWord));
                             count = 0;
         public static void main(String[] args) {
              int countText = 0;
              int c;
              test t1 = new test();
              System.out.println("IN NON - ENGLISH DOCUMENTS - P :");
              t1.readFromDirectory("NonEnglish");
              for (int j = 0; j < text.size(); j++) {
                   if (!text.get(j).toString().equalsIgnoreCase("")) {
                        countText++;
              c = countText;
              //System.out.println(c);
              //System.out.println(text.size());
              for (int i = 0; i < a2.size(); i++) {
                   String word = a2.get(i).toString();
                   String m = (m1.get(word)).toString();
                   double x = Double.parseDouble(m);
                   System.out.println(word + ":" + (x / c) * 100 + " %");
    I wanna read text files from directory that contain - lots of other directorys... and by using this code I have error,,,
    Can anyone help me plzzz
    Edited by: Shamma on Oct 9, 2008 3:32 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    You actually have more than 1 problem: you cannot traverse directories recursively and you get a NullPointerException.
    For the first problem you might want to verify what this statement returns:
    child.toString() (I honestly don't understand why you are calling toString() on a String object, but that's not the real problem!)
    You probably expect it to be a full absolute path.
    The NullPointerException has already been pointed out by masijade.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • OS X Mavericks: Restore files and folders from your trash bin

    Please how restore files from trash bin

    It should.  As a test, see if it works on 1 file.

  • Is it possible to retrieve missing files and folders from lightroom?

    Can anyone help me please? I was in the process of editing a folder took a break for dinner. I did the normal close the window ( it did not ask me to back up sometimes it does and sometimes it doesn't ) and then shut off my computer. I turned it back on and opened Lr and my last 4 photo sessions are gone ! This is the 3rd time this has happened to me, if i wasn't almost 50 images into this edit id say nbd  but i've shown sneak peek previews of already edited images that she'll be expecting off her 7 yes 7 children 3 of which are premie identical triplet boys. They are a one in a million senario i dont want to be responsible for any disappointment to this lovely family! Please help me if you know how i cant imagine starting over on this one!

    LR normally performs a catalog backup unless you changed it.  That backup would be in the "Lightroom" folder in My Pictures, again unless you previously changed it.  Go to the Catalog settings > general.  This will tell you how often the catalog is backed up.  Click the "Show" button to see where the main catalog is.  Open that folder and you should see a "Backup" folder.  If your LR has been set to periodically backup, you should see the latest backup catalog.  This may be what you will need to use if the main catalog is indeed missing.  The latest session may not be there, depending on how often your LR was set to backup.

  • Trouble with locked/read only files and folders

    After reinstalling OSX I have an external harddrive with locked files and folders. I´ve heard that it is possible to unlock all files and folders from Terminal (it will take hours to unlock manually). Anyone who knows a script that will set read and write access to all files and folders on a hard drive?

    For locked HDs and volumes:
    http://discussions.apple.com/thread.jspa?threadID=2329689
    Also, see Niel's guide.

  • "Documents" folder is empty, all files and folders disappeared.

    Hello there.
    I was trying to install a software, and since it couldn't work, I was advised to remove different files.
    Since then, seems all my files and folders from "Documents" have all disappeared. They're not in the trash, they're not anywhere.
    I'm actually using MacKeeper to try finding them among deleted stuff. But so far, nothing has showed up.
    Before anyone asks, I did not change my folder user name. Can't be this.
    Thanks for your help. I'm in real ****.
    Friendly,
    Cyrille.

    No I don't have any backups.
    The software I am talking about is Parallels Desktop.
    I had to remove those files :
    rm -rfd /Users/~Cyberpen~/Library/Preferences/com.parallels*"
    rm -rfd /Users/~You~/Library/Preferences/Parallels/*"
    rm -rfd /Users/~You~/Library/Preferences/Parallels"
    sudo m -rfd /private/var/db/Parallels/Stats/*
    sudo m -rfd /private/var/db/Parallels/Stats
    sudo m -rfd /private/var/db/Parallels
    sudo m -rfd /Library/Logs/parallels.log
    sudo m -rfd /Library/Preferences/Parallels/*
    sudo m -rfd /Library/Preferences/Parallels
    sudo m -rfd /private/var/db/Parallels
    sudo m -rfd /private/var/.Parallels_swap
    sudo m -rfd /private/var/db/receipts/'com.parallels*'
    sudo m -rfd /private/tmp/qtsingleapp-*-lockfile
    sudo m -rfd /private/tmp/com.apple.installer*/*
    sudo m -rfd /private/tmp/com.apple.installer*
    sudo m -rfd /private/var/root/Library/Preferences/com.parallels.desktop.plist
    I did this manually (didn't work with Terminal) so I had to go deep into the macbook and sometimes change permissions to access those specific files (I was probably not supposed to touch).

  • Can't drag files and folders to iTunes

    You're supposed to be able to drag files and folders from windows into iTunes, either just to add them to the library or to a specific device or playlist. However, when I try to do this now it just shows a little red circle with a slash like when you try to copy songs from an ipod to a computer. I can still add files by the 'add file to library' function but this makes it a lot harder to add stuff to the right playlists on my iPod. How do I get this to work again?
    I have iTunes 10.7, but I have tried iTunes 11 and it has the same problem.

    iTunes for Mac (unlike iTunes for Windows) cannot convert WMA files. You will need to use another Mac program, such as EasyWMA, to convert them into an iTunes compatible format.

  • Reading files and converting into xml structure

    Hi,
    In my application a client requests for the folder structure information to a server through RMI. The server needs to read files and folders on local machine and convert it into some structure (I am thinking of using xml) and send it back. For eg: I am planning to have Server send back something like:
    <directory name = "parentdirectory">
    <file name = "abc.jpg"/>
    <file name = "def.bmp"/>
    <directory" name = "subdirectory">
    <file name = "hij.jpg"/>
    <file name = "klm.bmp"/>
    </directory>
    </directory>
    It is just the names of the files I am interested in and not the contents. Is this a good approach of sending back the data as a string containg xml definition. Is there any better appproach in terms of performance, memory etc? I am currently planning on using DOM for construction of this structure. Is there a source code for reading and converting the folder structure into xml. Just for your information, the clients gets this information and shows it as a tree structure on the GUI.
    Thanks!!!!

    Is this a good approach of sending back the data as a string containg xml definition. It'll work.
    An alternative, more direct approach is to build a memory representation and send this as argument/return value of an RMI call. You'd need to write classes MyDirectory and MyFile; MyFile has just a name; MyDirectory has a name and a collection of MyDirectory and one of MyFile. Make these classes implement Serializable and you can send them over RMI.
    The effort to write those trivial classes would be less than to implement XML encoding/decoding, and also in terms of runtime performance and memory it will be hard to beat Java's serialization with anything XML-based. In this case I doubt performance/memory are relevant considerations though.
    If for some reason I'd go for sending XML Strings anyway, I wouldn't do the encoding/decoding myself; I'd use XStream to convert Java classes to/from XML and still end up writing the above two classes and be done.
    Sorry if you wanted a simple yes or no :-)

  • How to compress my files and folders, How to compress my files and folders

    Good morning,
    My name is Jai Bhandari and I am from London, UK.
    I am sending this out to everyone that can help me to compress my files and folders, as I believe my macbook pro is starting to freeze and caused by having a slow machine, is there anyone that can suggest to me how and what do I use to compress these files into one folder.
    Thank you for reading this and hope to hear from you soon.
    Many regards
    Jai

    You can 'compress' files and folders from the Finder by selecting the items and choosing File>Compress "selected file or folder". This will create a zip archive and will save you some space. (I just tried it on a 16GB folder and it compressed it to an 11GB zip file). After you zip the file/folder the original can be deleted )until you need to access it again, then you can just double-click the zip file).
    If you're trying to free up disk space on your hard drive, this is not the best method... but you didn't ask about that...
    Clinton

  • Cannot print "working with files and folders htm

    When I try to print "Working with files-and-folders" from a Google search, it only prints part of it. I have changed my destination folder to no avail. Thank you or any help, Jack Menendez

    What's the best method for moving all my nonsystem related stuff over to this new driveIan has provided you with the best solution, SuperDuper.
    But if you have a 250 GB external, you really ought to clone your entire system,(only about 3 GB) so you have a backup.
    I keep mine with a complete clone of my internal, that way it is easy to boot from the external and run utilities like Disk Utility, TechToolPro, DiskWarrior, etc. on the internal and vice versa.
    If you run into a problem with say Preferences and don't know which one is the troublemaker, just trash the whole pref folder and use the good one from the clone. Font problem, same deal. And, if diaster ever strikes, you can just boot up from your external and keep right on working - fix the internal when you have time.
    That's my 2 cents anyway
    -mj
    [email protected]

Maybe you are looking for

  • Fatal Error in Report Generation.

    Hi, When i am trying to run the report from Jdeveloper, i am getting the following error in JSPX page Page Error: The page you are trying to access is having some problems and the following is the log is created in jdeveloper server console. javax.fa

  • Registering classes to raise noncustom events in ActionScript 3

    I'm using ActionScript 3 in Flash Professional and I'd like my class to raise an event, not a custom event but an existing one. I've set up my class so that it extends EventDispatcher. In the documentation http://help.adobe.com/en_US/FlashPlatform/re

  • Excise Group and Excise Register issue

    Hi Friends, We have internal order budgeting for consumables.whenever we make purchase order , the account assignment category is F and we purcahse against the particular internal order.when G/R is done the consumable material gets cosnumed against t

  • Album Artwork Chronically Loses Album Artwork

    This has been a problem with my last three iPods (don't know why I keep getting them considering, I suppose it's because everything else works great) and now it is happing with my iPhone. I will have them for months and everything is hunky dory. Then

  • Running temp higher after new software update

    HI Since doing the software update (now running osx 10.4.11) my macbook seems to be running hotter than previously. Temp now late 50s, early 60s - and the fan will often come on -even if all that is open in safari. is that a high temp or normal? it's