How to move all files to the top level folder?

I want to move all files within a particular folder -- and all files in all sub folders -- to the top level. i.e. I want to collapse the folder structure to just one folder. Assume that there are no files with the same name.
*Method 1*
My first thought was to use Find:
1. Limit Find to the particular folder.
2. Find all files in the folder with Size > 0.
3. Switch to List view. All files are listed.
4. Select all files and drag to the top folder
5. Delete all sub folders manually.
Problem: Pages files are not found, and maybe others aren't.
This is a simple method and I'd like to stick with it.
*QUES 1*
What condition should I set within Find so that I can be guaranteed of finding all files?
*Method 2*
It was suggested in another thread that I use Terminal to move all files to the top level, but I couldn't get it to work. And there was a problem with files that consist of bundles.
*QUES 2*
What is the easiest way to consolidate all files within a folder to the top level -- assume no duplicate names -- and at the same time remove all sub folders?
Message was edited by: Guy Burns

Thanks for the suggestion of EasyFind.
To find all files in a certain folder I typed in *[a-z 0-9] as a Boolean search (this thread won't let me post the exact characters required by EasyFind). That should cover every file I've ever named. EasyFind came back with "11719found/12316done".
Any idea what the missing 500 files would be? I'm hoping they are files that I don't need to know about (invisible files, system files and so on).
Message was edited by: Guy Burns

Similar Messages

  • How to move all files but X to Y

    It doesn't really matter if it's in the terminal or if it's a applescript but I need to know how to:
    Move all files in a dictionary but a few named.

    Could you pleas explain more?
    If you do not understand the shell while loop, it is possible that using shell commands is a bit more dangerous than you might want to try.
    The explanation:
    ls -a | grep -v "X" | while read file
    do
        mv "$file" "Y/"
    done
    ls -a will list all the files in the current working directory (including the invisible files that start with a leading period.  Thinking about this, maybe you do not want to include -a.  You could cd /path/to/the/desired/directory as a way to set your current working directory as the directory you wish to move things from
    cd "/path/of/the/from/directory"
    ls | grep -v "X" | while read file
    do
        mv "$file" "Y/"
    done
    The ls command's output is piped (the vertical bar | ) into the grep command (general regular expression parser).  The -v option tells grep to throw away any lines (filenames) that match the regular expression "X".  So if the regular expression X matches all the files you do not want to move, the filenames send to the next pipe will be the files you wish to move.
    The while loop will read the filenames grep has selected and invoke the mv (move) command for each file selected by grep and move them to the destination directory Y
    The bigest risk is that you will execute this in the wrong directory and move the files that you need somewhere else.  OR WORSE, if "Y" is NOT a directory, and you DO NOT put a trailing / the mv could move easy file to the destination file, deleting the previous file for each file moved, so effectively deleting every file in the directory except the last one.
    This is why I said if you do not understand what is going on with the shell commands, you could do damage to your system.
    ls could have the /path/of/the/from/directory instead of using the cd command.  The grep command could be replaced with egrep that allows using alternate matching strings:
    ls /path/of/the/from/directory | egrep -v "abc.txt|def.jpg|xyz.mp3|etc..." | while read file
    do
        mv "$file" "/path/to/the/destination/directory/"  # notice the trailing slash for safety
    done
    Good luck.  I hope you do not destroy your system

  • How to move all files from a folder for a user to a centralized folder on a core server with a GP

    Hello,
    I was curious if someone know how to move all the files of a user "local" profile on a Terminal Server to that of a centralized server where the "local" profile of like the user desktop, favorites, setting, etc are stored in the event
    the local profile on the TS become corrupt it can pull from this server...
    The problem I have is no matter what I tell users to save there files to our Y drive that is a folder that is synced
    across all 6 of our TS servers, users still store files on there desktops, so as you can imagine if one day they are on one server, then next day they could be on another and there files aren't the same.... hence the reason why I want to move all there files
    to the centralized server so when I redo the profiles from scratch on the TS server in the farm they suck files from the core server and have all of the files they are used to having.... 
    So I was curious and I've heard from some this is possible in a GP, but I'd like to move the contents of all 6 TS for
    each user or if I have to d this on  per user basis I will, just looking for a way to move the files....

    Hi Trevor,
    To move all users’ desktop to a server, we can use Folder Redirection to do this. The path for Folder Redirection is:
    [Group Policy Object Name]\User Configuration\Policies\Windows Settings\Folder Redirection
    In this situation, we can choose to redirect desktop to the root of a network file share or a folder on a network share.
    Regarding how to configure this, the following article can be referred to for more information.
    Configuring Folder Redirection
    http://technet.microsoft.com/library/cc786749.aspx
    Hope it helps.
    Best regards,
    Frank Shen

  • How to select all files from the application server.

    Hi all,
    I have  a requirement to select all files with the same file format I.e i have created no of files with same name but different time stamps addition , now i want to select all the fiels and read the data into an internal table and sort them on the user requirement,  I am using FM -
    /SAPDMC/LSM_F4_SERVER_FILE to get single file name, i should also give the option on the  selection screen for the user to select the file range I.e form which to which the sorting should be done.
    could anybody suggest me the function module which selects all the file names .
    Regards,
    Sre.
    Edited by: Alvaro Tejada Galindo on Mar 10, 2008 4:49 PM

    Hi,
    PARAMETER: p_fdir type pfeflnamel DEFAULT '/usr/sap/tmp'.
    data: begin of it_filedir occurs 10.
    include structure salfldir.
    data: end of it_filedir.
    *START-OF-SELECTION
    START-OF-SELECTION.
    Get Current Directory Listing for OUT Dir
    call function 'RZL_READ_DIR_LOCAL'
    exporting
    name = p_fdir
    tables
    file_tbl = it_filedir.
    List of files are contained within table it_filedir
    loop at it_filedir.
    write: / it_filedir-NAME.
    endloop.
    Regards,
    Omkaram.

  • Ant ; how to move nonjava files to the output folder whn i comile java file

    Hi when i compile my java file using javac ant task, i want to move non java file to the same output folder where the dot class file are stored. example if a package has 2 java file and a .properties file, when i javac task compile that package .properties file should move where the .class files are moving. can anyone help me please

    An ant target can carry out multiple tasks. You need to put the <javac> and <copy> tasks in the same target in your ant file.

  • How to group many tabs on the top-level into one tab?

    We have too many tabs on the top-level navigation.
    We want to group them into 1 or 2 tabs.
    Please advise the way to configure.
    Points guarateed. Regards!

    Hi Jeff,
    Try merging nodes.. Check this link for details :
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/53/89503ede925441e10000000a114084/frameset.htm">Merging Navigation Nodes and Defining the Sequence</a>
    Regards
    Abdul.

  • How to move all files from a folder for a user to a centralized folder on a core server

    Hello,
    I'm curious if there is a batch file that can be made to move the contents that are setup like this....
    I'm having to redo a TS cluster and I'd like to make a batch file script that can be executed that moves the contents of say 'jsmith's local desktop profile @ \\NGTTS1\users\jsmith to a centralized folder on our roaming desktop profile server that saves
    all of the files for the desktops @ \\NGTFS1\users\jsmith.
    The problem I have is no matter what I tell users to save there files to our Y drive that is a folder that is synced across all 6 of our TS servers, users still store files on there desktops, so as you can imagine if one day they are on one server, then
    next day they could be on another and there files aren't the same.... hence the reason why I want to move all there files to the centralized server so when I redo the profiles from scratch on the TS server in the farm they suck files from the core server and
    have all of the files they are used to having.... 
    Now I know I can do this with a MOVE command I've just never done one to this exact.
    Hopefully someone knows the command to move all the contents of one folder on one server to the folder on a different server. I've already got the bulk of the coding done of the .bat script I just don't know this move command:
    would it be this:
    move \\NGTTS1\users\jsmith *.* \\NGTFS1\users\jsmith
    any help would be appreciated, I'm sure this is a easy command to do!
    This is the coding I have so far....
    @echo off
    color 0A
    title Moving Local Profile folder to Centralized Profile Folder on Core Server.
    :start
    echo Welcome, %USERNAME%
    echo What would you like to do?
    echo.
    echo 1. Moving Local Profile folder to Centralized Profile Folder on Core Server
    echo. 
    echo 0. Quit
    echo.
    set /p choice="Enter your choice: "
    if "%choice%"=="1" goto Move-user-profiles
    echo.
    if "%choice%"=="0" exit
    echo Invalid choice: %choice%
    echo.
    pause
    cls
    goto start
    :Move-user-profiles
    echo.
    set /p profile="Enter user profile: "
    move "\\NGTTS1\users\%profile%" *.* "\\NGTFS1\users\%profile%"
    echo moving files from local profile folder to FS1 profile server, stand-by...
    echo.
    goto cancel-special 
    :cancel-special
    set /p cancel="Type cancel to stop action: "
    if not "%cancel%"=="cancel" exit
    cls
    echo Action is cancelled.
    echo.
    pause
    exit

    In Windows we would do this using Group Policy.  There is a Policy setting that csn move the Desktop folder to any server you want to move it to.  Once set it will automatically do this for you.
    You should post in the Group Policy forum to find out how we use Group Policy to manage users profiles in Windows.
    You cannot use a script to relocate a users Desktop folder.  The desktop is locked by the time the users logon script is finished running.  It the desktop and profile are already being managed by Group Policy then this can only be done with GP.
    There are also numerous issues associated with deployment and re-deployment that you need to address  Post your questions in the Winows Deployment forum to get assistance with deployment issues.
    Again - want you are asking is not generally possible because of how Windows is designed.  This would only likely work on a simple system or on a stand alone PC and then only under a very limited set of circumstances.
    Use GP folder redirection to do this.  For deployment use Deployment Forum and for TS specific issues post in the RDS forum. 
    All of  this needs to be considered correctly for TS users inn a TS Cluster environment. (TS Cluster?? - not sure what you mean by that.
    ¯\_(ツ)_/¯

  • How to move all files in Organizer to a network location

    I have a fairly large catalog with about 20 album categories, each with between 5 and 15 albums, totalling about 20,000 photos, all currently residing on my laptop. I need to move everything to a networked drive but can't find how in the Elements help system. Is there a quick and easy way to do this?
    Message title was edited by: Brett N

    If you have a complex folder structure, it may be best to do the backup/restore as this gives you the option of recreating the same folder structure at the destination location. If folder structure is no concern (that all files can just go to a single folder because you are using Albums instead), then the File > Copy/Move to Removable Drive command would be easiest. Just select the Move option and then choose your Network drive as the Destination Drive, use the Browse button to move the files to a specific folder on that drive.

  • How to move all files, and authorisations...

    Hi.
    I have been making music on a G4 powerbook for a while, but now i have got an imac G5 20" machine ready and waiting for me.
    The powerbook is running 10.3.9 and the imac will be running the latest tiger os.
    I need to find out the most painless way of moving all my software (i have a lot of music software (logic pro, audio instruments, each with their own validation codes etc) and i need to work out how to get this over to the other mac without having to move things one by one.
    Can it be done, or do i have to do everything one app at a time?
    Many thanks
    David Tobin

    You should be able to use the Setup Assistant found in your Utilities folder without a problem.
    Apple has a description and some FAQs HERE for you.

  • How to move a partition to the top of Disk Utility pile?

    I had Lion and SL installed in two separte partitions. But since I didnt like Lion I decided to erase Lion's partition and then fuse the free left space with the SL partition so I could have more HD space. The thing is disk utility only alows to expanded downwards from the down border of the partition. As you can see I've got tons of free space above Macintosh HD 2. 224GB. I want to move Macintosh HD 2 up so then I can expand it to "catch" all that free space. Do I make any sense? I don't want 2 Partitions, just one! With SL. But I can't expand it up only down
    Please help guys Its killing me... didnt find any solution to this particular problem here.
    Thanks in advanced
    - Tiago

    Like Neil said, you have to clone your SL off to a external drive, option boot from it, format the internal drive again so it's one partition, then reverse clone SL back onto it.
    Doing it all on the same drive is rather risky and might not be possible if the second partition is larger with data than the first. A clone on a external drive will also give bootable backup in case all heck breaks loose.
    Important thing is that the entire drive is erased, (select the Toshiba, Western Digital, or Seagate internal "media" on the far left side) as there is a hidden Lion Recovery partition that also needs to be removed.
    So you really have 3 (actually 4 counting EFI partition) partitions on your boot drive if Lion is installed so you need to reduce that to two (SL and the hidden EFI, Disk Utility creates)
    It's easier than it sounds really, make sure all other drives, media is removed so there are no accidents.
    1: get a blank external drive, use Disk Utility to Erase Security Option > Zero All Data and format 1 partition, Option: GUID OS X Extended in the Partition Tab.
    2: free Carbon Copy Cloner to clone internal SL to external (default settings are fine for first clone)
    3: hold option boot the external SL drive, use Disk Utility (on the external drive!) to erase the whole internal drive media
    4: use CCC to reverse clone onto the internal drive
    5: use free Onyx and run ALL maintainence and cleaning aspects and reboot at the end when finished (cleans up caches, makes your machine run faster)
    http://www.titanium.free.fr/
    You can learn all how to do that in my huge thread here
    https://discussions.apple.com/message/16276201#16276201

  • How to move all footage to the right

    I need to insert some clips in the middle of my timeline, but can't stumble my way through it. 

    Hi
    Use Your arrow pointer and select it by making a square over it and move slightly to the right.
    If You don't have all TimeLine visibly - then {Shift+z} and all will fit to be viewed.
    Yours Bengt W

  • How to move all contacts TO the SIM card on an N97

    I have searched and while some topics exist on taking from the sim card using Nokia Suite, none address my issue of moving contacts from phone memory to the SIM Card.
    I have the latest N97 and Nokia Suite updates, but I can find no way to write to the SIM card.
    Thank you in advance to anyone who can help!
    Solved!
    Go to Solution.

    Firstly there is a limit to the number of contacts you CAN copy yo sim, but it is vey simple to copy them !
    Open Contacts>Options>Mark/Unmark>Mark All>Options>Copy>Sim Memory
    and that's it 
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • How to Delete Top Level Folder

    I have a number of files in a hierarchy of folders and I wish to delete the top level folder but leave in place all the sub folders and files contained therein. There are only folders (no files) under the top level folder. Specifically, I do not want to just select and drag and drop all the subfolders.
    Any help on how to do this appreciated.

    First, to clarify the term - there are traditional VS projects (C# project, VB project, etc.) and with Team Foundation there are now Team Projects. Given the question, I take it you mean team projects (as created with the "New Team Project" option and going through the Project Creation Wizard).
    When you create a team project called "foo", the folder for that project (assuming you had it create a folder during the Project Creation Wizard, which is the default) will be called $/foo. Based on your question, I take it you're referring to a folder called "bar" that would be at server path $/foo/bar since it's part of the "foo" team project.
    The easiest way to rename or delete such a folder would be to bring up the Source Control Explorer (View | Other Windows | Source Control Explorer) and navigate to that folder. You'll want to make sure that you have the folder in your local workspace (this is a limitation when have in V1) so you may want to right-click on "bar" and do a "get latest version" first. If you don't already have it mapped, you'll be prompt to pick a local path to map it to.
    When you right-click on the folder "bar" (once you have it in your workspace), among the entries in the context menu will be Delete, Rename (for the "rename to oranges" case), and Move (for "move it to another folder"). Note that each of these pends the operation on the workspace, and you'll need to check in before the change is committed to source control.
    tiny screen shot: http://static.flickr.com/29/55040912_e3190835e6.jpg

  • How can I put files into the trash without login every time?

    Every time I want to put items in the trash, after dragging things to the basket, I have to sign in.  Why? Can I set the defaul to allow me to do so without login?

    The procedure below will reset the permissions of a user's home folder in OS X 10.7.4 or later, including 10.8 or later. If you're running an earlier version of 10.7, update to the latest version first. This procedure should not be used under OS X versions older than 10.7.4.
    Back up all data before you begin.
    Step 1
    Click the Finder icon in the Dock. A Finder window will open.
    Step 2
    Press the following key combinations, in the order given:
    Command-3
    Shift-command-H
    Command-I (the letter "I" as in "Info.")
    The Info window of your home folder will open.
    Step 3
    Click the lock icon in the lower right corner and authenticate with the name and login password of an administrator on the system. If you have only one user account, you are the administrator.
    Step 4
    In the Sharing & Permissions section of the window, verify that you have "Read & Write" privileges. If not, use the "+" and "-" buttons in the lower left corner to make the necessary changes.
    Step 5
    By default, the groups "staff" and "everyone" have "Read Only" privileges. With those settings, the files at the top level of your home folder will be readable by other local users. You can change the privileges to "No Access" if you wish, but then your Public and Drop Box folders will be inaccessible to others. Most likely, you don't need to change these settings.
    Step 6
    If there are entries in the Sharing & Permissions list for users or groups other than "me," "staff," and "everyone," delete them.
    Step 7
    Click the gear icon at the bottom of the Info window and select Apply to enclosed items... from the drop-down menu. Confirm. The operation may take several minutes to complete. When it does, close the Info window.

  • RH8 + WinXP - Move all files after a build to version control?

    I am working with about 300 topics that are built into WebHelp.  Must I move all files from the WebHelp root and sub-folders to our Subversion folders after I have done a build with RH?
    From Subversion, the Help files are added "en masse" to the application.
    Can I move only those files that I've changed, if I am only changing content but I am not adding new topic files or deleting files?

    The odds of you actually identifying every, and I mean every, changed file are very low. Do yourself a favor.
    Good luck,
    Leon

Maybe you are looking for

  • Error in saving .aspx pages after editing the XSLT

    Hi, I am developing a SharePoint 2010 web app and I had to do some modifications for a .aspx page which has a data form web part and I am encountering following issues: 1. After selecting the web part, when trying to modify the filter criteria of the

  • Payment batch cancel

    hi we want to cancel one of our payment batches,which contains somany payments,is it possible to cancel it without selecting all payments in that?

  • Spell Check Text in Spanish in Acrobat Pro 9

    I can only spell check in English and I work in various languages. I went to File > Properties > Advanced > Reading, changed it to Spanish Then Edit > Check Spelling > In Fields editable text, comments  then when it opens it does not show Editable Te

  • [ADF] Query panel advanced search - starts with

    Hi all I have a query panel with an attribute which has an Attached LOV. The operator is defined as "Equals" in the View criteria The attribute is behaving properly View image: 1 but when switched to advanced mode and "starts with" operator selected,

  • Particular 2 - orient particles to motion path?

    I have a particle system set up using a Light Motion Path to dictate where particles should go. Is there a way to orient the particles to the motion path?  (Like arrows following a path).  I know Particular 1.5 couldn't do it... wasn't sure about v2.