Hi Guys,
I am new on here. Just started to work with batch files.
I need to create a folder withing this path C:\mybackup The folder must have todays today and name of folder should be test.
Within this path C:\mybackup consists of file 1 ,2 ,3 ,4.
My aim is to create this folder called test with date and copy file 1,2,3,4 to the test folder.
Once the batch file is run I would like to have a folder created with todays date and folder called test and file 1,2,3,4 within the test folder.
Can anyone help me with this ?
Thanks
Mark
Batch Files
Moderator: DosItHelp
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: Batch Files
Your title should be more descriptive.
What format should the date be in?
(BTW, the first option is the only correct one.)
You say that the folder should have the date, but then you say that the name of the folder should be "test." Which is it? Should the folder be named "2016-10-27 test" or should the folder called "test" be inside of the folder called "2016-10-27"?
Is there one file called "1,2,3,4" or is there a file called "1", a file called "2", a file called "3", and a file called "4"? Are these files current in C:\mybackup and you're trying to move them to C:\mybackup\2016-10-27_test, or is the directory structure different?
What format should the date be in?
Code: Select all
2016-10-27
10-27-2016
27-10-2016
27-Oct-2016
20161027
October 27, 2016
(BTW, the first option is the only correct one.)
You say that the folder should have the date, but then you say that the name of the folder should be "test." Which is it? Should the folder be named "2016-10-27 test" or should the folder called "test" be inside of the folder called "2016-10-27"?
Is there one file called "1,2,3,4" or is there a file called "1", a file called "2", a file called "3", and a file called "4"? Are these files current in C:\mybackup and you're trying to move them to C:\mybackup\2016-10-27_test, or is the directory structure different?