I have a batch file that will search and delete the files that I want. The code is this:
@echo off
del "%userprofile%\desktop\*hs_err_*.log"
So with that being said, how do I copy a file from a folder to the desktop using a batch file?
Batch file to copy a file to desktop
Moderator: DosItHelp
Re: Batch file to copy a file to desktop
The command for copying a file is COPY.
... where source and destination have to be customized.
Steffen
Code: Select all
copy "source" "destination"
Steffen
Re: Batch file to copy a file to desktop
Worked like a charm. Thank you very much!!