Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: xcopy  (Read 3854 times)

0 Members and 1 Guest are viewing this topic.

Deadly D

    Topic Starter


    Rookie

    xcopy
    « on: September 22, 2009, 11:56:43 PM »


       hi i want copy system hidden file so i do........ i try xcopy /h but this is not dun...

       so how i do.

    Dusty



      Egghead

    • I could if she would, but she won't so I don't.
    • Thanked: 75
    • Experience: Beginner
    • OS: Windows XP
    Re: xcopy
    « Reply #1 on: September 23, 2009, 01:55:21 AM »
    Please post your code.
    One good deed is worth more than a year of good intentions.

    Deadly D

      Topic Starter


      Rookie

      Re: xcopy
      « Reply #2 on: September 23, 2009, 02:23:34 AM »


      Code: [Select]
      C:\xcopy E:\my picture\we.jpg /h

      gpl



        Apprentice
      • Thanked: 27
        Re: xcopy
        « Reply #3 on: September 23, 2009, 08:31:09 AM »
        One thing strikes me, your file has a space in it, try it with quotes

        Code: [Select]
        xcopy "E:\my picture\we.jpg" /h

        Deadly D

          Topic Starter


          Rookie

          Re: xcopy
          « Reply #4 on: September 23, 2009, 10:04:11 PM »


          But it ask for that Directory of file i want copy only file i give a "f" to all time.

            for any solution of that.
           
           i doing like this
          Code: [Select]
          @echo off
          set textfile=C:\MyFolder\My test file.txt
          set destfolder=C:\destination folder
          for /f "delims=" %%F in ( ' type "%textfile%" ' ) do (
               echo Copying %%F
               xcopy "%%F" "%destfolder%" /h
          )

          at that time it happen

          [attachment deleted by admin]

          Dusty



            Egghead

          • I could if she would, but she won't so I don't.
          • Thanked: 75
          • Experience: Beginner
          • OS: Windows XP
          Re: xcopy
          « Reply #5 on: September 25, 2009, 01:53:14 AM »
          The XCopy message is issued because XCopy does not recognize the destination folder as a folder or a file.   Include a backslash "\" in your set command e.g.

          Quote
          set destfolder=C:\destination folder\

          One good deed is worth more than a year of good intentions.