Copy And Delete files with Batch Code
Copy:- xcopy /y C:\Folder1 C:\Folder2 Comment:- ::xcopy /y C:\Folder1 C:\Folder2 Delete files in Folder:- set folder="C:\Folder1" cd /d %folder% for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q) Change directory: C to D: D: cd D:\Project\myProj start/up app Ref: http://www.makeuseof.com/tag/use-windows-batch-file-commands-automate-repetitive-tasks/
Comments
Post a Comment