Search : in
By :

Copy files having name noted in .txt file

ricky, on Oct 31, 2009 11:19:37 am GMT 
 Report this message to moderators

Hello,

Actually I have names of certain files in a .txt file....
I want to copy this files from one folder to other
I want to write a batch file for the same....

Eg :
I have 50 files in c:\
I noted 15 of them in a .txt file say sample.txt
I want to copy this 15 files to d:\
I want to write a batch file which server the purpose

I was using code as
for %a IN (d:\\sample.txt) do copy "c:\\%a" "d:\\"


its giving error......
Any help is highly appreciated..

Configuration: Windows 2003
chrome

Best answers for « copy files having name noted in .txt file » in :
Writing in batch in text file ShowWriting in batch in text file To write in a file text, you just have to use a redirect: echo text > output_file.txt To write in an existing file: echo " Write at the end of the file ">> output_file.txt
Moving or copying a file with your right mouse button ShowMoving or copying a file with your right mouse button Command for right mouse button Create a file in the registry Set up of the file in the registry Command for right mouse button To move or copy your document and file to another...
Renaming multiple files in batch ShowRenaming multiple files in batch Native features Using a third-party program Renaming a large number of files can quickly become tedious. Fortunately, there are tools to automate this task in many cases: Native features On Windows...
Download Instant File Name Search ShowAlthough the research already exists on Windows, sometimes you need more specific tools for specific tasks. Instant File Name Search Instantly search files by name on your computer or network. Advantage It has a simple and convenient interface...
Download Locked Files Wizard (ex CopyLock) ShowA program, a folder or a fil used by a process can't be moved or erased. Locked Files Wizard (LFW) is a wizard allowing to move, delete or rename a file or a folder, even if it's used by a process. This program also allows to stop running process...
The NTFS file system ShowThe NTFS file system The NTFS file system (New Technology File System) is based on a structure called the "master file table" or MFT, which is able to hold detailed information on files. This system allows the use of long names, but, unlike the...
Operating Systems - MS-DOS - Tips ShowSetting the CD-ROM drive The CD-ROM drive is configured in the config.sys and autoexec.bat system files. The CD-ROM drive device driver must be configured in the config.sys file (even if the device is automatically detected in Windows). To do...