Note: A file name with a .bat file extension is called a batch file. You can use a batch file to execute a group of commands, sometimes called a script, from a command prompt. Do the following in order to learn to use a batch file: 1) Using a command prompt window, copy a file in your My Document folder to a folder named \Save on a USB flash drive. Do not include subfolders in the copy. 2) Using Notepad, create a batch file named MyBatch.bat on the USB flash drive that contains the commands to do the following: Create the C:\Data folder and subfolder named C:\Data\Documents. Copy all the files in your \Save folder to the C:\Data\Documents folder. List the contents of the C:\Data\Documents folder. 3) Using a command prompt window, execute the MyBatch.bat file and fix any problems you see. What happens when you execute the batch file and the C:\Data\Documents folder already exists?

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter14: Files And Streams
Section: Chapter Questions
Problem 2E: Create a program named FileComparison that compares two files. First, use a text editor such as...
icon
Related questions
Question

Note: A file name with a .bat file extension is called a batch file. You can use a batch file to execute a group of commands, sometimes called a script, from a command prompt. Do the following in order to learn to use a batch file:

1) Using a command prompt window, copy a file in your My Document folder to a folder named \Save on a USB flash drive. Do not include subfolders in the copy.

2) Using Notepad, create a batch file named MyBatch.bat on the USB flash drive that contains the commands to do the following:

  • Create the C:\Data folder and subfolder named C:\Data\Documents.
  • Copy all the files in your \Save folder to the C:\Data\Documents folder.
  • List the contents of the C:\Data\Documents folder.

3) Using a command prompt window, execute the MyBatch.bat file and fix any problems you see. What happens when you execute the batch file and the C:\Data\Documents folder already exists?

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L