Skip to content

These scripts are for removing an existing folder and then copying a folder with up-to-date files. Works best if automating the scripts by using Task Scheduler in Windows.

License

Notifications You must be signed in to change notification settings

josh-wong/remove-copy-folder-scripts

Repository files navigation

remove-folder and copy-folder scripts🤖

By using the remove-folder and copy-folder scripts and configuring each script as a task in Task Scheduler in Windows, you can automate the process of copying files from one folder into another folder on Windows.

  • remove-folder script: Deletes the existing folder specified in the script. The folder name you want to delete should match the name of the folder you want to copy in the copy-folder script.
  • copy-folder script: Copies the folder specified in the script to the location specified in the script.

These scripts can be particularly helpful for when you want to automatically back up folders at a specific time.

Warning

These scripts only run properly if the destination (dest) path doesn't already exist. If the folder with the same name exists, this script will not run properly.

About

These scripts are for removing an existing folder and then copying a folder with up-to-date files. Works best if automating the scripts by using Task Scheduler in Windows.

Topics

Resources

License

Stars

Watchers

Forks

Languages