Download pathc400.zip from Novell. Extract the zip and right click on the .inf file. Click Install.
Now when you right-click on any file or directory you should have the Copy Path option to copy file and dir paths to the clipboard. This is used to build the “list” file which your batch file will use to copy specific source files from.
Create a batch file with the following contents in it:
@echo off
set flags=/Y /E /V /F /C
for /f "eol=; delims=," %%f in (file_list.txt) do xcopy %%f %flags%
echo.
echo.
echo Copying complete.
echo.
echo.
pause
Save it to whatever name you like but make sure it is in the same directory as the file_list.txt file that you are about to create.
Create an empty txt file and call it file_list.txt. Save it to the same directory as the batch file you just created. Open the new empty text file.
Now go to the source directory that contains the files you would like to copy. Right-click on the file or files you would like to copy and choose Copy Path and Copy Long Path. Now go to the empty text file and press CTRL-V (or SHIFT-INSERT) to paste the path and file name.
It should look something like this (notice the directory structure implicitly stated in target path), containing a source directory in quotes followed by a destination directory in quotes:
"C:\Inetpub\wwwroot" "C:\"
"C:\Inetpub\wwwroot\" "C:\"
Once you are done building your file list simply (save the text file, first) then simply execute the batch file to begin your (explicit) file copy.
No comments:
Post a Comment