简体   繁体   中英

Batch file to move file(s) to new location

just need a simple batch file to move different files to a new location. Want it to do a cut and paste job. Don't want to have to specify a particular source file or location, just want to drop the file on the .bat and have it moved to the new location.

Thanks!

To move a file in batch call this command:

move "old_path" "new_path"

To overwrite files at the new path call move with a /Y switch:

move "old_path" "new_path" /Y

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM