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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!