Preview

Operating Systems

Good Essays
Open Document
Open Document
526 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Operating Systems
Batch Files

Exercise 1 – Create your first batch file Exercise 2 – Create a directory structure Exercise 3 – Wildcards example Exercise 4 – Wildcards example Exercise 6 - Wildcards Example Exercise 7 – Copy from one drive to another Exercise 8 – Creating a Directory structure Exercise 9 – Copying and moving files Exercise 10 – Removing directories Exercise 11 – Using the ECHO COMMAND Exercise 12 – Using the call command Exercise 13 – Replaceable parameters Exercise 14 – Replaceable parameters Exercise 15 – Replaceable parameters Exercise 16 – Replaceable parameters Exercise 17 - Paths

Batch files are files that contain a list of commands. It executes the commands within the file when you execute the batch file. The commands execute one by one. A command within a batch file can be used to start/run another application, for example you could start MS Word.
Why batch files are useful?
A batch file could be used to run frequently run commands, deleting a series of files, moving files, copying files etc. A simple batch file does not require any special programming skills and can be done by users who only know DOS commands.
An example of a well known batch file is the autoexec.bat, which is a simple batch file loaded each time the computer is loaded on MS-DOS and early Windows computers. This batch file contained all the necessary commands and programs used to run MS-DOS and Windows each time the computer booted.
Use your VMware accounts to do this lab sheet because you will need to save your work.

Next page please.

Exercise 1 – Create your first batch file 1. Open the Virtual Box then click start to load Windows 7. 2. If a dialog box appears, just click OK. 3. Open an MS-DOS command window. 4. Change to the root directory of the E: drive and create a directory called BatchFiles. You can use this directory to save your batch files. 5. At the MS-DOS prompt, open the editor by keying in EDIT and pressing

You May Also Find These Documents Helpful

  • Powerful Essays

    Unit 3 network discovery

    • 1031 Words
    • 5 Pages

    Give commands for each of the following, using wildcards to express filenames with as few characters as possible.…

    • 1031 Words
    • 5 Pages
    Powerful Essays
  • Better Essays

    DSC 340 Midterm

    • 1391 Words
    • 6 Pages

    computer program or collection of programs-set of instructions that tell the hardware what to do…

    • 1391 Words
    • 6 Pages
    Better Essays
  • Satisfactory Essays

    COMP 230 WK 1 7 QUIZ

    • 2401 Words
    • 33 Pages

    (TCO 1) Which one of the following Windows NET commands will allow other computers to access the C:\Data directory under the share nameUserData?…

    • 2401 Words
    • 33 Pages
    Satisfactory Essays
  • Powerful Essays

    data and can be initiated from the DOS command prompt? What useful information does this query…

    • 924 Words
    • 4 Pages
    Powerful Essays
  • Good Essays

    A command prompt, also known as cmd.exe, is an entry point for typing computer commands in the command prompt window. Through this, we can perform tasks on our computer without using the Windows graphical interface. If this cmd.exe gets infected, then there might be appearing problem after new installation of an OS or external hard drive may show error message or after booting up the system, we may get error message from the command prompt. So, now we will see that what kind of error we may face due to problem in cmd.exe.…

    • 552 Words
    • 3 Pages
    Good Essays
  • Good Essays

    A shell is a type of command prompt, it sends commands from the user to the kernel…

    • 392 Words
    • 2 Pages
    Good Essays
  • Good Essays

    * A number or set of commands, which is saved in a macro file. This can be useful for completing tasks which require the same repetitive action with different inputs.…

    • 669 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Itq Coursework

    • 6612 Words
    • 27 Pages

    In some programmes like microsoft office you can automate frequently used tasks by creating macros. A macro is a series of commands and instructions that you group together as a single command to accomplish a task automatically. Macros are used to speed up routine editing and formatting, to combine multiple commands, to make an option in a dialog box more accessible, to automate a complex series of tasks.…

    • 6612 Words
    • 27 Pages
    Good Essays
  • Good Essays

    DOSBox: It is an emulator program the emulates an IBM PC compatible computer running a DOS operating system. It is a free software written primarily in C++ and distributed under the…

    • 797 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    This lab assumes that you have the Active Directory Domain Controller and Windows 7 Machines you created in NT1230 (Server##) stored on your hard drive. You are creating a new computer virtual appliance with Windows Server 2008 using VMware Player. Your first task is to create a new Virtual Machine and install Windows Server 2008 Standard 32bit with appropriate settings for the test lab network. This server will become a replica Domain Controller for your test network.…

    • 1693 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    When working with a shell scripting program, there are several advantages to it. One of the first advantages is its ease of use. Another advantage is its quick start and interactive debugging. The most notable and major advantage for the use of shell scripting is it’s a time-saving tool for system administrators for the automation of tasks. By using the shell script, administrators are able to compile and automate task system wide and alleviating the need to access each workstation individually. Shell scripts can execute without any additional effort on nearly any modern UNIX / Linux / BSD / Mac OS X operating system as they are written an interpreted language.…

    • 371 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Scripting

    • 1384 Words
    • 6 Pages

    6 • how to create a batch file that will run from the command prompt.…

    • 1384 Words
    • 6 Pages
    Good Essays
  • Powerful Essays

    Mainframes- Summary

    • 2412 Words
    • 11 Pages

    During batch processing, multiple types of work can be generated. Consolidated information, such as profitability of investment funds, scheduled database backups, processing of daily orders, and updating of inventories, are common examples.…

    • 2412 Words
    • 11 Pages
    Powerful Essays
  • Satisfactory Essays

    Java Native Access

    • 266 Words
    • 2 Pages

    Java Native Access import com.sun.jna. Library; import com.sun.jna. Native; import com.sun.jna. Platform; / *…

    • 266 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    MSConfig

    • 758 Words
    • 4 Pages

    Prior to Windows Vista, files that can be edited through MSConfig include AUTOEXEC.BAT, CONFIG.SYS, WIN.INI, SYSTEM.INI on Windows 9x systems, and WIN.INI, SYSTEM.INI and BOOT.INI on Windows NT systems prior to Windows Vista. The chief benefit to using MSConfig to edit these files is that it provides a simplified GUI to manipulate sections of those files and the Windows registry tree pertaining to the Windows boot sequence. Using MSConfig, Windows can also be configured to perform a diagnostic startup (load a minimum set of drivers, programs and services).…

    • 758 Words
    • 4 Pages
    Good Essays

Related Topics