Batch Files
.docx
keyboard_arrow_up
School
Western Nebraska Community College *
*We aren’t endorsed by this school
Course
COMPUTER F
Subject
Computer Science
Date
Apr 3, 2024
Type
docx
Pages
7
Uploaded by UltraLapwing3690
Batch Files
Time required: 30 minutes
How to Create Screenshots:
Please use the Windows Snip and Sketch Tool or the Snipping Tool. Paste a screenshot of just the program you are working on. If you are snipping a virtual machine, make sure your focus is outside the virtual machine before you snip.
1.
Press and hold down the Windows key & Shift
, then type S. This brings up the on-
screen snipping tool.
2.
Click and Drag your mouse around whatever you want to snip.
3.
Release the mouse button. This places the snip into the Windows Clipboard.
4.
Go into Word or wherever you want to paste the snip. Hold down CTRL
, then type V
to paste the snip.
Lab Description
A file with a bat or cmd extension is called a batch file. You use a batch file to automate command line commands. A batch file is sometimes called a script.
XCopy
Before you begin using Xcopy and Robocopy commands, you need to create a test directory to use when copying files. Follow these steps: 1.
Open a command prompt window and make the root of drive C: the current directory.
The quickest way to change to the root of a drive is to type C: (where T is the drive letter), and then press Enter.
2.
Use the md command to make a directory in the drive C: root called copytest. Now you can begin experimenting with the Xcopy command.
3.
Type xcopy /? and press Enter. xcopy Help information is displayed. Notice all the switches you can use to modify the xcopy command. In particular, you can use the /e
switch to instruct xcopy to copy all files and subdirectories in a directory, including any empty subdirectories, to a new location.
4.
Type xcopy “C:\program files (x86)\internet explorer” C:\copytest\ /e
and then press Enter. (You must use quotation marks in the command line to surround a path, file name, or folder name containing spaces.) You’ll see a list of files scroll by as
Use a Batch File
Page 1 of 7
they are copied from the C:\program files\internet explorer folder to the C:\copytest folder.
5.
Insert a screenshot of the copy results:
6.
When the copy operation is finished, check the copytest folder to see that the files have been copied and the subdirectories created. 7.
Enter a dir command with switches that will give you the total size of the copytest directory, including all the files in the directory and its subdirectories. What command did you use?
dir C:\copytest
8.
What is the total size of the copytest directory in bytes, including all files in
the directory and its subdirectories?
1,790,287 bytes
9.
What is the total size in MB? In GB?
1.79MB
0.00179GB
Use a Batch File
Page 2 of 7
10. Insert a USB flash drive or attach an equivalent removable device. To find the capacity of your USB flash drive, enter the command DIR E:
(You might have to substitute the drive letter assigned to your storage device for E:) Add the bytes of used space and free space to determine the capacity of the drive.
11.
What is the drive capacity of your USB flash drive in MB? In GB?
14.6GB
14600MB
12.
What is the free space on your USB flash drive? Will all the files in the C:\
copytest directory fit on your flash drive?
Yes, 9,851,473,920bytes= 9851MB=9.8GB free
13. Type MD E:\copytest
, and then press Enter.
14. This command creates a directory named copytest on the H: drive. (Remember to use the letter for the drive assigned to your media device.)
15. To copy all files in the copytest directory on the hard drive to the copytest directory on drive H:, type Xcopy C:\copytest E:\copytest
and then press Enter. The system begins copying files. If the flash drive does not have enough free space to hold the entire C:\copytest directory, the system displays a message stating that the device is
out of space and asking you to insert another device. Did you get this error message?
If so, what is the exact error message?
16.
Insert a screenshot of the xcopy process:
Use a Batch File
Page 3 of 7
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
If you are using IDLE,you may have to first "point" IDLE to the folder where you saved graphics
arrow_forward
That answer is wrong. Can you please read the instructions.
arrow_forward
6.
Quick launch icon is a part of
a.
tool bar
b.
menu bar
c.
task bar
d.
title bar
arrow_forward
Parameter error. Unsupported picture size. Pictures must be
40-2600 pixels.
arrow_forward
Q1…………… is used to move vertically or horizontally to change the position of content within the window1- Title bar2- window borders3- Slider4- Start menu
Q2 There are two types of application states that can appear on the lock screens
1- The main and secondary screen2- Quick and detailed case3- None of the above4- The opening screen and the inner screen
Q3 (show cascade windows)The windows are shown consecutivelyThis arrangement shows you several open windows superimposed on top of each othertrueError
Q4 It is an area in the upper part of any (title bar)The title bar is a window that displays the title of any application, and it also displays the title of the file opened in the window
truefalse
Q5 The outer edges of any window that define the area of ……………the window on the screen1- Title bar2- window borders3- Slider4- Start menu
The outer edges of any window that define the area of ……………the window on the screen1- Title bar2- window borders3- Slider4- Start menu
Quick status…
arrow_forward
Course Title: Mobile Application Development
Please Code in "Android Studio" and Output Screen Shot
Question :
Write a simple android application that implements four (4) VIEWs of your own choice i.e, EditText, RadioButton, Button etc. Write down the code and also display output. Take down the screenshot and paste down along with source code.
arrow_forward
aut
cad
To change the length of an object (line or arc only), the command
can be used
length
move
scale
rotate
fence
arrow_forward
Linux Build system
If I create a makefile target like this, list the targets that will be built in the order that they will be built:pictureLibrary: movieLibrary
arrow_forward
File extensions are crucial, therefore explain why you believe so. In a random folder on your computer, you may name three file extensions. It's also possible to identify the software packages used to create them. When you right-click on a file and choose properties from the pop-up menu, you should be able to see most of the file extensions (Microsoft Windows environment).
arrow_forward
A tool that displays all of the data in the Results window is
a. Configuration
b. Tool
c. Browse Tool
d. Parse Tool
arrow_forward
2- if y=sin(t), where (-4≤t≤4) could you plot (t,y) as shown below:
Figure 1
File Edit View Insert Iools Desktop Window Help
4.0
Graph of the sine function
1
0.8
0.6
0.4
0.2
0
-0.2
-0.4
0.6
-0.8
-1
Y axis
4
3
2
-1
0
X axis
Sine function
1
2
arrow_forward
2. Image ViewerWrite an application that allows the user to view image files. The application should useeither a button or a menu item that displays a file chooser. When the user selects an imagefile, it should be loaded and displayed.
arrow_forward
Create Windows Form Application.
Instructions are below in Image
arrow_forward
Project Description: The goal of this project is to write a program that can read data from any publicly available IoT source device and display it clearly to the user. The program will need to be written in Python (or any other programming language of your choice) and will need to include the following features:
1. Data Reading: The program should be able to read data from any publicly available IoT source device, such as a camera or any other sensor. The type of device is up to you, but they should be able to provide a valid URL for the device. The program should read the data from the device at regular intervals and store it in a data structure.
2. Data Display: The program should display the data that it reads from the IoT source device in a clear and easy-to-read format. The display could be in the form of a text-based output or a graphical interface, depending on your preference. The display should include information about the source sensor, as well as the data that was read…
arrow_forward
Your team is developing an application. You have responsibility for "styling the layout." What files are you likely to update?
arrow_forward
To indicate the current text input location on a computer screen, a "cursor" is used. The cursor is a visible and movable pointer that the user directs using an input device such a mouse, touch pad, or keyboard in any GUI-based operating system.
arrow_forward
Clipping and the Clip window must be defined.
arrow_forward
6. Please use the "shared folder" option within VirtualBox and successfully transfer a file.
Please include images from the host machine and your target machine.
arrow_forward
Explain in detail what you feel a file extension is and what purpose you believe it serves. Take the time to go to a random folder on your computer and identify three file extensions you see there, along with any software packages that may have created them. By simply right-clicking on a selected file and selecting properties from the pop-up menu, most file extensions should be shown (Microsoft Windows environment).
arrow_forward
Your application will demonstrate the use of both counter-controlled loops and condition-based loops. Incorporate the following requirements into your application:
The program will consist of one file - the main application class
Name the class appropriately and name the file Program.cs (the default when you create the application)
Include documentation at the top of the file that includes
Your name
Date of development
Assignment (e.g., CIS214 Performance Assessment - Loops & Calculations)
Description of the class
The main application class must meet the following requirements
Print a line that states "Your Name - Week 2 PA Loops & Calculations"
Demonstrate a counter-controlled loop
Calculate the sum of the integers from 1 to 10
Print the running total
Print the final total
Demonstrate a condition-based loop
Ask the user to enter an integer value (-1 to quit)
Keep a running sum of the values
Keep a count of how many values the user has entered
Print the running…
arrow_forward
What is the purpose of the Code Editor window?
arrow_forward
java Jframe can viewe image from the pc that user choose
2. Image ViewerWrite an application that allows the user to view image files. The application should useeither a button or a menu item that displays a file chooser. When the user selects an imagefile, it should be loaded and displayed.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Related Questions
- Parameter error. Unsupported picture size. Pictures must be 40-2600 pixels.arrow_forwardQ1…………… is used to move vertically or horizontally to change the position of content within the window1- Title bar2- window borders3- Slider4- Start menu Q2 There are two types of application states that can appear on the lock screens 1- The main and secondary screen2- Quick and detailed case3- None of the above4- The opening screen and the inner screen Q3 (show cascade windows)The windows are shown consecutivelyThis arrangement shows you several open windows superimposed on top of each othertrueError Q4 It is an area in the upper part of any (title bar)The title bar is a window that displays the title of any application, and it also displays the title of the file opened in the window truefalse Q5 The outer edges of any window that define the area of ……………the window on the screen1- Title bar2- window borders3- Slider4- Start menu The outer edges of any window that define the area of ……………the window on the screen1- Title bar2- window borders3- Slider4- Start menu Quick status…arrow_forwardCourse Title: Mobile Application Development Please Code in "Android Studio" and Output Screen Shot Question : Write a simple android application that implements four (4) VIEWs of your own choice i.e, EditText, RadioButton, Button etc. Write down the code and also display output. Take down the screenshot and paste down along with source code.arrow_forward
- aut cad To change the length of an object (line or arc only), the command can be used length move scale rotate fencearrow_forwardLinux Build system If I create a makefile target like this, list the targets that will be built in the order that they will be built:pictureLibrary: movieLibraryarrow_forwardFile extensions are crucial, therefore explain why you believe so. In a random folder on your computer, you may name three file extensions. It's also possible to identify the software packages used to create them. When you right-click on a file and choose properties from the pop-up menu, you should be able to see most of the file extensions (Microsoft Windows environment).arrow_forward
- A tool that displays all of the data in the Results window is a. Configuration b. Tool c. Browse Tool d. Parse Toolarrow_forward2- if y=sin(t), where (-4≤t≤4) could you plot (t,y) as shown below: Figure 1 File Edit View Insert Iools Desktop Window Help 4.0 Graph of the sine function 1 0.8 0.6 0.4 0.2 0 -0.2 -0.4 0.6 -0.8 -1 Y axis 4 3 2 -1 0 X axis Sine function 1 2arrow_forward2. Image ViewerWrite an application that allows the user to view image files. The application should useeither a button or a menu item that displays a file chooser. When the user selects an imagefile, it should be loaded and displayed.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L