Moving files from one folder to another caused freeze

I now have a list of files stuck in the center of my screen.
I'm sure a reboot will fix this (I hope!) but I thought it was a bug worth reporting.
All I did was move a copy a collection of files from one folder to another folder.  It made the "move" sound, and the files have been copied, but something clearly went wrong

Have java.io.File objects pointing to the three folders. Get the list of all the files in the folder. Start a loop and check if the filename ends with Data.dat. If it is so then copy file to the final folder.
To Copy file you can use any of the two approaches.
1. You can read that file as byte stream (java.io.FileInputStream) and write it to the other folder as bytes (java.io.FileOutputStream).
2. You can use shell commands to do this. (java.lang.Runtime.exe() method)
Ali Ahsan

Similar Messages

  • Moving files from one folder to another using workflows

    Hi everyone,
    I need help creating a workflow. Within my Shared Documents Library, there is a folder, within which there are other sub-folders.
    Shared Documents--> Resumes --> Approved
    Shared Documents--> Resumes --> Rejected
    I want to create a workflow so that the resumes are uploaded to the Resumes folder and based on whether the user approves or rejects them, they are moved into either the Approved or Rejected folders. Any help would be highly appreciated
    Thank you.

    Why to make it more complex when we already have facility to group them by status option? Create a view and select group by “status” or create a separate web part page and add Shared Document library web part 2 times on the same page. For the first web part
    select filter option which only displays files with “Approved” status and for the other web part select it for “Rejected”
    Though you can refer below link if you wish to involve workflow into this
    http://captechconsulting.com/blog/dee-gavlick/moving-documents-restricted-subfolder-sharepoint-designer-workflow-sharepoint-2010
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Move files from one folder to another javascript?

    I am running a 3-action droplet automatically using windows task scheduler.  Here are the 3 steps:
    1.    Batch file to move files from hot folder to processing folder
    2.    Run IPP (dr brown's image processor pro) using preloaded settings to make several sizes copies of the files.
    3.    Bat file to move the files from processing folder to archive folder.
    The problem I am observing is that Step 1 works and IPP begins to run.  It only processes the first few images, and then moves on to the 3rd step where the bat file is ran to move all files from processing folder to archive folder.   The trouble is, only a few images were processes (about 10 or so), yet all of the images get moved to the archive without being processed.  Is there a way to make sure that step 2 (IPP) doesn’t begin until all files have successfully been moved from the hot folder to the processing folder?  IPP starts right away and files are still being transferred to the processing folder.
    Does anyone have a script that will move files from one folder to another? 

    I'm sure I have see a way to close down Photoshop in a Photoshop script.  I never had the need to.  It may be a simple statement like app.close(); I don't know javascript and only hack Photoshop script mostly by looking at others code.  app.close(); is a guess on my part. Let me try it. I was wrong its photoshop.quit();
    So make your MoveToArchive.jsx look something like this
    try{
       var BAT = new File(Folder.temp + "/MoveFilesToArchive.bat");
       BAT.open("w");
       BAT.writeln('Copy /Y "c:\\Process\\*.jpg" "c:\\Archive\\*.*"');
       BAT.writeln('Del "c:\Process\\*.jpg"');
       BAT.close();
       BAT.execute();   // execute the temp bat file
    }catch(e){
    alert("Bat MoveFilesToArchive  failed to execute.");
    photoshop.quit();

  • Move files from one folder to another

    I am brand new to the application and have spent a ton of time googling various topics, but need some additional help. Seems easy enough, but I can't figure out how to do it...
    I would like to move pics from one folder to another. I can drag files from one folder to another, but they still reside in the original folder as well. Is there a way to cut and paste or a similar function to accomplish this move?
    Thanks.

    Hey, HawaiianHaole, as a multidecade Mac user, let me tell you, Aperture is about the worst example of Mac-iness one could imagine. Ironic, as it's (of course) made by Apple. But it is so inflexible, and insists so vociferously on making the user learn its peculiar interface conventions it reminds me most of something out of that famous company in Redmond.
    Want your Projects in an order you choose? Sorry! Want to arrange your windows so you can see your list of chat buddies while you're working in Aperture? Nope, can't do it! Aging eyes have trouble reading tiny grey type on a grey background? Hey buddy, it was your choice to grow old, don't blame us!
    But all is not lost. Aperture has gotten considerably better of late (versions up to 2.0 were fundamentally unusable in many ways) and will hopefully continue to improve. (ie Maybe they'll fix the printing thing...)
    Please don't make Aperture the basis for your judgement of the Mac OS. Many long time Mac users are having as much trouble with Aperture as you. Mac OSX has significantly reduced customizability but at the benefit of much improved stability and indeed usability. Old school Mac users had to learn to accept this, which most did. You'll hear people talk about the "Way of the Steve". As irksome as Aperture can be, you'll actually have a better time of it if you adopt the Way of the Steve, and accept that you can't do things the way you might want to. This is imho antithetical to the original Mac many of us knew and loved, but it's the way things are today, so we mostly shut up and take it. You can fight with your software all day, or just accept that there are ways you have to adopt and adapt to them.
    Welcome to the Bright Side, hope your Mac experience improves.

  • Is there a way to move files from one folder to another without copying and pasting and then going back to delete the original?

    Is there a way to move files from one folder to another without copying and pasting and then going back to delete the original?  The cut and paste function is not available and there's no "move to" function.  Am I missing something?  It was so easy with Windows.

    Drag the files, or press Option when pasting them; this accesses the Move To function.
    (124070)

  • I suddenly can't move files from one folder to another in my FlashHelp project.

    I have RH8 (8.02). I have been working on this project for a couple of years now.
    What changed? I had imported a Word document and then removed the document and the folder it created from the Project Manager. Now I cannot move any of my files from one folder to another in the Project Manager pod. I susptected a corrupt CPD file so I closed the project, deleted the CPD file. Next I opened Robo from Programes (I never open from the .xpj file), went to Tools>Options and deleted the pinned most recently used project. Select Open, and locate/open the xpj file. I've also re-generated the output (no errors) and completed all these steps again. Of course Robo only goes haywire on me right before I have to publish for our new software release.

    Hi there
    From what I'm seeing my own guess here is that RoboHelp is still believing that the content belongs to word.
    I might suggest the following steps.
    Open Winows Explorer and make copies of the HTML files involved. Then from RoboHelp, delete or remove the content. Then use the Import function to add the desired HTML files back into the project into the desired folder.
    My thought is that by taking these steps you will have effectively disassociated Word and the topics should now be independent topics that RoboHelp should allow you to manage as you wish.
    Hope you get it sorted... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to move files from one folder to another folder in webdynpro java for sap portal

    Dear Experts,
    I wan to move files from one folder to another folder in SAP portal 7.3 programmatically in webdynpro java.
    My requirement is in my portal 1000 transport packages is their. Now i want to move 1 to 200 TP's into Archive folder.
    Can you please help me how to do in through portal or wd java ...
    Regards
    Chakri

    Hello,
    Do you know what the difference between copying a file this way :
    ** Fast & simple file copy. */
    public static void copy(File source, File dest) throws IOException {
    FileChannel in = null, out = null;
    try {         
    in = new FileInputStream(source).getChannel();
    out = new FileOutputStream(dest).getChannel();
    long size = in.size();
    MappedByteBuffer buf = in.map(FileChannel.MapMode.READ_ONLY, 0, size);
    out.write(buf);
    } finally {
    if (in != null) in.close();
    if (out != null) out.close();
    ================SECOND WAY============
    AND THIS WAY:
    // Move file (src) to File/directory dest.
    public static synchronized void move(File src, File dest) throws FileNotFoundException, IOException {
    copy(src, dest);
    src.delete();
    // Copy file (src) to File/directory dest.
    public static synchronized void copy(File src, File dest) throws IOException {
    InputStream in = new FileInputStream(src);
    OutputStream out = new FileOutputStream(dest);
    // Transfer bytes from in to out
    byte[] buf = new byte[1024];
    int len;
    while ((len = in.read(buf)) > 0) {
    out.write(buf, 0, len);
    in.close();
    out.close();
    And which is better? I read up on what each kind of does but still a bit unclear as to when it is good to use which.
    Thanks in advance,
    JavaGirl

  • Moving Stack from one folder to another?

    Is there a way to keep a stack together while moving it from one folder to another. When I grab the stack and drop it to a folder, I view the folder and the images are no longer in a stack. It would save me a lot of time if they would stay stacked. Am I missing something?
    Thank you.

    Well your code is unreadable because you didn't post it properly, but I'd guess you've fallen into the old multiple-delete trap in a new way. It's like this:
    To start with you have messages numbered 0, 1, and 2, let's say. So you write a loop that lets i run from 0 to 2 and delete message number i in the loop. What really happens? The first time through the loop you delete message number 0, after which you are left with messages numbered 0 and 1. The second time through the loop you delete message number 1, after which you are left with message 0 only. The third time through the loop you delete message 2, which isn't there and you get that message.
    That's just a guess, I didn't have the patience to read that ugly unformatted code. There are two ways to do the multiple delete properly, if that's actually your problem: (1) run the loop upwards from 0 and always delete message 0; (2) run the loop downwards from N-1 to 0 and delete message i.

  • Why can't i move files from one folder to another by sliding them?

    help. i am trying to move files from one folder to another. but i cant slide them by clicking on a file and sliding it to another place. any suggestions? thank

    Go to Finder "Go" menu hold the option key and choose Library. Then go to Preferences trash these files:
    com.apple.finder.plist
    com.apple.sidebarlists.plist
    Then, restart, or log out and in again.
    (You will have to reset a few finder prefs the way you like them.)

  • In finder cannot easily change files from one folder to another. Drag and drop does not work. There should a cut and paste feachure.

    In finder I cannto easily change files from one folder to another.  There should de a cut and paste for this.  Not drag and drop. thanks P.

    paulfromqueretaro wrote:
    In finder I cannto easily change files from one folder to another.  There should de a cut and paste for this.  Not drag and drop. thanks P.
    OS X is all about keyboard shortcuts.
    To cut       cmd+x
    To copy     cmd+c
    To paste    cmd+v
    With the Mouse, hold command and drag to your destination.

  • Getting error Can't read from the source or disk when moving documents from one folder to another folder in the library

    Hi,
    When we try to move documents from one folder to another folder in the document library using "Open with explorer" getting beloe error.
         Can read from the source file or disk.
        The user having below permission for the Library as well as site.
    Fullcontrol,Limited access--->Given directly
    Read,Limited access--->Givin through the all Test grp
    Contribute,Limited Access-->given through test members grp
    Read,Limited access---> givin through The group grp
    Could you please help me anyone....
    Thanks

    Hi Reddy,
    If you are moving files in two libraries in different sites, then the error will occur and it is by design that there are limitations on the DAV move commands that the DAV client is respecting.
    https://social.msdn.microsoft.com/Forums/en-US/6245f332-c609-4a7b-8e00-c8b5e46f7759/cant-move-files-using-windows-explorer-cant-read-from-source?forum=sharepointgeneral
    If you are moving files in the same library, I recommend you to use Wireshark to reveal the error message and enable IIS
    Trace Logging for Failed Requests to examine the IIS log file for troubleshooting.
    https://social.msdn.microsoft.com/Forums/en-US/47cd569d-98f2-4cca-b78e-fd178c097285/cant-read-from-the-source-file-or-disk?forum=sharepointgeneralprevious
    To narrow down the issue scope, I recommend you to test with another library and see if the copy in explorer can work.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Moving files from one drive to another

    How can I move a batch of files from one drive to another using Bridge CS4?

    There are two methods.  One involves your operating system and the other uses Bridge.
    Using Microsoft (sorry to you Mac users) have Windows Explorer open to the directory containing your files.  Click and drag the directory from one drive to another.  Conversely if you want to copy just a selection of the files follow this routine.
    Create a duplicate named directory in the destination drive.  Select the file you wish to move and do so from directory to directory.
    In Bridge it is even easier.  In Bridge ensure that the Folders sub pane is open and visibile.  Just click on the source directory and click and drag it to the destination drive.
    Testing on my part (I routinely move up to 30 gigabytes at a time) has demonstrated that Bridge adds a little time to the process depending on the size of the source files.  I suspect that this has to do with additional overhead of the program.
    To be safe I would recommend that you do use the copy method instead of moving the directory.  This is a failsae in case any problems crop up during the process.  It takes mere moments to delete the source directory after the copy routine has run.
    Wayne Webb

  • Moving topics from one folder to another

    Can anybody please help me on this issue. Is there any way i
    can move topic from one folder to another without disturbing the
    link and all that. I am afraid to move topic from one folder to
    another because i feel that it might disrupt something behind the
    scene.

    As Peter said, it all should work fine. If it doesn't your
    projwect either suffers from a corrupt CPD-file or there already
    exists a file of the same name in the destination folder.
    If such a file has been copied there from outside of RH,
    you'll have to remove the offending file using Windows Explorer.
    If there is no such file, close your project, delete the file
    named <projectname>.cpd and open the project again.
    Regards
    ----Dirk Bock

  • How do I move files from one folder to another?

    On my MacBookPro I am trying to move files from one folder to a BSB drive.  I can copy, but I do not want the files left in the original location.  What do I do?
    J W

    Press the Command key while dragging them.
    (58054)

  • Moving messages from one folder to another.

    hi there,
    I am trying to move messages from one folder to another. It works perfectly when i try to move one message at a time. However when i try to move more than 1 message(for e.g 2 messages) only the first message is being move to the destinated folder and while attempting to move the 2nd message it is throwing IndexOutOfBounds exception.
    This is how i am attempting to move the message.
    String destFolder = request.getParameter("fold");
    String srcFolder = request.getParameter("originalFolder");
    Store store = (Store)session.getAttribute("store");
    Folder sourceF = store.getFolder(srcFolder);
    sourceF.open(Folder.READ_WRITE);
    if(!(destFolder.equals("null")))
    String[] msgs = request.getParameterValues("list");
    System.out.println(msgs.length);
    Folder destinationF = store.getFolder(destFolder);
    destinationF.open(Folder.READ_WRITE);
    if(msgs != null)
    for(int i=0; i<msgs.length; i++)
         int msgNbr = Integer.parseInt((String)msgs);
         int[] msg_id = {msgNbr+1};
         Message[] msg = sourceF.getMessages(msg_id);
         sourceF.copyMessages(msg,destinationF);
         sourceF.setFlags(msg, new Flags(Flags.Flag.DELETED), true);
         sourceF.expunge();
         destinationF.expunge();
    session.setAttribute("mails", sourceF);
    try
    response.sendRedirect("../Inbox.jsp");
    catch(IOException ex)
    ex.printStackTrace();
    This is how i am trying to do it... Please help me i really need this urgently. Kindly help me ASAP.
    Help is very much appreciated.
    Thank you.
    Renuka.

    Well your code is unreadable because you didn't post it properly, but I'd guess you've fallen into the old multiple-delete trap in a new way. It's like this:
    To start with you have messages numbered 0, 1, and 2, let's say. So you write a loop that lets i run from 0 to 2 and delete message number i in the loop. What really happens? The first time through the loop you delete message number 0, after which you are left with messages numbered 0 and 1. The second time through the loop you delete message number 1, after which you are left with message 0 only. The third time through the loop you delete message 2, which isn't there and you get that message.
    That's just a guess, I didn't have the patience to read that ugly unformatted code. There are two ways to do the multiple delete properly, if that's actually your problem: (1) run the loop upwards from 0 and always delete message 0; (2) run the loop downwards from N-1 to 0 and delete message i.

Maybe you are looking for

  • Problem in eos 1100d line in screen..

    I have this problem after a month from buy it ..blz tell me what is this problem? ..and can I fx it?.... sorry for my bad english..

  • Standard BAPI or wrapped in a ZBAPI?

    Hi folks, Iu2019m doing a scenario File to RFC (BAPI_PO_CREATE). The file has several purchase orders to create and Iu2019m wondering which the best approach to follow? Iu2019ve been thinking in the following two approaches: 1 u2013 As BAPI_PO_CREATE

  • Motorola Surfboard SB5100 Cable Modem

    My Toshiba modem is failing after 8 years. I am thinking of replacing it with the Motorola SBS5100. I use it with my laptop via Airport Extreme, and with my desktop via ethernet cable. Is this modem a good choice for my use ? Is their a better choice

  • CCMS--Number of emails

    Hi, I have configured CCMS alerts and i am getting emails for the same I am getting only one mail for the System Availability. I understand that it is the way of how it is configured. Please let me know if there is a way to configure the system that

  • Can read sharred variable only when the vi is ran a second time

    In an initialization VI, a shared variable is populated with information from a config file. There is no problem here. The variable is written to. However, when I read from the shared variable in a second vi, the variable only appears to have content