How to measure progress of file copy?

One of the requirements for my AIR application is to copy
large files from one location to another on the client computer.
I've been using the copyToAsync() method in AIR, but unfortunately
this does not trigger progress events. Copying gigabyte files that
take several seconds becomes pretty uncomfortable for users, when
they can't see the progress.
Does anyone know of an alternative or workaround? All I need
to do is copy a file from one location to another, and measure the
progress while that is happening.
Since I control the client machines (it is a closed
environment), I have the option to setup file servers on every
machine and use the file download control with Flash instead of
file copy. However, when I investigate this option it seems that
the file download control will always trigger user interaction to
select the target path (which I don't want -- I want to
programatically select the source files and the target directory).
If someone knows a solution to that problem I would happily take it
and move on :)

Hi,
Use 2 FileStream objects in async mode (openAsync). One to
read and another to write. When you read in async mode, you get
progress events. When they fire, you can read bytesAvailable
amounts of data and write that to the output filestream.
The output filestream can listen for output_progress events
to ensure that new data can be written to it or not.

Similar Messages

  • How to measure a pdf file from the guides?

    Hi,
    I need to check 200 pdf files before go to print,
    essentialy the size
    So i wanna know if there are an easy way to measure the pdf file from the cut guides
    using indd cs6 or Illustrator
    thanks

    Thanks guys
    The thing is that i dont have the indd file
    I just have a lot of PDF files and i need to check all files gone correct for print
    what Im doing is open PDF file in Illustrator and with the measure tool check the size of the crop marks
    the "page size" in Acrobat includes the bleed area so i can´t be sure if the file gone correct
    Im looking for a fast way to check that.
    The Adobe measuring tool is basically the same as im doing in Illustrator
    and in the Preflight profile i can´t find the page size
    I guess there's no faster way
    thanks a lot Danny Whitehead and John Mensinger for your interest
    and sorry about the bad english

  • How to use the Microsoft File Copy dialog box  in Java ??

    Can anyone tell me if it is possible to use the Microsoft File Copy dialog box (the one with the animated gif of the paper flying from one folder to anaother) in a Java.
    Many thanks

    And in any case, in any version of Windows that I've looked at, the file copy animation is an AVI, not a GIF.
    db

  • Increasing the File Copy Throughput

    How do I increase the file copy throughput (within and between the Azure VMs)?
    I have read the article about increasing the number of ServicePointManager.DefaultConnectionLimit  but couldn't find how/where I can make this change.
    http://blogs.microsoft.co.il/applisec/2012/01/04/windows-azure-benchmarks-part-1-blobs-read-throughput/
    Currently, when I make copy the file between the VMs or Drives within a VM, the transfer speed is only 10-20 MB/s and I think it should be much higher than this especially when I am copying between the drives in a VM.

    HI;
    Please create a new VM  from a different storage account in a different geographic location and cross check.
    in case if the issue still persists we will need to further investigate it and you would have to open up a Technical Ticket with our Windows Azure Technical Support team.
    Regards
    Prasant Chhetri

  • File copy of large file fails.

    I am trying to copy a large file, say "file.txt", from an external drive to my hard drive. The size of the file is 140 GB. I have tried twice, and both times the copy operation has stopped (after a couple of hours and 135 GB) with the message: "Operation cannot be completed. File already exists." The only file named file.txt that exists at that time is the partial one that was copied.
    What's going on and how can I perform the file copy?
    Thanks!

    Can you tell me if the external drive (for any of the respondents) was NOT formatted with a Mac partition? Instead something like NTFS or FAT?
    The file transfer failure issue is a recurrent frustration to a lot of users for many iterations of the Finder. Either through singular large file transfers or through multiple files (thousands) that in total are large in size.
    I am speculating that the issue arises from files being transferred between storage locations of differing formats or in the case of internet based storage varying file translations. In part this speculation exists because I do not seem to experience this issue if the drives are all Mac OS Extended (Journaled).
    Just looking to confirm your configuration.

  • How can I find out the progression on a file copy operation

    I was wondering how when I use a file stream to copy a file how much is done and how much I have to go?

    You can't. A FileInputStream gives you no method of obtaining the size of the file.
    If you have access to the File object used to create the stream then you can get the size of
    the file from that.
    Copying from a FileInputStream to a FileOutputStream will require you to use one of the
    read methods. These allow tell you (and some allow you to set) the numbe of bytes copied
    in that call. If you know how many bytes are copied in each call and also know how many
    bytes there are to copy then you can tell how far you have progressed.
    Using a RandomAccessFile as the source also allows you to determine the size of the file.
    Using FileChannels can be significantly more efficient and also allows you to determine the
    size of the source file.
    matfud

  • How to import multiple XML files into one inDesign document without copy/paste ?

    I use InDesign CS6, and I have several XML files with the same structure. Only the data are different.
    I created  an Indesign layout with some tagged placeholder frames on merge mode, for automated layout.
    Today for each XML file I have to create a new InDesign document to import the XML. Everything works fine. Then in order to have all Indesign layouts one after the other into a single Indesign layout, I have to use the copy/paste function.
    I mean for example, copy the contents of all documents to the first one. Or add pages of other documents to the first one, then delete spaces between each page.
    So my question is the following:
    How to repeat this process without copy/paste function, knowing that the
    number of XML files could be unknown.
    Thank you very much for your answer.

    Yes, effectively I would like to catalogue the files into one collection so i can save as one PDF and Print as one.:)
    I know I could save each AI as a pdf them then merge the pdf's together in acrobat, but I have nearly 100 files so would feel more comfortable seeing them all together before print / saving.
    My concern is that if I insert them in Ai, will the file resolution reduce? and will the ai still be editable and would it update the indesign file?
    Thanks for the quick reply

  • How do I move a file from a memory stick to a an external drive using a mac (copy paste doesnt work)

    How do I move a file from one memory stick to another using mac pro? copy paste doesnt work

    Have you tried simply dragging the file from one stick to the other? Do you know the format of the memory sticks (Macs can't write to those formatted as NTFS without the use of third-party software)?
    Clinton

  • How can I get a file to copy all of the files in a directory except itself and the source of the copy function will be the directory the final program is in?

    How can I get a file to copy all of the files in a directory except itself and the source of the copy function will be the directory the final program is in? This application must be in Lab View 8.

    you mean something like this (see below)?
    Now you may have to implement code to check if the destination folder exists and to create it, etc.  But if you use the Front Panel Control to select the destination folder, it should be okay.
    Not the best implementation, mind you but you'll get the idea..
    Message Edited by JoeLabView on 04-18-2007 03:43 PM
    Attachments:
    copy folder contents.PNG ‏10 KB

  • I am using itunes 10 and trying to consolidate my files.  I keep getting the error "Copying files failed.  The file name was invalid or too long".  How can I indentify what file is causing this problem or resolve this issue?

    I am using itunes 10 and trying to consolidate my files.  I keep getting the error "Copying files failed.  The file name was invalid or too long".  How can I indentify what file is causing this problem or resolve this issue?

    BUMP
    Yes, I just get that message. I don't see how I could investigate this problem.
    I didn't mention that this happened when I was consolidating my library, not copying files to another computer.
    In other words, I'm using a "normal" itunes procedure, itunes won't complete it, and won't tell me exactly why or how to figure out how to fix it...
    Is there at least some easy way to tell which files were successfully copied to my itunes music folder so I can work on moving the uncopied files?
    Can anybody help me?

  • HT1386 My computer was stolen with all my iTunes on it. However, my iPod was not stolen. How do I transfer all files from my iPod to my new computer (purchased files and files I copied from CDs)?

    My computer was stolen with all my iTunes on it. However, my iPod was not stolen. How do I transfer all files from my iPod to my new computer (purchased files and files I copied from CDs)?

    http://www.wideanglesoftware.com/touchcopy/index.php

  • How to search for a file and copy it to somewhere else in terminal

    So basically how can I search for a file on my computer named "testingtesting.txt" and copy it to my desktop using terminal? I have very little experience in terminal, so I was going to try and use the mdfind command, then store that output as a variable, and use that variable as the source for the cp command, but I feel like there is probably a much simpler method. So basically how could I find a file named "testingtesting.txt", copy it, and paste it to my desktop using terminal.

    Is there any particular reason that you must use Terminal?
    You could just download the free EasyFind from the App Store and find the file quickly. Do whatever you wish with it.
    Good luck,
    Clinton

  • I bought a mac air retina to replace a mac pro. How can I get all files of the back up and copy them to the new mac?

    I bought a mac air retina to replace a mac pro. How can I get all files of the back up and copy them to the new mac?

    Mail window may be in the Full Screen mode.
    Move the mouse pointer to the top right corner of the Mail window and hold it there.
    Menu bar should drop down and click the blue double arrow icon.
    Full Screen toggle shortcut:  control + command + F

  • I downloaded Mac OS X Lion and when I go to install, it says file cannot be verified, may have been corrupted during download.  How do I determine if it is corrupt and how do I get a clean copy of Lion, since I have already paid for it?

    I downloaded Mac OS X Lion and when I go to install, it says file cannot be verified, may have been corrupted during download.  How do I determine if it is corrupt and how do I get a clean copy of Lion, since I have already paid for it?

    Download again, move the existing file out of the applications folder first.

  • How can I use Applescript to copy a file's icon to the clipboard?

    Hello,
    How can I use Applescript to copy a file's icon to the clipboard?
    Thanks.
    Lennox

    there is no way to do that that I know of. but you can extract an icon of a file to another file using command line tool [osxutils|http://sourceforge.net/projects/osxutils]. you can then call the relevant command from apple script using "do shell script".

Maybe you are looking for

  • Recommended imaging/cloning method for Windows 8.1 system

    Can anyone recommend a reliable way to completely image/clone a windows 8.1 based system? I've tried 3 different methods with mixed success: 1. My old faithful method uses EzGIG-III, but the BIOS setting for boot configuration needs to be changed to

  • Adobe CreatePDF,

    uninstalled in error but no link to redownload help?

  • SAP DEMO Database for SAP b1 Version for HANA

    I was wondering if anyone can Help. I have installed the SBODEMO database on SAP B1 version for SAP Hana. V9.0 PL4 and then upgraded to PL9HF (901.00 to 902.001) the SBOCOMMON upgraded ok but SBODEMO database failed on the pre upgrade checks with "Pa

  • Cancellation of cancelled invoice

    Hi, I have done one invoice and then cancelled that invoice. Now i am want to cancel the cancelled invoice document.  How to do that.

  • Cannot print on glossy paper any more

    I used to be able to print on glossy paper and no longer can do so.  Anybody know why.  I also cannot scan any more. I think I am missing some software but I have no idea how it got lost or how to get it back.  This has been going on for more than a