Batch file to find file, and copy paste it to another location
问题 needing help with batch file. What I need: to find exact called file (for example from C: drive) and copy paste it to another location on same disk. Example: I need to find file called "textfile.txt" from C: drive, and if it finds it, it will copy it, and paste to location C:\Program Files\Internet Explorer So any simple way to do it? 回答1: Give this a shot: for /f "delims=" %%i in ('dir /s /b /a-d c:\textfile.txt') do copy /b "%%~i" "C:\Program Files\Internet Explorer" 来源: https:/