I have tested some examples on the Internet, but I cannot get my (first) batch file to work. I would like to automatically copy a file from a folder to another, but nothing happens.
@echo off xcopy "C:\source\" "C:\target\" /c /d /i /y exit
Could you see something wrong?
Thanks!!
Update: I executed the Bali C command, but it still does not work. See Snapshot
xcopy C:\folder1 C:\folder2\folder1 /t /e /i /y xcopy C:\folder1 C:\folder2\ /t /e /i /y
Picture:

I need to stop it with CTRL + C.
PS: I'm on Win 7
Update (solution): It works! The problem was the name xcopy, bat on my desktop, and I was executing the command from there, so it was executing the xcopy.bat file on my desktop, not Windows. I had to rename the file using "myxcopy". bat ":
@echo off xcopy "C:\source" "C:\target" /c /d /i /y exit
source share