Question: Please answer in Java :) Write a program Backup.java that when given command line arguments that correspond to directories will go though and make a
Please answer in Java :)
Write a program Backup.java that when given command line arguments that correspond to directories will go though and make a directory called Backups under that directory (if it does not already exist). Copy all files with a .txt or .java suffix in that directory to that backup directory.
So if the given command line arguments are C:/Info and C:/Results the program will make Backup directories (called Backups) under those two directories and copy all the text and Java Files into that directory.
Note if the specified directory path does not exist, just ignore that argument and move on to the next command line argument.
Thanks in advance for any help!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
