Batch file to copy single txt file from a collection of txt

December 19, 2012 at 03:15:36
Specs: Windows 7
Hello,,

I am not a regular programmer..

Is there a batch file to copy only one txt file to a dir (C:\test) from a collection of txt files in (C:\error_logs irrespective of their file name.. ie..(some_name.txt from *.txt)

please help..

thanx in advance


See More: Batch file to copy single txt file from a collection of txt

Report •


#1
December 19, 2012 at 03:47:20
Your request is quite unclear since to copy just one file what is needed is to issue the command

copy "C:\error_logs\some_name.txt" "C:\test"


Report •

#2
December 29, 2012 at 08:50:54
Looks like you are trying to pull the names in from an error log? Is the goal to pass the information from the error log to the batch file. for example in psudo code

sort.bat < error.log
move whatever.txt c:\fileswitherrors\whatever.txt

:: mike


Report •

Related Solutions


Ask Question