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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started