Batch script "ABC script.bat"
- or -
Post a project like this1146
$12
- Posted:
- Proposals: 2
- Remote
- #3174327
- Awarded
Description
Experience Level: Entry
Estimated project duration: less than 1 week
Hello,
3 parameters must be adapted to the context
- XXXXXXXXXX is the full path where there is the batch script "ABC script.bat"
- YYYY-MM-DD is the system date
- HH:MM:SS is the system hour
Here is what the script must do :
If the file does not exist
- create the file XXXXXXXXXX\Log file.txt
- add 1 line (of information) to the file XXXXXXXXXX\Log file.txt : YYYY-MM-DD;HH:MM:SS;Information;XYZ program.bat full path : XXXXXXXXXX
- pause for 10 seconds
If the folder does not exist
- create the folder XXXXXXXXXX\Collection folder
- add 1 line (of information) to the file XXXXXXXXXX\Log file.txt : YYYY-MM-DD;HH:MM:SS;Information;Collection folder created
If the file XXXXXXXXXX\Test sub-folder\Test file.txt exist
- copy and rename this file into XXXXXXXXXX\Collection folder\Copy of Test file.txt
- add 1 line (of information) to the file XXXXXXXXXX\Log file.txt : YYYY-MM-DD;HH:MM:SS;Information;Test file.txt copied
else
- add 1 line (of warning) to the file XXXXXXXXXX\Log file.txt : YYYY-MM-DD;HH:MM:SS;Warning;Test file.txt not found
I am at your disposal for any further information
3 parameters must be adapted to the context
- XXXXXXXXXX is the full path where there is the batch script "ABC script.bat"
- YYYY-MM-DD is the system date
- HH:MM:SS is the system hour
Here is what the script must do :
If the file does not exist
- create the file XXXXXXXXXX\Log file.txt
- add 1 line (of information) to the file XXXXXXXXXX\Log file.txt : YYYY-MM-DD;HH:MM:SS;Information;XYZ program.bat full path : XXXXXXXXXX
- pause for 10 seconds
If the folder does not exist
- create the folder XXXXXXXXXX\Collection folder
- add 1 line (of information) to the file XXXXXXXXXX\Log file.txt : YYYY-MM-DD;HH:MM:SS;Information;Collection folder created
If the file XXXXXXXXXX\Test sub-folder\Test file.txt exist
- copy and rename this file into XXXXXXXXXX\Collection folder\Copy of Test file.txt
- add 1 line (of information) to the file XXXXXXXXXX\Log file.txt : YYYY-MM-DD;HH:MM:SS;Information;Test file.txt copied
else
- add 1 line (of warning) to the file XXXXXXXXXX\Log file.txt : YYYY-MM-DD;HH:MM:SS;Warning;Test file.txt not found
I am at your disposal for any further information
David B.
100% (5)Projects Completed
5
Freelancers worked with
5
Projects awarded
36%
Last project
25 Feb 2021
France
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies