Collapse the directory tree in xcopy

Forgive the elementary question on xcopy.  It's been rather a long time since I played with it.  Last century, in fact.
How do I select a particular file type (*.pst) from the entire folder tree of the source, and copy all of them to a single folder in the destination?
e.g.:  xcopy *.pst destinationFolder /S      results in
     destinationfolder
          subfolder1
               subfolder11
                    subfolder111
                         firstinstance.pst
          subfolder2
               subfolder21
                    secondinstance.pst
etc.
What I want is:
     destinationfolder
          firstinstance.pst
          secondinstance.pst
          etc.

Hi,
/s will create the subfolders so it will not work.
Try this one:
for /R %G IN (*.txt) DO xcopy "%G" <destination> /s
If you have any feedback on our support, please send to [email protected]

Similar Messages

  • Is there a function to go UP in the directory tree?

    Hi,
    Anybody knows about a function to go up one stage in the directory tree?
    Thanks,
    Marce

    Marce wrote:
    > Hi,<br><br>Anybody knows about a function to go up one stage in the directory tree?<br><br>Thanks,<br><br>Marce
    In LabVIEW? Try the "Strip Path" function in the File I/O palette.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • In OS 10.7.5, how do I get a listing of folders similar to the "directory tree" that I used to have when I was suffering through MS-DOS?

    In OS 10.7.5, how do I get a listing of folders similar to the "directory tree" that I used to have when I was suffering through MS-DOS?

    I'm not quite sure what it is you are looking for, but there are a three different ways to view the files and folder in a directory in Finder - Icon view, List view, or Column view - or you can use Terminal and use the various options for the ls UNIX command for listing a directory. For those options, see:
    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man1/ls.1.html
    Hope this helps.
    Regards.

  • How to go back to the same directory after opening one bookmark instead of having to browse the directory tree again to open another bookmark from the same dir

    I regularly need to check several bookmarks that are stored in the same directory, which usually is a couple of clicks from the main bookmarks menu.
    When I select a bookmark in the tree that I created to organize my bookmarks and it does not give met the web-page/information I was looking for, I want to try another bookmarked web-page in the same directory.
    So I have to click my way through the whole tree again.
    I would highly appreciate if it could be made possible that hovering over the bookmarks menu automatically will unfold the whole tree to the directory where I have been last. That would be a real time saver.

    Try using the Bookmarks Sidebar. '''{Ctrl + B}''' to open and close it. It will stay open until you close it, and when you do close it, the scroll position will remain until you close Firefox.

  • Run time error on collapsing the catalog tree node

    Hi Experts,
    Scenario is of SAPCRM 7.0.
    On the Catalog page we get a tree in the left pane with all the poducts listed.
    We can expand/close the tree and see the products.
    While i select - (minus) and close the node, the system throws a run time error.
    Trace shows a run time error at SetItemPageSizeAction.
    Please help if any of you have faced a similar issue.
    Thanks,
    Rohit

    Hi Ashok,
    We have B2B webshop with ECC and CRM. Product catalog are all maintained in CRM.
    Where do i exactly need to check the xcm settings ?
    I went thru a bit with XCM but couldnt find the field mentioned by you.
    Thanks in anticipation,
    Rohit Sharma

  • ...... the file structure and the directory tree.......

    I am a beginning learner and have a test for Database Server (Oracle 9i).
    There are about 1000 employees in this company ,and about 100 employees at the same time to use the online service in any time.
    On hardware,there are a new Intel Xeox with 4 HDD (Raid5) and 3 indepentent HDD.And the OS is UNIX ,and with the Oracle basic request.By the way,thanks for your reading and help.

    Put you controlfiles on raid disks. Multiplex your eedolog file on seperate disk not on raid. put your datafiles on raid disk. if your database work in archive log mode then place your archive logs on seperate disk.
    I send you general distribution according to my knowledge but it can ba changed according to situation

  • Directory Tree Portlet

    We are looking for a portlet that will allow content providers to create new folders via a simple Windows Explorer (directory tree) style interface. We need the interface to be properly linked to the database so that it reflects the current structure and so that folders can also be deleted via the same interface. It should have all the basic expanding and collapsing features and I would like it to show the content of the folders like Explorer does. Can anyone give me guidance on whether such a portlet already exists or how difficult it would be to develop if it does not exist? (Or maybe I'm headed down the wrong path here and should use a completely different solution...)
    All help would be appreciated. Thank you.
    Kevin
    null

    This sounds more like an iFS requirement. It does all that (and more!), but not as a portlet (yet?).
    You can approximate the directory tree with a Portal Content area (which is available as a portlet), and you get pretty much everything except the expand/collapse bit. It's more along the lines of drill down/drill up.
    --Kelly                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Search a Directory Tree For a Directory

    Hello All,
    Alright, the backround first. I am working on a system for managing photos for cases. So, the top photos dir has 5 dirs represnting the years. In each of those, are months, in those are days, and in the days there are dir named for the casenumber. This may sound confussing but...Say for Case number 05-00001 which happened January 1st 2005, the photos would be in ./photos/2005/1/1/05-00001/Now I cant change the dir structure because this is how the system uploads them, but I need a program to search this dir tree when the person enters a case number and return the photos. Everything works great (from a logic standpoint) but the problem is that there are about 20,000+ cases a year and if the case is toward the end it takes FOREVER to search through them all.
    What I am looking for is suggestions on how to most efficently search for these cases...
    Thanks,
    Matt

    a particular string. I was able to read one file in
    a single directory but not in any other directory.
    How would I go about writing code to be able to
    access all files in directory that has multiple sub
    folders.
    You can do that several ways.
    Most likely you'll end up with some sort of recursive iteration over the directory tree.
    Not hard to write, somewhat harder to prevent memory problems if you end up with a lot of data.
    Also, when I started to write my program I tried to
    use the DOM XML Parser to parse my html page. My
    logic behind this decision was that if you look at
    html code it is an xml document. But as I was
    trying to run my program I noticed that I had to
    convert my html document into xml format. I really
    don't want to have to build my own html parser. Is
    there a html parser that is included in Java. Oh my
    program is just your basic text program. No
    interfaces.
    A VALID xhtml document is a valid XML document.
    Problem is that most HTML isn't xhtml.
    Another problem is that most HTML is fundamentally broken even to its own standards (which have always been based on SGML on which XML is also based).
    Browsers take that into account by being extremely lax on standards compliance and effectively making up tags as they go along to fill in the missing ones in the trees they parse.
    That's however not a standardised process and each browser handles it differently (and as a result most html will render differently in different browsers).
    Java contains a simple HTML parser in Swing, but it's primitive and will only parse a subset of HTML 2.0.
    There are almost certainly 3rd party libraries out there that can do better, both free and/or commercial.

  • No directory tree on POP3 accounts vs. IMAP accounts on BB Passport

    Hello,
    After the setup of 4 different e-mail accounts in the BB mail client of my BB Passport I discovered that I cannot see the directory tree of the typical elements of inbox, sent files, outbox, drafts etc. if I want to look into some stored e-mails.
    If I touch the headline in the mailbox of one chosen account (e. g. “Freenet”) – nothing happened. It is the same case in 3 of those 4 accounts. If I got an e-mail and I touch the “file/store” symbol I could see the above mentioned directory tree. In that case I can click on inbox and it seems that the e-mail is stored.
    If I would now go back and look for former (already stored) e-mails which I couldn’t see any more in the Hub I cannot expand the tree from the account headline.
    The only account which is working fine is the IMAP account of Google Mail. All others are POP3 accounts. Is there any reason that there is no directory tree displayed in POP3 accounts? Is this a bug or is this intended? At home I use outlook and I have no issues to see such a directory tree for the same account on POP3 basis.
    Usually I wouldn’t work with IMAP but other mail programs like k9 (which is working fine -> sideloaded) are not implemented in the Hub-structure. That is the reason why I installed all my accounts on the BB system directly.
    Is there anybody who could help me with an explanation or with a workaround to fix this issue?
    Thank you in advance!
    Software version: 10.3.0.908
    Kind regards,
    Tenonen

    It is not the kind of sync I am looking for or I am expecting...
    If I store an e-mail from one of my POP3 accounts starting from the Hub surface (total view of all events/inboxes) I can see that short tree of four elements (inbox, sent...). But I cannot find it if I would like to re-open my inbox of a POP3 account like I can do it with an IMAP account.
    If I choose my Google Mail account from the Hub preference "google mail" and I touch the head-line of this IMAP account the tree pulls down. If I choose one of my POP3 account from the Hub preference "Freenet" and I do the same (touch the head-line of the account) no tree will be opened.
    It is no problem to see all my requested things in k9 as an alternative e-mail client. But the disadvantage of k9 is that it is not embedded in the Hub-architecture.
    John_Clark, maybe it is now more clear to understand my issue.
    Thanks for your reply in advance.
    Kind regards,
    Tenonen

  • LR 5.2 Import directory tree

    Guys,
    is it just me or is there no setting in LR that forces it to "remember" the last directory files were imported from?
    I am currently reorganising my catalogs and also importing a whole bunch of new files. It really slows the work flow down if you have to click through the directory tree over and over again... I have a 2TB hard drive dedicated to my photos and drawings, with a highly structured directory tree.

    Lr doesn't remember last folder used but doesn have the facility to importing directly into a specific folder. This is achieved by right clicking on the destination folder in Folder panel then chossing Import to this folder... from context menu (screenshot below). The Lr team can be contacted at http://feedback.photoshop.com/photoshop_family/products/photoshop_family_photoshop_lightro om
    I don't know anything about Google+

  • Acroread 9.1.0 reads the full directory tree /usr/share/fonts

    Hi,
    I was wondering why the startup time of acroread is that high on my system (Debian 5.0). I have found out using strace that acroread reads the full content of the /usr/share/fonts/ directory tree (more than 4000 files) during startup in a quite inefficient way.
    First question: why does it read /usr/share/fonts during startup at all and is there a way to disable that behaviour?
    Second question follows: the ext3 requires that an application reading the full content of a directory should sort the file list numerically by inode number before opening the files. It is explained in http://bugzilla.kernel.org/show_bug.cgi?id=417 why the application should be fixed and not the kernel. Can acroread be changed to qsort() the file list between the calls of readdir() and open()?
    Cheers,
    Torsten

    Hello Torsten,
    Thanks for reporting the issue. Could you please let us know if you are opening acroread with a file(either by double clicking on it or giving it as a parameter to acroread). If yes, could you please see if launch time is still high when you do not open a file(launch acroread by clicking on the Desktop icon or launch it from console). Also, it would be helpful if you can mail the strace output to sanika at adobe dot com.
    As for reading the location, it is one of the standard font locations mentioned in /etc/fonts/fonts.conf. If you do not want acroread to use these fonts, you can set ACRO_DISABLE_FONT_CONFIG to 1 on console.
    If you do not want to set this variable every time you launch reader, you can search for "ACRO_DISABLE_FONT_CONFIG" in the launch script, uncomment the relevant section and save the script.
    However, I should warn you that Reader would not be able to use these fonts to display PDFs(substitute fonts would be used instead).
    Sincerely,
    Sanika

  • Syncing iPod to Selected Playlists: How to collapse the tree

    My iTunes library is much larger than my 60GB iPod, so I have two ways to pare things down when I download to the pod.
    1) I can uncheck things in playlists that I don't wish to load on my iPod. This is what I do.
    2) I can check the "Selected Playlists" button and then check the playlists I wish to download. I'd like to do this, but it's a little hard to get around a problem:
    Whenever I connect my iPod and go to the "Music" tab that controls how I download, my "tree" of playlists is always fully expanded (I have folders within folder). Of course I can manually collapse the tree, but this operation doesn't appear to be "sticky". As soon as I apply changes, or simply reconnect the iPod, there's the tree fully expanded again. It's a large tree and this is rather a large pain.
    So does anyone know how I can collapse the tree (or pieces of the tree) and have it stick? Many thanks.

    You might provide feedback to Apple regarding this issue, so they know you care.
    I too, would assume that the state of the "tree" should be remembered, or at least, it should be in the same state than in the sidebar when you connect you iPod.
    http://www.apple.com/feedback/itunesapp.html
    Frédéric

  • Is there any way to create 3D PDF file without having the model tree ?

    Is there any way to create 3D PDF file without having the model tree ?
    3D communication is good but sometime we don't want the receiver to be able to study every components in model.
    or any way to make the receiver cannot use model tree and measurement tool ????
    Thank you very much

    You can remove the assembly tree by doing a roundtrip in 3D Toolkit, here's how:
    - start Acrobat 3D
    - drag & drop a CAD file
    - click on 3D Annot to activate
    - right-click on 3D
    - select 'Edit in 3D Toolkit'
    - 3D Toolkit launches
    - click in 'Scene Tree' panel
    - right-click on top assembly name
    - select 'Tools->Collapse Hierarchy'
    - select 'File->Save'
    - select 'File->Exit'

  • Best practice for designing a directory tree

    Hello all,
    I wanted to know what you all think about what is the best way to design a directory tree. Again it seems to me that experience makes the man perfect and I wanted to know what you all think about how to design directory tree model.
    Here is my view; I believe that keeping at least Users/ Employee information flat make more sense to me. I know it’s a good idea that one should consider an organizational hierarchy when designing a tree. But there seems to be some problem too. If employee moves from one department to another within the same organization then directory administrator has to change the location/department of the user. However, if all users are under the same namespace i.e. ou=Users, administrator does not have to change or move users location in the directory to another location.
    Also, while designing a directory there could be several hierarchy, one is organizational hierarchy another could be organizing user info based on job roles i.e. CEO->VPs-Managers->Consultant.... and so on so. So which one should consider. So by considering ou=Users namespace, we are avoiding risk on favoring one type of hierarchy.
    The trade-off in using ou=Users a flat namespace is that browsing of the directory looks less interesting.
    Anyway, this is my view, I would like to know your views too and hope this thread will help other in building their own directory Tree.
    Thanks
    Syed Suhail Ahmad

    Honestly it really depends on what you need your system to do and how you want to handle administration. I have read the argument about keeping things simple with using ou=USERS and seems like the best situation for administration purposes. Currently my client is wanting all identity management to be handled in OID so I am in the process of doing our hierarchy also. I still have to explore the abilities of OID to see how I can set things up.
    There are a few good books and websites that are good for referencing ldap. One book I use is LDAP Programming, Management, and Integration by Donley. For websites, just search on google or check out www.ldapguru.com or www.openldap.org(possibly).
    Hope this helps a little. I honestly can speak on the best way since I haven't implemented my own yet nor do I think one way will always be best for every situation.

  • Transfer of all files in a directory tree using FTP adapter?

    Hi,
    I'm looking for a solution to transfer a whole directory tree, including the content, from one location to another using the FTP adapter.
    Is there an easy way to accomplish this?
    Any help would be appreciated.
    Thanks
    Sigrid

    Hi Sigrid,
    I'm just wondering on the need to do that using SOA. Is it a regular transfer or one time?
    There's a way to move a single file from one FTP location to another on the same or different FTP server (link to the cases). But in order to move all the files in a directory, you'll have to loop this. The high level steps will be:
    - List all the files recursively that are present in your directory using File List operation
    - Implement the MOVE file operation (or COPY operation) of the FTP Adapter
    - Invoke this MOVE operation in a while loop and pass the file names, as gathered from the File List operation, one by one to MOVE operation
    You can also use single Java Embedding activity and call a Java class that does the File Transfer but depends on your requirements.
    Let us know how you get along.
    Regards,
    Neeraj Sehgal

Maybe you are looking for