- Creates in the current directory (in which the bat-file is located) a directory"Screenshots_current_date" and moves there from the current directory all files with the extension specified as the first parameter passed from the command line.
- Writes the names of all moved files to the d:\screenshots.found file (appends to the end of the file or creates a new one if there was none), which is located in the same directory as a launched batch file.
- Archives a folder with the moved files and deletes its original.
- Waiting for any key to be pressed to complete.
Batch script to: create, record, archiving
Moderator: DosItHelp
Batch script to: create, record, archiving
Hello everyone! Could you, guys, help with this bath script:
Last edited by Squashman on 29 Jan 2022 12:03, edited 1 time in total.
Reason: MOD EDIT: please format your posts for readability.
Reason: MOD EDIT: please format your posts for readability.
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: Batch script to: create, record, archiving
This sounds like homework, so I'll be vague.
move /?
mkdir /?1.Creates in the current directory (in which the bat-file is located) a directory"Screenshots_current_date" and moves there from the current directory all files with the extension specified as the first parameter passed from the command line.
move /?
for /?2.Writes the names of all moved files to the d:\screenshots.found file (appends to the end of the file or creates a new one if there was none), which is located in the same directory as a launched batch file.
tar --help3.Archives a folder with the moved files and deletes its original.
pause /?4. Waiting for any key to be pressed to complete.