SlideShare a Scribd company logo
5) Create a batch file named hide.bat. The batch file must use the attrib command to hide files.
The file name(s) of the file(s) to be hidden must be passed to the batch file by the user at the time
the batch file is executed (parameters)
The batch file must be able to handle multiple parameters entered by the user. In other words, it
should allow the user to enter more than one file name. (i.e, Hide File1.txt file2.txt file3.txt)
You must use the SHIFT command and looping
You must include the logic that will allow the loop to end on its own when there are no parameters
left to process
You must include the logic that will display an error message if the user attempts to run the batch
file without entering a parameter
Messages must be appropriately formatted.
Before hiding the file the batch file should confirm that it exists. If the file doesnt exist, the attrib
command shouldnt be executed.
Two logs should be kept a hidden.log file and an error.log file. Each time a file is successfully
hidden, a message should be stored in the hidden.log file. The message must identify the file
name (including its absolute path) of the file that was successfully hidden. Each time a file is not
successfully hidden (because it didnt exist), a message should be stored in the error.log file. The
message must identify the file name of the file that didnt exist.
If either of the log files exist from a previous execution, they should be deleted before processing
the parameters. No messages should be displayed in regards to the deletion.
At the completion of the batch file, the content of each log file must be displayed on the screen
with an appropriate heading; i.e., The following files were hidden; The following files were not
hidden because they didnt exist. NO output should be displayed on the screen while the batch file
is running all output should be sent to the log files and each log files contents must be displayed
when the batch file ends. The log files should only be displayed if they exist.
After displaying the log files, they should NOT be deleted.
Before displaying each of the log files, make sure it exists; if it doesnt exist, dont display it.
If the user enters /? As a parameter, information help for the command should be presented. An
explanation of the purpose of the batch file as well as the commands syntax must be included in
the output. The message must look professional.
Sample Executions: Just as a heads up, when I test this batch file I first test it with all files that do
exist, then with all files that don't exist and then with a combination of both. This sample execution
includes a mix of files that exist and files that do not exist. I: >HIDE FILE1.TXT C: TEST.TXT
FILE3.TXT SAMPLE.TXT The fo1lowing files were hidden: I: Ifile1.txt I: Jile3.txt The fo1lowing files
were not hidden because they didn't exist: C: JTEST.TXT SAMPLE.TXT This sample execution
includes only files that exist. Note that it includes only that information. There is no 'heading'
regarding files that weren't found. Lastly, a sample execution including only files that do not exist.
Note that it includes only that information. There's no 'heading' regarding files that were hidden. I:
PHIDE FILE8.txt file9.txt c:file2. txt The following files were not hidden because they didn't exist:
FILE8,txt file9,txt c: file2.txt

More Related Content

Similar to 5 Create a batch file named hidebat The batch file must u.pdf

File Handling in C
File Handling in CFile Handling in C
File Handling in C
VrushaliSolanke
 
File handling in Python
File handling in PythonFile handling in Python
Python-FileHandling.pptx
Python-FileHandling.pptxPython-FileHandling.pptx
Python-FileHandling.pptx
Karudaiyar Ganapathy
 
File handling C program
File handling C programFile handling C program
File handling C program
Thesis Scientist Private Limited
 
Filesin c++
Filesin c++Filesin c++
Filesin c++
HalaiHansaika
 
data file handling
data file handlingdata file handling
data file handling
krishna partiwala
 
VIT351 Software Development VI Unit5
VIT351 Software Development VI Unit5VIT351 Software Development VI Unit5
VIT351 Software Development VI Unit5
YOGESH SINGH
 
Chapter - 5.pptx
Chapter - 5.pptxChapter - 5.pptx
Chapter - 5.pptx
MikialeTesfamariam
 
File Management and manipulation in C++ Programming
File Management and manipulation in C++ ProgrammingFile Management and manipulation in C++ Programming
File Management and manipulation in C++ Programming
ChereLemma2
 
Java Code Only- Thanks 1- java program using boolean operator or if el.pdf
Java Code Only- Thanks 1- java program using boolean operator or if el.pdfJava Code Only- Thanks 1- java program using boolean operator or if el.pdf
Java Code Only- Thanks 1- java program using boolean operator or if el.pdf
aanyajoshi90
 
EASY UNDERSTANDING OF FILES IN C LANGUAGE.pdf
EASY UNDERSTANDING OF FILES IN C LANGUAGE.pdfEASY UNDERSTANDING OF FILES IN C LANGUAGE.pdf
EASY UNDERSTANDING OF FILES IN C LANGUAGE.pdf
sudhakargeruganti
 
File Handling
File HandlingFile Handling
File Handling
AlgeronTongdoTopi
 
File Handling
File HandlingFile Handling
File Handling
AlgeronTongdoTopi
 
INput output stream in ccP Full Detail.pptx
INput output stream in ccP Full Detail.pptxINput output stream in ccP Full Detail.pptx
INput output stream in ccP Full Detail.pptx
AssadLeo1
 
Chapter 08 data file handling
Chapter 08 data file handlingChapter 08 data file handling
Chapter 08 data file handling
Praveen M Jigajinni
 
CHAPTER 2 - FILE HANDLING-txtfile.pdf is here
CHAPTER 2 - FILE HANDLING-txtfile.pdf is hereCHAPTER 2 - FILE HANDLING-txtfile.pdf is here
CHAPTER 2 - FILE HANDLING-txtfile.pdf is here
sidbhat290907
 
Learn about the File Concept in operating systems ppt
Learn about the File Concept in operating systems pptLearn about the File Concept in operating systems ppt
Learn about the File Concept in operating systems ppt
geethasenthil2706
 
csc1201_lecture13.ppt
csc1201_lecture13.pptcsc1201_lecture13.ppt
csc1201_lecture13.ppt
HEMAHEMS5
 

Similar to 5 Create a batch file named hidebat The batch file must u.pdf (20)

File Handling in C
File Handling in CFile Handling in C
File Handling in C
 
File handling in Python
File handling in PythonFile handling in Python
File handling in Python
 
Python-FileHandling.pptx
Python-FileHandling.pptxPython-FileHandling.pptx
Python-FileHandling.pptx
 
File handling C program
File handling C programFile handling C program
File handling C program
 
Filesin c++
Filesin c++Filesin c++
Filesin c++
 
data file handling
data file handlingdata file handling
data file handling
 
VIT351 Software Development VI Unit5
VIT351 Software Development VI Unit5VIT351 Software Development VI Unit5
VIT351 Software Development VI Unit5
 
File Handling In C++
File Handling In C++File Handling In C++
File Handling In C++
 
Chapter - 5.pptx
Chapter - 5.pptxChapter - 5.pptx
Chapter - 5.pptx
 
File Management and manipulation in C++ Programming
File Management and manipulation in C++ ProgrammingFile Management and manipulation in C++ Programming
File Management and manipulation in C++ Programming
 
Java Code Only- Thanks 1- java program using boolean operator or if el.pdf
Java Code Only- Thanks 1- java program using boolean operator or if el.pdfJava Code Only- Thanks 1- java program using boolean operator or if el.pdf
Java Code Only- Thanks 1- java program using boolean operator or if el.pdf
 
EASY UNDERSTANDING OF FILES IN C LANGUAGE.pdf
EASY UNDERSTANDING OF FILES IN C LANGUAGE.pdfEASY UNDERSTANDING OF FILES IN C LANGUAGE.pdf
EASY UNDERSTANDING OF FILES IN C LANGUAGE.pdf
 
File Handling
File HandlingFile Handling
File Handling
 
File Handling
File HandlingFile Handling
File Handling
 
INput output stream in ccP Full Detail.pptx
INput output stream in ccP Full Detail.pptxINput output stream in ccP Full Detail.pptx
INput output stream in ccP Full Detail.pptx
 
Chapter 08 data file handling
Chapter 08 data file handlingChapter 08 data file handling
Chapter 08 data file handling
 
CHAPTER 2 - FILE HANDLING-txtfile.pdf is here
CHAPTER 2 - FILE HANDLING-txtfile.pdf is hereCHAPTER 2 - FILE HANDLING-txtfile.pdf is here
CHAPTER 2 - FILE HANDLING-txtfile.pdf is here
 
Learn about the File Concept in operating systems ppt
Learn about the File Concept in operating systems pptLearn about the File Concept in operating systems ppt
Learn about the File Concept in operating systems ppt
 
csc1201_lecture13.ppt
csc1201_lecture13.pptcsc1201_lecture13.ppt
csc1201_lecture13.ppt
 
File handling
File handlingFile handling
File handling
 

More from kiraan007

retim ve Maliyet 2020 lkbaharnda COVID19 salgn ekonomi g.pdf
retim ve Maliyet 2020 lkbaharnda COVID19 salgn ekonomi g.pdfretim ve Maliyet 2020 lkbaharnda COVID19 salgn ekonomi g.pdf
retim ve Maliyet 2020 lkbaharnda COVID19 salgn ekonomi g.pdf
kiraan007
 
True FalseExercise can always counter the ill effects of .pdf
True FalseExercise can always counter the ill effects of .pdfTrue FalseExercise can always counter the ill effects of .pdf
True FalseExercise can always counter the ill effects of .pdf
kiraan007
 
which of the following microorganism would have a nucleus h.pdf
which of the following microorganism would have a nucleus h.pdfwhich of the following microorganism would have a nucleus h.pdf
which of the following microorganism would have a nucleus h.pdf
kiraan007
 
Use unfoldr to implement the following Racket functions with.pdf
Use unfoldr to implement the following Racket functions with.pdfUse unfoldr to implement the following Racket functions with.pdf
Use unfoldr to implement the following Racket functions with.pdf
kiraan007
 
Un protista es cualquier organismo que no es una planta un .pdf
Un protista es cualquier organismo que no es una planta un .pdfUn protista es cualquier organismo que no es una planta un .pdf
Un protista es cualquier organismo que no es una planta un .pdf
kiraan007
 
What is tRNA charging Explain the process with figures Wha.pdf
What is tRNA charging Explain the process with figures Wha.pdfWhat is tRNA charging Explain the process with figures Wha.pdf
What is tRNA charging Explain the process with figures Wha.pdf
kiraan007
 
The tree below shows the relationship between 4 species The.pdf
The tree below shows the relationship between 4 species The.pdfThe tree below shows the relationship between 4 species The.pdf
The tree below shows the relationship between 4 species The.pdf
kiraan007
 
7 Discuss the reasons behind the export pessimism of the .pdf
7 Discuss the reasons behind the export pessimism of the .pdf7 Discuss the reasons behind the export pessimism of the .pdf
7 Discuss the reasons behind the export pessimism of the .pdf
kiraan007
 
Draiman Corporation has bonds on the market with 145 years .pdf
Draiman Corporation has bonds on the market with 145 years .pdfDraiman Corporation has bonds on the market with 145 years .pdf
Draiman Corporation has bonds on the market with 145 years .pdf
kiraan007
 
FucueE 1013 Pattern of tcour and deposition within canyons .pdf
FucueE 1013 Pattern of tcour and deposition within canyons .pdfFucueE 1013 Pattern of tcour and deposition within canyons .pdf
FucueE 1013 Pattern of tcour and deposition within canyons .pdf
kiraan007
 
struct Movie stdstring title Movie.pdf
struct Movie      stdstring title               Movie.pdfstruct Movie      stdstring title               Movie.pdf
struct Movie stdstring title Movie.pdf
kiraan007
 
Snflandrlm bir bilano a Kr ve temettlerin datlmam krl.pdf
Snflandrlm bir bilano   a Kr ve temettlerin datlmam krl.pdfSnflandrlm bir bilano   a Kr ve temettlerin datlmam krl.pdf
Snflandrlm bir bilano a Kr ve temettlerin datlmam krl.pdf
kiraan007
 
Son zamanlarda pek ok kii devletin byk blmn zellet.pdf
Son zamanlarda pek ok kii devletin byk blmn zellet.pdfSon zamanlarda pek ok kii devletin byk blmn zellet.pdf
Son zamanlarda pek ok kii devletin byk blmn zellet.pdf
kiraan007
 
4 Si una empresa no ha tenido un cambio significativo en su.pdf
4 Si una empresa no ha tenido un cambio significativo en su.pdf4 Si una empresa no ha tenido un cambio significativo en su.pdf
4 Si una empresa no ha tenido un cambio significativo en su.pdf
kiraan007
 
Problem 1 Obtain and plot the Fourier transforms of the fol.pdf
Problem 1 Obtain and plot the Fourier transforms of the fol.pdfProblem 1 Obtain and plot the Fourier transforms of the fol.pdf
Problem 1 Obtain and plot the Fourier transforms of the fol.pdf
kiraan007
 
Qu le dice el sistema de cuestionarios para clientes propu.pdf
Qu le dice el sistema de cuestionarios para clientes propu.pdfQu le dice el sistema de cuestionarios para clientes propu.pdf
Qu le dice el sistema de cuestionarios para clientes propu.pdf
kiraan007
 
PZ087P146Z11PZ06PZ26.pdf
PZ087P146Z11PZ06PZ26.pdfPZ087P146Z11PZ06PZ26.pdf
PZ087P146Z11PZ06PZ26.pdf
kiraan007
 
Pregunta 1 An no respondido Marcado de 100 Marcar pregu.pdf
Pregunta 1  An no respondido  Marcado de 100  Marcar pregu.pdfPregunta 1  An no respondido  Marcado de 100  Marcar pregu.pdf
Pregunta 1 An no respondido Marcado de 100 Marcar pregu.pdf
kiraan007
 
1 Describe each of the following and particularly note the .pdf
1 Describe each of the following and particularly note the .pdf1 Describe each of the following and particularly note the .pdf
1 Describe each of the following and particularly note the .pdf
kiraan007
 
Please use excel and show formulas xPXx1.pdf
Please use excel and show formulas xPXx1.pdfPlease use excel and show formulas xPXx1.pdf
Please use excel and show formulas xPXx1.pdf
kiraan007
 

More from kiraan007 (20)

retim ve Maliyet 2020 lkbaharnda COVID19 salgn ekonomi g.pdf
retim ve Maliyet 2020 lkbaharnda COVID19 salgn ekonomi g.pdfretim ve Maliyet 2020 lkbaharnda COVID19 salgn ekonomi g.pdf
retim ve Maliyet 2020 lkbaharnda COVID19 salgn ekonomi g.pdf
 
True FalseExercise can always counter the ill effects of .pdf
True FalseExercise can always counter the ill effects of .pdfTrue FalseExercise can always counter the ill effects of .pdf
True FalseExercise can always counter the ill effects of .pdf
 
which of the following microorganism would have a nucleus h.pdf
which of the following microorganism would have a nucleus h.pdfwhich of the following microorganism would have a nucleus h.pdf
which of the following microorganism would have a nucleus h.pdf
 
Use unfoldr to implement the following Racket functions with.pdf
Use unfoldr to implement the following Racket functions with.pdfUse unfoldr to implement the following Racket functions with.pdf
Use unfoldr to implement the following Racket functions with.pdf
 
Un protista es cualquier organismo que no es una planta un .pdf
Un protista es cualquier organismo que no es una planta un .pdfUn protista es cualquier organismo que no es una planta un .pdf
Un protista es cualquier organismo que no es una planta un .pdf
 
What is tRNA charging Explain the process with figures Wha.pdf
What is tRNA charging Explain the process with figures Wha.pdfWhat is tRNA charging Explain the process with figures Wha.pdf
What is tRNA charging Explain the process with figures Wha.pdf
 
The tree below shows the relationship between 4 species The.pdf
The tree below shows the relationship between 4 species The.pdfThe tree below shows the relationship between 4 species The.pdf
The tree below shows the relationship between 4 species The.pdf
 
7 Discuss the reasons behind the export pessimism of the .pdf
7 Discuss the reasons behind the export pessimism of the .pdf7 Discuss the reasons behind the export pessimism of the .pdf
7 Discuss the reasons behind the export pessimism of the .pdf
 
Draiman Corporation has bonds on the market with 145 years .pdf
Draiman Corporation has bonds on the market with 145 years .pdfDraiman Corporation has bonds on the market with 145 years .pdf
Draiman Corporation has bonds on the market with 145 years .pdf
 
FucueE 1013 Pattern of tcour and deposition within canyons .pdf
FucueE 1013 Pattern of tcour and deposition within canyons .pdfFucueE 1013 Pattern of tcour and deposition within canyons .pdf
FucueE 1013 Pattern of tcour and deposition within canyons .pdf
 
struct Movie stdstring title Movie.pdf
struct Movie      stdstring title               Movie.pdfstruct Movie      stdstring title               Movie.pdf
struct Movie stdstring title Movie.pdf
 
Snflandrlm bir bilano a Kr ve temettlerin datlmam krl.pdf
Snflandrlm bir bilano   a Kr ve temettlerin datlmam krl.pdfSnflandrlm bir bilano   a Kr ve temettlerin datlmam krl.pdf
Snflandrlm bir bilano a Kr ve temettlerin datlmam krl.pdf
 
Son zamanlarda pek ok kii devletin byk blmn zellet.pdf
Son zamanlarda pek ok kii devletin byk blmn zellet.pdfSon zamanlarda pek ok kii devletin byk blmn zellet.pdf
Son zamanlarda pek ok kii devletin byk blmn zellet.pdf
 
4 Si una empresa no ha tenido un cambio significativo en su.pdf
4 Si una empresa no ha tenido un cambio significativo en su.pdf4 Si una empresa no ha tenido un cambio significativo en su.pdf
4 Si una empresa no ha tenido un cambio significativo en su.pdf
 
Problem 1 Obtain and plot the Fourier transforms of the fol.pdf
Problem 1 Obtain and plot the Fourier transforms of the fol.pdfProblem 1 Obtain and plot the Fourier transforms of the fol.pdf
Problem 1 Obtain and plot the Fourier transforms of the fol.pdf
 
Qu le dice el sistema de cuestionarios para clientes propu.pdf
Qu le dice el sistema de cuestionarios para clientes propu.pdfQu le dice el sistema de cuestionarios para clientes propu.pdf
Qu le dice el sistema de cuestionarios para clientes propu.pdf
 
PZ087P146Z11PZ06PZ26.pdf
PZ087P146Z11PZ06PZ26.pdfPZ087P146Z11PZ06PZ26.pdf
PZ087P146Z11PZ06PZ26.pdf
 
Pregunta 1 An no respondido Marcado de 100 Marcar pregu.pdf
Pregunta 1  An no respondido  Marcado de 100  Marcar pregu.pdfPregunta 1  An no respondido  Marcado de 100  Marcar pregu.pdf
Pregunta 1 An no respondido Marcado de 100 Marcar pregu.pdf
 
1 Describe each of the following and particularly note the .pdf
1 Describe each of the following and particularly note the .pdf1 Describe each of the following and particularly note the .pdf
1 Describe each of the following and particularly note the .pdf
 
Please use excel and show formulas xPXx1.pdf
Please use excel and show formulas xPXx1.pdfPlease use excel and show formulas xPXx1.pdf
Please use excel and show formulas xPXx1.pdf
 

Recently uploaded

Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 

Recently uploaded (20)

Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 

5 Create a batch file named hidebat The batch file must u.pdf

  • 1. 5) Create a batch file named hide.bat. The batch file must use the attrib command to hide files. The file name(s) of the file(s) to be hidden must be passed to the batch file by the user at the time the batch file is executed (parameters) The batch file must be able to handle multiple parameters entered by the user. In other words, it should allow the user to enter more than one file name. (i.e, Hide File1.txt file2.txt file3.txt) You must use the SHIFT command and looping You must include the logic that will allow the loop to end on its own when there are no parameters left to process You must include the logic that will display an error message if the user attempts to run the batch file without entering a parameter Messages must be appropriately formatted. Before hiding the file the batch file should confirm that it exists. If the file doesnt exist, the attrib command shouldnt be executed. Two logs should be kept a hidden.log file and an error.log file. Each time a file is successfully hidden, a message should be stored in the hidden.log file. The message must identify the file name (including its absolute path) of the file that was successfully hidden. Each time a file is not successfully hidden (because it didnt exist), a message should be stored in the error.log file. The message must identify the file name of the file that didnt exist. If either of the log files exist from a previous execution, they should be deleted before processing the parameters. No messages should be displayed in regards to the deletion. At the completion of the batch file, the content of each log file must be displayed on the screen with an appropriate heading; i.e., The following files were hidden; The following files were not hidden because they didnt exist. NO output should be displayed on the screen while the batch file is running all output should be sent to the log files and each log files contents must be displayed when the batch file ends. The log files should only be displayed if they exist. After displaying the log files, they should NOT be deleted. Before displaying each of the log files, make sure it exists; if it doesnt exist, dont display it. If the user enters /? As a parameter, information help for the command should be presented. An explanation of the purpose of the batch file as well as the commands syntax must be included in the output. The message must look professional. Sample Executions: Just as a heads up, when I test this batch file I first test it with all files that do exist, then with all files that don't exist and then with a combination of both. This sample execution includes a mix of files that exist and files that do not exist. I: >HIDE FILE1.TXT C: TEST.TXT FILE3.TXT SAMPLE.TXT The fo1lowing files were hidden: I: Ifile1.txt I: Jile3.txt The fo1lowing files were not hidden because they didn't exist: C: JTEST.TXT SAMPLE.TXT This sample execution includes only files that exist. Note that it includes only that information. There is no 'heading' regarding files that weren't found. Lastly, a sample execution including only files that do not exist. Note that it includes only that information. There's no 'heading' regarding files that were hidden. I: PHIDE FILE8.txt file9.txt c:file2. txt The following files were not hidden because they didn't exist: FILE8,txt file9,txt c: file2.txt