Final answer:
The student needs to create a hide.bat batch file to hide files using attrib command, handle multiple file names as parameters, confirm file existence, log actions, and display log content at the end of execution without deleting the logs.
Step-by-step explanation:
The student is asking how to create a batch file named hide.bat which uses the attrib command to hide files.
The batch file must accept multiple file names as parameters and hide these files, confirming their existence before proceeding.
It should also handle cases when no parameters are provided, using a loop with the SHIFT command to process the filenames.
Error and success logs need to be created for files that don't exist or are successfully hidden respectively. After files are processed, the logs should be displayed if they have content, but should not be deleted.
The batch file also needs a help command that provides information on how to use the script when /? is passed as a parameter.
Error Handling and Logging
Displaying Log Files