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

Author Topic: How to copy hidden or system file?  (Read 3681 times)

0 Members and 1 Guest are viewing this topic.

James2000

  • Guest
How to copy hidden or system file?
« on: June 12, 2007, 11:22:35 AM »
Hello,

How do I copy a hidden or system file, using Windows XP cmd.exe ?

I have tried  copy hidden.txt backup.txt  and it says  "The system cannot find the file specified" ?

I have also tried  xcopy /I /H hidden.txt backup.txt  which is a step in the right direction, except it says  "Does backup.txt specify a file name or directory name on the target"  each time and I have to press "F" each time ?

Thanks alot,
James

GuruGary



    Adviser
    Re: How to copy hidden or system file?
    « Reply #1 on: June 12, 2007, 11:00:13 PM »
    You want to copy it to a different filename?  If you are copying a hidden file to a different directory (same filename) then your XCOPY /H should work.  If you want to copy it to a new filename, here some ways that should work:
    • Pipe the 'D' to the xcopy command (echo d | xcopy /I /H hidden.txt backup.txt)
    • Create a dummy file first (echo.>backup.txt&xcopy /I /H hidden.txt backup.txt)
    • Remove attributes and then re-apply after copy (attrib -h hidden.txt&xcopy /I /H hidden.txt backup.txt&attrib +h hidden.txt)
    • Redirect the hidden file to the new file (type hidden.txt>backup.txt)

    Fen_Li



      Beginner

    • G-Smart thing Smart
    • Thanked: 2
      Re: How to copy hidden or system file?
      « Reply #2 on: June 13, 2007, 11:24:41 AM »
       ;) :)
      Maybe More Simply if using Type command:
      -------------------------------------------------------
      type hidden.txt>backup.txt
      -------------------------------------------------------
      it work with Hidden+System File
       :) ;) :D ;D :o 8)
      ..Still Newbie KID..