Question

I am taking an INTRODUCTORY Windows OS scripting course and could use your help in completing...

I am taking an INTRODUCTORY Windows OS scripting course and could use your help in completing this homework assignment:

I need to make sure that my batchfile directory is automatically included in the search path every time I open a command prompt window.

My answer must be a step-by-step explanation (bulleted or numbered list) of the EXACT approach I took to complete this task.

I must also provide an explanation of EXACTLY how I tested this to make sure it worked.

If I create a batch file to complete this problem I must, in addition to setting the search path within the batch file, clear the screen and I must include the content of the batch file as part of my answer.

If I change system properties to complete this problem I must provide screenshots to confirm my settings.

In either case, I am to assume that someone that doesn't know how to do this will follow my instructions to complete the steps.

Thanks for your help!

0 0
Add a comment Improve this question Transcribed image text
Answer #1
  • I am using batch file to complete this problem.

Steps:

  1. First create a directory "BatchFileDirectory" where batch files will be stored and create  a batchfile.bat file in it as an example to test.
  2. Now to set search path for this directory create a batch file to set the path, when it runs.
  3. content of setpath.bat file

setx /M PATH "%PATH%C:\BatchFileDirectory"

4. Run the setpath.bat file as administrator.

Test:

  1. To test this approach, I created a batchfile.bat in the batchfiles directory.
  2. content of batchfile.bat

echo "this is my batch file"

3. now open cmd and type batchfile.bat to run the batch file.

4. we can see the output of the batch file execution as "this is my batch file".

5. we can also test by checking the system environment variables path in system properties.

Add a comment
Know the answer?
Add Answer to:
I am taking an INTRODUCTORY Windows OS scripting course and could use your help in completing...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I am a college student taking an INTRODUCTORY Windows 10 Operating System SCRIPTING course and need...

    I am a college student taking an INTRODUCTORY Windows 10 Operating System SCRIPTING course and need some help with the batch file I am creating for a homework assisgnment.   I created the menu below and need some help with option A Please choose a task from the list below A) Add a new user account I need to use SET /P to prompt for a login name and if the user already exists display a message and return to the...

  • I am a college student taking an INTRODUCTORY Windows 10 operating system SCRIPTING course and need...

    I am a college student taking an INTRODUCTORY Windows 10 operating system SCRIPTING course and need some help with creating this batch script.   I need to create the below menu: Please choose a task from the list below A) Add a new user account I need to use the SET /P command to add a new user and prompt for a login name. Check if the user already exists and if so display an appropriate message and return to the...

  • I am a college student and need some help with this homework problem. I am taking...

    I am a college student and need some help with this homework problem. I am taking an introductory Operating Scripting course (windows 10) I need to create a batch file named UserInfolog.bat.   Instead of displaying the output to the screen, redirect all output to a file named computername.log and it must be created each time the batch file is executed.   After redirecting the output to the log file, the batch file must display that file's contents in the command prompt...

  • Completion is a screenshot of the batch file showing all of the steps to create the file system s...

    Completion is a screenshot of the batch file showing all of the steps to create the file system shown below. Instructions Create a batch file clifilesystem.cmd using Notepad which performs the following steps to create the file system shown below. Also use a proper comment for each step before the command. Proof your work. Finally submit the clifilesystem.cmd file in Blackboard Figure 1. The clijfilesystem.cmd file system Work from Desktop unless using an absolute path Desktop NOS110 OS Labs Homework...

  • i need help with this scripting assignment in power shell thanks Lab 7: PowerShell Search and...

    i need help with this scripting assignment in power shell thanks Lab 7: PowerShell Search and Report Search Report host path date Execution time nnn Directories n, nnn, nnn Files nnnnnnn Sym links nnnnnnn Old files nnnnnnn Large files nnnn, nnn Graphics files nnnnnnn Executable files nnnnnnn Temporary files n, nnn, nnn TotalFileSize nnnn, nnn Introduction Lab 7 is nearly identical to Lab 2, except it is written in PowerShell, uses no UNIX/Linux tools to do its work, creates no...

  • Python Help Please! This is a problem that I have been stuck on.I am only suppose...

    Python Help Please! This is a problem that I have been stuck on.I am only suppose to use the basic python coding principles, including for loops, if statements, elif statements, lists, counters, functions, nested statements, .read, .write, while, local variables or global variables, etc. Thank you! I am using python 3.4.1. ***( The bottom photo is a continuation of the first one)**** Problem statement For this program, you are to design and implement text search engine, similar to the one...

  • I am a beginner in shell. Please help me with this question. question: In this assignment,...

    I am a beginner in shell. Please help me with this question. question: In this assignment, you will research into a few standard Unix utilities and leverage them in a shell script to perform a simple but useful task that's right up the alley of Unix shell scripting. As usual, you should aim for reasonably efficient algorithms and reasonably organized, comprehensible code. Consolidating log files My Internet chat software recording my conversations into daily log files, each named by date,...

  • I need help in Python. This is a two step problem So I have the code...

    I need help in Python. This is a two step problem So I have the code down, but I am missing some requirements that I am stuck on. Also, I need help verifying the problem is correct.:) 7. Random Number File Writer Write a program that writes a series of random numbers to a file. Each random number should be in the range of 1 through 500. The application should let the user specify how many random numbers the file...

  • hi I need help with my homework please help me with this topic I have I...

    hi I need help with my homework please help me with this topic I have I provide you with the information please help   PLEASE BE CLAER MAKE SURE NO PLAGIARISM I NEED 350 WORDS and also if you can it Must be third person Topic - Drug abuse information: (pertaining to your topic), outline one thing that would be a step in the right direction to address this, and address potential barriers to implementation. Research comparable nations’ strategies to address...

  • I need help with my homework I need a 350-word paragraph I need your help I provide you with all the instructions and...

    I need help with my homework I need a 350-word paragraph I need your help I provide you with all the instructions and please make sure no plagiarism this is very important no plagiarism, please choose- either illicit methamphetamines use or prescription amphetamines use. Considering the increasing use of amphetamines in the U.S., outline one thing that would be a step in the right direction to address this, and address potential barriers to implementation. Research comparable nations’ strategies to address...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT