I want to create reports based of the batch file that I run.
I created a batch file to run a number of programs for this PC tune up service that we do at the University I work at. This is mostly a "learn for my own benefit" project, but if it works and looks nice I would like to make it availible to my co workers.
Here is what I have so far for the batch:
@echo off
:start
echo.
echo Do you need to install
echo Microsoft Antivirus?
echo Type y / n (lowercase)
set /p antivirus=
if %antivirus%== y goto msantivirus
if %antivirus%== n goto mbam
goto start
:msantivirus
echo ProgramFiles(x86) var:
if not defined ProgramFiles(x86) (
start mseinstall32.exe
)
else (
start mseinstall64.exe
)
:mbam
echo.
echo Do you need to install
echo Malwarebytes?
echo Type y / n (lowercase)
set /p malwarebytes=
if %malwarebytes%== y start mbam-setup-2.0.2.1012.exe
if %malwarebytes%== n goto cleaner
goto mbam
:cleaner
echo.
echo Do you need to install
echo CCleaner?
echo Type y / n (lowercase)
set /p CCleaner=
if %CCleaner%== y start start ccsetup416.exe
if %CCleaner%== n goto msconfig
goto cleaner
:msconfig
echo.
echo Do you need to run
echo MSCONFIG?
echo Type y / n (lowercase)
set /p microsoftconfig=
if %microsoftconfig%== y start msconfig
if %microsoftconfig%== n goto print
goto msconfig
:print
echo.
echo Do you want to print
echo a report?
echo Type y / n (lowercase)
set /p print=
if %print%== y start (i don't know what to do here)
if %print%== n goto done
goto done
:done
echo.
echo You have finished the Zonetech scan. Press any key to exit.
pause >null
Here is what I have for the HTML (its based of another site I made so there is some leftover stuff in it):
<!DOCTYPE html><html>
<head>
<title> Zone Tech Computer Health Form </title>
<meta name= "viewport" content="width=device-width, initial-scale=1.0">
<link href= "css/bootstrap.min.css" rel= "stylesheet">
<link href= "css/styles.css" rel= "stylesheet">
</head>
<body>
<div class="navbar navbar-inverse navbar-static-top">
<div class= "container">
<a href= "#" class= "navbar-brand"> BOISE STATE UNIVERSITY ZONE TECH</a>
<button class = "navbar-toggle" data-toggle = "collapse" data-target = ".navHeaderCollapse">
<span class = "icon-bar"> </span>
<span class = "icon-bar"> </span>
<span class = "icon-bar"> </span>
<span class = "icon-bar"> </span>
<span class = "icon-bar"> </span>
</button>
<div class= "collapse navbar-collapse navHeaderCollapse">
<ul class = "nav navbar-nav navbar-right">
<li class= "active"><a href = "#">Home</a></li>
<li><a href = "#">Blog <b class= "caret"></b></a></li>
<li class = "dropdown">
<a href = "#" class = "dropdown-toggle" data-toggle = "dropdown">Social Media</a>
<ul class = "dropdown-menu">
<li> <a href = "#">Twiter</a></li>
<li> <a href = "#">Facebook</a></li>
<li> <a href = "#">Google +</a></li>
<li> <a href = "#">Instagram</a></li>
</ul>
</li>
<li><a href = "#">About</a></li>
<li><a href = "#contact" data-toggle="modal" >Contact</a></li>
</ul>
</div>
</div>
</div>
<div class = "container text-center">
<div class ="jumbotron">
<h1> Computer Health Report</h1>
<img src="img/smallerbroncologo.png" />
</div>
</div>
<div class= "container" >
<div class = "row">
<div class = "col-md-3">
<h3><a href = "#">Virus Scan </a></h3>
<p>A Virus Scan checks your computer to see if any malicious software is present.</p>
<a href = "#" class = "btn btn-default" > read moe </a>
</div>
<div class = "col-md-3">
<h3><a href = "#">Adware Scan </a></h3>
<p>We check your computer for programs that may present themselves as legitimate services to "repair" your computer for money or sites that redirect your internet browser.</p>
<a href = "#" class = "btn btn-default" > read moe </a>
</div>
<div class = "col-md-3">
<h3><a href = "#">Registry Scan </a></h3>
<p>Sometimes programs you have installed don't uninstall right or fully. Othertimes your programs may stop working because there is wrong infomration in the registry. We clean and optimize the registry to help make your computer work better</p>
<a href = "#" class = "btn btn-default" > read moe </a>
</div>
<div class = "col-md-3">
<h3><a href = "#">Start Up Scan </a></h3>
<p>If your computer is booting slowly, sometimes the cause is to many programs trying to start up when windows starts up. If to many programs try to start up at once it clogs up the computers processor and makes it run slow. We check to make sure that only the essential programs are running so your computer runs better.</p>
<a href = "#" class = "btn btn-default" > read moe </a>
</div>
</div>
</div>
<div class = "navbar navbar-inverse navbar-fixed-bottom" >
<div class = "container" >
<p class = "navbar-text pull-left"> Site by Travis </p>
</div>
</div>
<div class = "modal fade" id = "contact" role = "dialog">
<div class = class "modal-dialog">
<div class = "modal-content">
<div class = "modal-header">
<p> Contact Tech Site </p>
</div>
<div class= "modal-body" >
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from </p>
</div>
<div class = "footer">
<a class= "btn btn-default" data-dismiss = "modal" >close</a>
<a class= "btn btn-primary" data-dismiss = "modal" >close</a>
</div>
</div>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/latest/jquery.js"> </script>
<script src="js/bootstrap.js"> </script>
</body>
</html>
Here is what I want to do:
I want to make an interactive html report based on an HTML site I made. I want to take the y (meaning yes) inputs for the strings( anitivirus, malwarebytes, ccleaner, and Microsoftconfig which are from the batch) and make them indicate something has been done on the HTML that I created. Essentially, I see the yes inputs putting check marks (or something) in the sections of my HTML document that are related to the programs I ran in the batch. The sections in the HTML page are called Virus Scan, Adware Scan, Registry Scan, and Start up scan and they are paired to the variables antivirus, malwarebytes, ccleaner, and microsoftconfig.
I hope this makes sense.
Thanks for any help