Computer Hope
Microsoft => Microsoft DOS => Topic started by: Deadly D 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.
-
Please post your code.
-
C:\xcopy E:\my picture\we.jpg /h
-
One thing strikes me, your file has a space in it, try it with quotes
xcopy "E:\my picture\we.jpg" /h
-
(http://12.jpg)
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
@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]
-
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.
set destfolder=C:\destination folder\