Results 1 to 5 of 5

Thread: How to copy a directory or folder

  1. #1
    Join Date
    Jan 2009
    Posts
    141

    How to copy a directory or folder

    Hello friends, i know that many people still have some confusion about how to copy a directory or folder in various ways if the user is in Windows XP, Vista mode, MS- DOS mode or if he is in Linux or UNIX over here i will provide your steps for how to copy a directory or folder In Windows XP or Vista, if anyone know about Linux and MS - Dos then please reply to this thread.

    For copying a folder or a directory In Windows you need to first locate and highlight the folder you want to copy, then right click on that folder and select copy option, then move to the location or the folder where you want to copy the folder for that you need to once again right click and select paste option and here you done with it.

  2. #2
    Join Date
    Dec 2008
    Posts
    97

    Vopy a directory or folder In MS-DOS

    I know the procedure to copy a directory in MS- DOS for that you need to use command name as xcopy. If you want to move to a any directory or sub directories for example we will be moving the folder named as Folder1 for that you need to first use cd command

    Code:
    cd\Folder1
    By using this command you will be inside the Folder1 directory, now if you want to copy contains of Folder1 Directory to another folder name as Demo1, then following is the command for the same

    Code:
    xcopy c:\Demo1 /e

  3. #3
    Join Date
    Jul 2009
    Posts
    49

    Creating a Batch File to copy a directory

    I am having a folder in my D: Drive and in which there are various directory which i am using it for whole day at the end of the day i copy all those files and folder to my pen drive, after doing this i can leave my office, when i told my friend about it he told me why don't i create a batch which will copy all the files and folder to my drive whenever i run that batch file. Can anyone help me out with the same.

  4. #4
    Join Date
    Dec 2008
    Posts
    137

    How to copy a directory or folder

    In that case i would suggest you to use xcopy sourcepath destination path /D:m-d-y where /D:m-d-y will copy all the files changed after the specified date. If you had not provided any date then it will copy only those file whose source time is newer than the destination time. In this way it will save your everyday.

  5. #5
    Join Date
    Dec 2008
    Posts
    128

    How to copy a directory or folder

    If you want to copy any Folder or directory in LUNIX or UNIX then you have to use cp command, don't worry i will also provide you an example for the same where all the files will be copied in /home/files directory to the /home/backup directory and here is teh code for the same
    Code:
    cp -r /home/hope/files/* /home/hope/backup

Similar Threads

  1. PHP code to copy one folder into another folder
    By Svetlana in forum Software Development
    Replies: 2
    Last Post: 12-04-2012, 05:05 PM
  2. X- Copy directory wildcard use
    By Beryl in forum Operating Systems
    Replies: 4
    Last Post: 27-03-2010, 07:57 PM
  3. Copy To Folder... on every File and Folder
    By technika in forum Operating Systems
    Replies: 4
    Last Post: 05-12-2009, 04:16 PM
  4. Need to copy all content of a directory.
    By sportsfan81 in forum Software Development
    Replies: 3
    Last Post: 29-05-2009, 06:47 PM
  5. Replies: 2
    Last Post: 27-02-2009, 01:23 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,112,315.93903 seconds with 17 queries