Results 1 to 8 of 8
  1. #1
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Texas, USA
    Posts
    374
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Transfer Order (WinXP)

    When I drag and drop all the files in a folder to a 128MB jump drive, how to control the order of the file copying? The following is a sample of the file in the folder. I want to copy the file to the jump drive in the order from the top to the bottom. It seems that Windows copy these files by an order that is different from the way I sort the file names.

    Actually I am copying these audio files to a MP3 player which plays all the songs in the order that they are transferred.

  2. #2
    5 Star Lounger
    Join Date
    May 2002
    Location
    43.8N 81.0W, Ontario
    Posts
    815
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Transfer Order (WinXP)

    If you're not adverse to renaming the files, you could use a batch renaming utility. Copy the files to a "temp" folder (assuming you want to retain the current naming/order for future reference) and run the rename utility to rename the files consecutively. Then when you copy, they should stay in order.
    A browse through the "Software Finds and Wants" forum should turn up some threads with download links for such free utilities.

    Have a Great day!!!
    Ken
    <IMG SRC=http://www.wopr.com/w3tuserpics/KenK_sig.gif>

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Transfer Order (WinXP)

    Drag & drop uses "unsorted" order, as you've discovered. There was a thread on this relating to WinZip, I think. I don't recall there being a simple one-step solution.

  4. #4
    Silver Lounger Bruce K's Avatar
    Join Date
    Apr 2002
    Location
    Phoenix, Arizona, USA
    Posts
    1,876
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Transfer Order (WinXP)

    Hi, Jefferson ~

    Your memory serves you well. <img src=/S/newbrain.gif border=0 alt=newbrain width=21 height=22> That was a thread that I believe I initiated and there has been no resolution. The renaming has no effect as copying does seem to occur in an unsorted if not another undetermined fashion.

    Dennis, after you copy them to a folder, does not closing, reopening and right-click sorting but them in order in your view preference?

  5. #5
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Transfer Order (WinXP)

    <P ID="edit" class=small>(Edited by jscher2000 on 27-Jun-03 16:46. arggh, typos)</P>Here's a workaround:
    1. <LI>Open a command promt (Start>Run>cmd)
      <LI>Navigate to your folder (using DOS commands such as cd)
      <LI>Run the dir command with sorting switches until you figure out how to get the order you want (e.g., dir /o-n for reverse alphabetical; use dir /? for more ideas)
      <LI>Pipe the results of your dir command, adding /b to it to strip off all but the file names, to a text file (e.g., dir /o-n /b > mylist.txt)
      <LI>Open Notepad and check out the list. If it looks good, your next step is to preface each line with a command (e.g., copy) and add the destination onto the end of each line. If the file names all start with the same letter, as they seem to in your case, you can use Replace to do the first part; similarly, if they all end with the same letters (hidden in your example), you can use Replace to add the latter part. (If they're different, copy and paste is reasonably efficient.) If you need more power, Word might be a better tool.
      <LI>After you save your file, you can return to your command window, rename mylist.txt with a .bat extension, and run it to copy the files one by one in the prescribed order.
    It's a bit of work, but if you don't find anything else...

  6. #6
    5 Star Lounger
    Join Date
    Dec 2002
    Location
    Perth, Western Australia, Australia
    Posts
    730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Transfer Order (WinXP)

    Good thinking! And the editing can be eliminated with the for command, once you have the dir command under control. Just use the dir command as the "set" parameter in your for command. (Do a "for /?" to get all the gory details.)

    eg FOR %X IN (dir /o-n /[img]/forums/images/smilies/cool.gif[/img] DO copy %X Z:
    <font face="Comic Sans MS" color="blue">TimOz</font>
    <img src=/S/flags/Finland.gif border=0 alt=Finland width=30 height=18> <img src=/S/flags/Australia.gif border=0 alt=Australia width=30 height=18>

  7. #7
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Transfer Order (WinXP)

    Wow, I never used FOR in any batch files before. Very slick. (Assuming it works, I haven't actually tested it. <img src=/S/grin.gif border=0 alt=grin width=15 height=15> )

  8. #8
    5 Star Lounger
    Join Date
    Dec 2002
    Location
    Perth, Western Australia, Australia
    Posts
    730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Transfer Order (WinXP)

    Should work, once the syntax wrinkles are taken care of, like % for cmd line and %% for batch (or vice versa?). I noticed that it's grown up a lot since I used batch files to perform magic in the dark ages before Windows.
    <font face="Comic Sans MS" color="blue">TimOz</font>
    <img src=/S/flags/Finland.gif border=0 alt=Finland width=30 height=18> <img src=/S/flags/Australia.gif border=0 alt=Australia width=30 height=18>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •