cs 1200

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Stop the execution of a batch file

E:> exit

If you view the attributes of a file and find that it is set to RSH, this means that the file is: Ready for backup, System, Hidden Read only, System, Harmed Ready for backup, Safe, Hidden Read only, System, Hidden

If you view the attributes of a file and find that it is set to RSH, this means that the file has the following attributes: R: Read-only S: System H: Hidden Therefore, the correct answer is d) Read only, System, Hidden.

If you want to set a file's attributes so that it will not be backed up during the next tape operation, use the _________ parameter. -R -B -S -A

If you want to set a file's attributes so that it will not be backed up during the next tape operation, use the "-A" (Archive) parameter with the ATTRIB command in Windows. When the Archive attribute is set for a file, it means that the file has been modified since the last backup. Therefore, to prevent a file from being backed up during the next tape operation, you can clear the Archive attribute using the command: ATTRIB -A filename This will remove the Archive attribute from the specified file. Therefore, the correct answer is d) -A.

. To comment out one or more lines in a batch file, use the _______ command. ⦁ OUT ⦁ ECHO ⦁ REM ⦁ @ECHO OFF

REM

The command FIND /I "SMITH" NAMES.TXT will find which of the following name variations? SMITH Smith SmitH All of the above

The command FIND /I "SMITH" NAMES.TXT will find all of the following name variations: SMITH, Smith, and SmitH. This is because the /I parameter makes the search case-insensitive, so it will match any variation of the string "SMITH".

You are currently on drive F:\DATA\NEWSTUFF and have a file named PROPOSAL.DOC on the root drive of your flash drive. To delete that file from your current location, use the ________________ command. DEL F:\PROPOSAL.DOC DEL /A F:PROPOSAL.DOC DEL PROPOSAL.DOC DEL ..\PROPOSAL.DOC

To delete the file named PROPOSAL.DOC on the root drive of the flash drive from the current location, use the following command: DEL F:\PROPOSAL.DOC This command specifies the full path of the file to be deleted, which is located on the F: drive and in the root directory.

When you issue the DIR command in C:\, the main thing that you should see is: Data files Directories Program files Shortcuts

When you issue the DIR command in C:, the main thing that you should see is directories.' The DIR command is used to list the files and directories contained in a specified directory. When you issue the DIR command in the C:\ directory (which is the root directory of the C: drive), it will list all the directories contained in the root directory. This may include directories such as Windows, Program Files, Users, and others. Therefore, the correct answer is b) directories.

⦁ Clear the screen.

cls

Display the names of all files that are hidden and send the output to the file 4.INC.

dir /a:h > 4.INC

Make the directory structure ONE\TWO\THREE.

mkdir ONE\TWO\THREE

Copy all files, including the hidden files, that start with FILE and have any extension to the ONE\TWO\THREE subdirectory (use T:)

xcopy /S /H C:\FILE* T:\

Make an exact copy (including attributes) of all of the files in the ONE\TWO\THREE subdirectory in the FOUR subdirectory. (Hint: SHREK)

xcopy T:\ONE\TWO\THREE\*.* T:\FOUR\ /E /H /C /K

Write a batch file that will open Notepad, turn the ECHO OFF at the beginning, ECHO ON at the end. Put some remarks in the batch file that will not show up when running the batch explaining one thing that you learned in the class.

@echo off rem This batch file will open Notepad, turn echo off, then back on at the end. rem One thing I learned in class is that the @ symbol can be used to suppress command output. echo Turning echo off... @echo off echo Opening Notepad... start notepad.exe echo Turning echo back on... @echo on echo Batch file complete. pause When you run this batch file, it will first turn echo off so that the commands being executed aren't displayed on the screen. It then opens Notepad using the start command, which launches the program in a new window. After Notepad is open, echo is turned back on so that commands are displayed on the screen again. Finally, the batch file prints a message to let you know it's complete and waits for you to press a key before closing the command prompt window.

A disk with files that are scattered widely about the allocation units on a disk is: Full Orphaned Fragmented Contiguous

A disk with files that are scattered widely about the allocation units on a disk is called "Fragmented". Fragmentation occurs when a file is stored in non-contiguous clusters on a hard drive. This can happen when a file is created or modified and there is not enough contiguous space available on the disk to store it. As a result, parts of the file are stored in different physical locations on the disk, which slows down file access times. To fix fragmentation issues, disk defragmentation tools can be used to reorganize the file data on the disk so that each file is stored in contiguous clusters.

A file may have which of the following attributes: Read Only Archive System Hidden All of the above

A file may have the following attributes: Read Only: This attribute makes a file read-only, meaning it cannot be modified or deleted. Archive: This attribute is used by backup programs to determine which files have been modified since the last backup. System: This attribute is used by the operating system to mark system files. Hidden: This attribute is used to hide a file from being displayed in normal file listings. Therefore, the correct answer is e) All of the above.

A search string must be enclosed in _________________ to be found. Quotations Braces Pipes Percentages

A search string must be enclosed in Quotations to be found. Enclosing a search string in quotations tells the search engine to look for that exact string of characters, rather than trying to interpret the string as multiple search terms.

Create the directory FOUR.

Create the directory FOUR.

If you want to delete all of the files in your current directory in the quickest way, you would use the ___________ command.

DEL.

Do a directory of all files with a DTA extension. Add the output to the end of the file 1.INC by using >> instead of >. Example: DIR *.DTA >> 1.INC.

DIR *.DTA >> 1.INC

Display the attributes of all files starting with FILE and send the output to the file 5.INC.

DIR FILE* > 5.INC

. To take a directory listing from your current directory, sort it by the first column in ascending order, and save it to a file called DIRTEXT.TXT in that directory, use the command string: ⦁ DIR > DIRTEXT.TXT ⦁ DIR | MORE > DIRTEXT.TXT ⦁ DIR | SORT > DIRTEXT.TXT ⦁ DIR | DIRTEXT.TXT > SORT

DIRTEXT.TXT

Display the attributes of all files in the ONE\TWO\THREE subdirectory and send the output to the file 6.INC.

Display the attributes of all files in the ONE\TWO\THREE subdirectory and send the output to the file 6.INC.

Turn on the hidden, system and read-only attributes and turn off the archive attribute for all files with the extension of .XLS.

E:> attrib +h +s +r -a E:*.XLS

Execute a file named EXAM.BAT

E:> call EXAM.BE:> call EXAM.BATAT

Delete the file named CHRISTMAS.DOC that is in the subdirectory HOLIDAYS on Drive E.

E:> del E:\HOLIDAYS\CHRISTMAS.DOC

Delete all files with a file extension of DAT in the subdirectory REPORTS on Drive E.

E:> del E:\REPORTS*.DAT

Display all of the subdirectory's names in the current drive (not all of the files too)

E:> dir /ad /b

Display only the subdirectories names in the current drive.

E:> dir /ad /b

See if the files with the extension *.DOC on the current drive are contiguous.

E:> dir /b /on *.DOC

Create a macro named WW that displays a directory of all files with the extension .FIL.

E:> doskey WW=dir /b *.FIL

Add the documentation "This is a file" to a batch file.

E:> echo This is a file > mybatch.bat

Compare the files FIRST.TXT and SECOND.TXT

E:> fc E:\FIRST.TXT E:\SECOND.TXT

Find all occurrences of the word "Phoenix" in the file PERSONAL.FIL and direct the output to the file PHOENIX.TXT.

E:> find "Phoenix" E:\PERSONAL.FIL > E:\PHOENIX.TXT

Find the word "Jones", regardless of case, in the file FRIEND.DAT and sort the output by column 50.

E:> find /i "JoneE:> find /i "Jones" E:\FRIEND.DAT | sort /+50s" E:\FRIEND.DAT | sort /+50

Find out how many times the word "Banker" occurs in the file PERSONAL.FIL regardless of case.

E:> find /i /c "Banker" E:\PERSONAL.FIL

Display the contents of the PERSONAL.FIL one screenful at a time.

E:> more E:\PERSONAL.FIL

Move all files with an extension of .BTH to the subdirectory BATCH and change the extension to .BAT.

E:> move *.BTH BATCH*.BAT

Change the file extension from .DOC to .RPT for all files in the EXAM subdirectory located under the root directory on Drive C.

E:> ren C:\EXAM*.DOC *.RPT

Change the extension of the RAIN file from .DAT to .FIL. The file is located in the WEATHER directory under the root directory on Drive E.

E:> ren E:\WEATHER\RAIN.DAT RAIN.FIL

Allow the letter T to stand for E:\GAMES\BOG2

E:> set T=E:\GAMES\BOG2

Display a graphical representation of the file structure of the current drive.

E:> tree

Append the contents of SECOND.TXT to the file FIRST.TXT using redirection.

E:> type E:\SECOND.TXT >> E:\FIRST.TXT

Copy all the files and subdirectories, regardless of their attributes, from the WORK directory on the root directory to the COMPLETE subdirectory. The files should keep their original attributes.

E:> xcopy /s /e /h /k C:\WORK E:\COMPLETE

Turn off the display of commands to the screen in a batch file.

ECHO OFF

From your current directory G:\, changing the attribute of the CONFIG.SYS file on the root of the C: drive to Read only/System/Hidden would require the _______________ command. ATTRIBUTE +R +S -H C:\CONFIG.SYS ATTRIB +R +S +H C:\CONFIG.SYS ATTRIB -R -S -H C:\CONFIG.SYS ATTRIBUTE -R -S -H C:\CONFIG.SYS

From your current directory G:, changing the attribute of the CONFIG.SYS file on the root of the C: drive to Read-only/System/Hidden would require the following command: ATTRIB +R +S +H C:\CONFIG.SYS This command adds the Read-only, System, and Hidden attributes to the CONFIG.SYS file on the root of the C: drive. The "+R", "+S", and "+H" options are used to turn on these attributes. Therefore, the correct answer is b) ATTRIB +R +S +H C:\CONFIG.SYS.

If you are in the directory C:\Program files and wish to edit the file MYDATA.TXT on the root directory of your flash drive, enter the ____________________ command. EDIT MYDATA.TXT EDIT E:\MYDATA.TXT EDITOR E:\MYDATA.TXT WORDEDIT E:\MYDATA.TXT

If you are in the directory C:\Program Files and wish to edit the file MYDATA.TXT on the root directory of your flash drive, you should use the following command: EDIT E:\MYDATA.TXT This command launches the MS-DOS Editor (EDIT) and opens the file MYDATA.TXT located on the root directory of the E: drive. Therefore, the correct answer is b) EDIT E:\MYDATA.TXT.

Use the text editor to create a file named ME.FIL. The file should contain one line that reads "My name is "your name". Save the file and exit the editor.

Open Notepad. Type "My name is [insert your name here]" on the first line of the document. Go to File -> Save As and navigate to the directory where you want to save the file. In the "File name" field, type "ME.FIL". In the "Save as type" field, select "All Files (.)" from the drop-down menu. Click "Save". Close Notepad.

The __________ command allows you to see a simplified graphical representation of your directory structure at the command prompt. DIR SUBST XTREE TREE

The TREE command allows you to see a simplified graphical representation of your directory structure at the command prompt. The TREE command is used to display the directory structure of a specified path or the current directory in a tree-like structure. This allows you to see the directories and subdirectories contained within a folder in a clear and easy-to-understand way. Therefore, the correct answer is d) TREE.

The ability to use other channels of input/output rather than the standard methods is called: indirection virtual input/output piping redirection

The ability to use other channels of input/output rather than the standard methods is called "redirection." Redirection is a feature in command-line interfaces that allows the input or output of a command to be redirected from or to a file or a device other than the standard input (keyboard) or standard output (console) device. This can be accomplished using the ">", "<", ">>", and "<<" operators in the command-line. Indirection refers to the use of variables to store and retrieve values in a command-line environment, while virtual input/output (I/O) and piping refer to methods of directing data between software components or processes in a system.

. The batch command which displays or hides text to screen is: ⦁ SHOW ⦁ FOR ⦁ CALL ⦁ ECHO

The batch command which displays or hides text to screen is ECHO.

The bit value that indicates whether or not a file has been backed up is the ____ bit. R A H B

The bit value that indicates whether or not a file has been backed up is the A (Archive) bit. When the Archive attribute is set for a file, it means that the file has been modified since the last backup. Backup software can use this attribute to identify which files need to be backed up. After the backup is completed, the Archive attribute is cleared. Therefore, the correct answer is b) A.

The character used to turn on a file attribute is the ____ symbol. $ - = +

The character used to turn on a file attribute is the "+" (plus) symbol. When using the ATTRIB command in Windows, you can turn on or off the various file attributes by using the + (plus) or - (minus) symbols followed by the attribute letter. For example, to turn on the hidden attribute of a file, you can use the command "ATTRIB +H filename". Therefore, the correct answer is d) +.

The command DIR /AH will list all files in the current directory that are Hidden. Harmed. Halted. Read only.

The command "DIR /AH" will list all files in the current directory that are Hidden. The "/AH" option of the DIR command in Windows is used to display all files with the Hidden attribute set. This is useful for finding files that are not normally visible in file listings. Therefore, the correct answer is a) Hidden.

The command that allows you to change file attributes at the command prompt is: FILECFG NTLDR ATTRIB ATTRIBUTE

The command that allows you to change file attributes at the command prompt is "ATTRIB". The ATTRIB command in Windows allows you to view or change the attributes of files or directories. For example, you can use this command to make a file read-only or to remove the hidden attribute from a file. Therefore, the correct answer is c) ATTRIB.

Which of the commands below can be used to change the name of a directory? RD MOVE REN Both b and c

The command that can be used to change the name of a directory is "REN" (short for RENAME). Therefore, the correct answer is c) REN.

. To suspend operation of a batch file until user input is received, use: ⦁ Quit ⦁ While ⦁ For ⦁ Pause

The command to suspend operation of a batch file until user input is received is Pause.

The Windows OS _________________ utility examines a disk for errors. SCANDISK DISKCHK CHKDSK DISKFIX

The correct answer is: CHKDSK The CHKDSK (Check Disk) utility is a built-in command-line tool in Windows that examines the file system and file system metadata of a disk volume for errors. It can repair problems related to bad sectors, lost clusters, cross-linked files, and directory errors. SCANDISK was the name of a similar utility in older versions of Windows, but it was replaced by CHKDSK in newer versions. DISKCHK and DISKFIX are not valid commands in Windows.

When you are finished using COPY CON, close the file with the ______ key and ENTER, ⦁ F2. ⦁ F6. ⦁ F12 ⦁ F8

The correct answer is: F6.

To find all instances of the exact character string Nemo in the file E:\CAPTAINS.TXT, then further cross-reference the resultant list looking for all Nemo's in Hawaii and display the results to your monitor, you would construct the filter: ⦁ FIND %NEMO% E:\CAPTAINS.TXT > FIND %HAWAII% ⦁ FIND %Nemo% E:\CAPTAINS.TXT | FIND %Hawaii% ⦁ FIND "NEMO" E:\CAPTAINS.TXT | FIND "HAWAII" ⦁ FIND "Nemo" E:\CAPTAINS.TXT | FIND "Hawaii"

The correct answer is: FIND "Nemo" E:\CAPTAINS.TXT | FIND "Hawaii"

The command and parameter which displays your directory structure and files in ASCII only mode is: TREE /A TREE /F /A XTREE /F /A DIR /T /F /A

The correct command and parameter to display your directory structure and files in ASCII only mode is: TREE /A This command will display the directory tree and all files and directories in ASCII format, without displaying any graphics or special characters. The /A parameter is used to display files in ASCII mode. The other options: TREE /F /A: This command will display the directory tree and all files and directories in ASCII format with the file names as well. The /F parameter is used to display the files as well as the directories. XTREE /F /A: This is not a valid command in Windows. XTREE is a file manager application that was popular in DOS. DIR /T /F /A: This command will display the directory listing with details such as file size, creation and modification date, and time. The /T parameter is used to display the time and date, and the /A parameter is used to display the files in ASCII mode.

To send standard output from the DIR command to a file called DIR.TXT, use the command string: DIR | DIR.TXT DIR > DIR.TXT DIR < DIR.TXT DIR >> DIR.TXT

The correct command string to send standard output from the DIR command to a file called DIR.TXT is: DIR > DIR.TXT This command will redirect the standard output of the DIR command to the file DIR.TXT, overwriting any existing content in the file. If you want to append the output to the end of an existing file instead, you can use the double greater than sign (>>) like this: DIR >> DIR.TXT The pipe symbol (|) is used to redirect the output of one command to the input of another command, so it is not the correct symbol to use in this case. The less than sign (<) is used for input redirection, not output redirection.

To send standard input to the DEL command from a file called Y.TXT, enter the command syntax: DEL *.CHK > Y.TXT Y.TXT > DEL *.CHK Y.TXT | DEL *.CHK DEL *.CHK < Y.TXT

The correct command syntax to send standard input to the DEL command from a file called Y.TXT is: DEL *.CHK < Y.TXT This command uses the input redirection symbol "<" to redirect the contents of the Y.TXT file to the standard input of the DEL command. This will cause the DEL command to delete all files with the extension ".CHK" that are listed in the Y.TXT file.

. The default order of priority for execution of the first four file extensions is: ⦁ .COM, .BAT, .EXE ⦁ .EXE., .COM, .BAT, ⦁ .BAT, .COM, .EXE ⦁ .COM, .EXE, .BAT

The default order of priority for execution of the first four file extensions is: .COM, .EXE, .BAT

The linking of commands into chains that perform useful operations is termed: piping indirection redirection filters

The linking of commands into chains that perform useful operations is termed "piping".

When using the SORT command, if you key in 1234, 96, 4, and 789, the order returned would be: a. 4 96 789 1234 b. 1234 789 96 4 c. 1234 4 789 96 d. 96 789 4 1234

The order returned by the SORT command when keying in 1234, 96, 4, and 789 would be: 4 96 789 1234 Therefore, the answer is option a) 4 96 789 1234.

. The range of replaceable parameters is: ⦁ %0 - %10 ⦁ %1 - % 9 ⦁ $1 - $9 ⦁ %0 - %9

The range of replaceable parameters is: %0 - %9.

. A replaceable parameter is indicated by the proper use of the reserved character: ⦁ ^ ⦁ } ⦁ % ⦁ =

The reserved character used to indicate a replaceable parameter in batch files is the percent sign (%).

The reserved character used to indicate piping is the _____. ⦁ > ⦁ < ⦁ } ⦁ |

The reserved character used to indicate piping is the | (vertical bar or pipe) symbol.

The root directory of a hard disk should contain: anything that doesn't fit elsewhere. all files that you want to sort out later. any program that you aren't sure that you want to keep. only the files that are installed there by Windows OS install or its programs.

The root directory of a hard disk should contain only the files that are installed there by Windows OS install or its programs. The root directory of a hard disk is the top-level directory that contains all other files and directories on the drive. It is typically represented by the drive letter followed by a backslash (), such as C:\ or D:. The root directory should contain only the files that are necessary for the operating system and its programs to function properly. Storing other files in the root directory can make it difficult to organize and locate files, and can also slow down system performance. Therefore, the correct answer is d) only the files that are installed there by Windows OS install or its programs.

The sorting of data proceeds by default in the following order: Punctuation, numbers, uppercase letters, lowercase letters Lowercase letters, uppercase letters, punctuation, numbers Uppercase letters, lowercase letters, numbers, punctuation Punctuation, numbers, lowercase letters, uppercase letters

The sorting of data proceeds by default in the following order: Punctuation, numbers, uppercase letters, lowercase letters This means that when you sort data, it will first group all punctuation marks together, then sort numbers in ascending order, then sort uppercase letters in alphabetical order, and finally sort lowercase letters in alphabetical order.

There are three filtering commands, ___________, ____________, and __________. FIND, DEL, SORT DEL, RD, MD SORT, FIND, DEFRAG MORE, FIND, SORT

There are three filtering commands: FIND, MORE, and SORT. FIND: Used to search for a specific string of text in a file or output. MORE: Used to display output one screen at a time, allowing the user to scroll through the output. SORT: Used to sort the contents of a file in alphabetical or numerical order.

. To abort any batch file, use: ⦁ CTL-Z (^Z) ⦁ CTL-A (^A) ⦁ CTL-B (^B) ⦁ CTL-C (^C)

To abort any batch file, use the CTL-C (^C) key combination.

To append the contents of the file MONTH02.TXT to the end of the file MONTHS.TXT, you would use the ______________________ command. TYPE MONTH02.TXT + MONTHS.TXT TYPE MONTHS.TXT << MONTH02.TXT TYPE MONTH02.TXT < MONTHS.TXT TYPE MONTH02.TXT >> MONTHS.TXT

To append the contents of the file MONTH02.TXT to the end of the file MONTHS.TXT, you would use the following command: TYPE MONTH02.TXT >> MONTHS.TXT This command uses the output redirection symbol ">>" to append the contents of MONTH02.TXT to the end of MONTHS.TXT. The ">>" symbol appends the output to the end of the file, whereas the ">" symbol would overwrite the contents of MONTHS.TXT with the contents of MONTH02.TXT. The "TYPE" command is used to display the contents of a file, but in this case, it is being used in conjunction with the output redirection symbol to append the contents of one file to another.

To change the file FILESET.SYS from read only to read/write, use the ____________ command. ATTRIBUTE FILESET.SYS R/W ATTRIB FILESET.SYS /RW ATTRIB FILESET.SYS +R ATTRIB FILESET.SYS -R

To change the file FILESET.SYS from read-only to read/write, use the following command: ATTRIB -R FILESET.SYS This command removes the read-only attribute from the file FILESET.SYS, allowing it to be modified or deleted. The "-" (minus) symbol is used to turn off the read-only attribute. Therefore, the correct answer is d) ATTRIB FILESET.SYS -R.

You are currently in the directory \MYFILES. To delete all files in the child directory WORKING, use the command: DEL WORKING\*.* DEL WORKING *.* DEL \WORKING\*.* DEL \WORKING *.*

To delete all files in the child directory WORKING from the current directory \MYFILES, use the following command: DEL WORKING*.* This command deletes all files with any extension in the WORKING directory, which is located within the current directory (\MYFILES).

To find every line that does not include a specified target character string, you would use the parameter: /V /N /X /Z

To find every line that does not include a specified target character string, you would use the parameter: /V. For example, the command FIND /V "apple" fruits.txt would search for all lines in the file fruits.txt that do not contain the string "apple". The /V parameter tells the search engine to invert the search, so instead of finding lines that contain the target string, it finds lines that do not contain the target string.

To find the character string Windows XP in the file WINXP.TXT on your current directory, enter the ____________________________ command. FIND (Windows XP) WINXP.TXT SORT > (WINDOWS XP) WINXP.TXT FIND "WINDOWS XP" WINXP.TXT FIND "Windows XP" WINXP.TXT

To find the character string Windows XP in the file WINXP.TXT on your current directory, enter the FIND "Windows XP" WINXP.TXT command. This command will search for the exact string "Windows XP" in the file WINXP.TXT and return any lines that contain that string. Note that the search string is enclosed in quotations to ensure that the search engine looks for that exact string.

You are currently in the directory \HOME\JSMITH. To rename a file named CHAP22.TXT in the child directory DOCS to CHAP21.TXT, use the _________________ command. REN \DOCS\CHAP21.TXT CHAP22.TXT REN DOCS\CHAP22.TXT CHAP21.TXT REN DOCS\CHAP21.TXT CHAP22.TXT REN DOCS\CHAP22.TXT DOCS\CHAP21.TXT

To rename the file named CHAP22.TXT in the child directory DOCS to CHAP21.TXT, use the following command in cmd: REN \HOME\JSMITH\DOCS\CHAP22.TXT CHAP21.TXT This command will rename the file CHAP22.TXT located in the DOCS directory to CHAP21.TXT, without changing your current working directory (\HOME\JSMITH).

To sort a file by column number 32, you would use the syntax: SORT /32 SORT /-32 SORT /F /+32 SORT /+32

To sort a file by column number 32, you would use the syntax: SORT /+32. This would sort the file in ascending order based on the values in column 32. If you want to sort in descending order, you can add the /R parameter, like this: SORT /R /+32.

To sort a file in reverse order, you would use the command parameter: /M /B /O /R

To sort a file in reverse order, you would use the command parameter: /R

To substitute drive Z: for the path E:\FILES\NEWDATA, use the command string: SUBSTITUTE E:\FILES\NEWDATA Z: SUBST Z: E:\FILES\* SUBST E:\FILES\NEWDATA Z: SUBST Z: E:\FILES\NEWDATA .

To substitute drive Z: for the path E:\FILES\NEWDATA, use the following command string: SUBST Z: E:\FILES\NEWDATA This command creates a virtual drive Z: that points to the path E:\FILES\NEWDATA. Any files or folders within the E:\FILES\NEWDATA directory can now be accessed through the Z: drive. Therefore, the correct answer is d) SUBST Z: E:\FILES\NEWDATA.

To view the attributes of all files in your current directory, use the ___________ command. ATTRIBUTE ATTRIB ATTRIB /A ATTRIBUTE /A

To view the attributes of all files in your current directory, use the "ATTRIB" command with the "/A" option. The "/A" option displays files with the specified attributes, and if no attributes are specified, all files are displayed. So the correct command is: ATTRIB /A This command will display the attributes of all files in the current directory. Therefore, the correct answer is c) ATTRIB /A.

Windows OS provides a collection of icons in the file: ⦁ \WINDOWS\SYSTEM32\ICON32.DLL ⦁ \WINDOWS\SYSTEM32\SHELL32.DLL ⦁ \WINDOWS\SYSTEM\SHELL32.DLL ⦁ \WINDOWS\SYSTEM32\ICONS.DLL

Windows OS provides a collection of icons in the file: \WINDOWS\SYSTEM32\SHELL32.DLL.

Turn on the hidden attribute of all files with an extension FP.

attrib +h *.FP

Turn on the read-only and system attributes for all files with an extension of SWT in one command.

attrib +r +s *.SWT

# 5 Change the default directory to external drive. Be sure you are in the Disk directory.

cd (usb drive)

Copy all files from the SPORTS subdirectory to the root (disk) directory.

copy SPORTS\*.*

Delete all files starting with a DTA extension.

del *.DTA

Do a directory of all files with a DTA extension. Send the output to the file 1.INC.

dir *.dta > 1.inc

Display the attributes of all files in the FOUR subdirectory and concatenate the output to the file 6.INC. (Use >>)

dir /a FOUR >> 6.INC

Do a directory of all files in the PLAY subdirectory and send the output to the file 3.INC.

dir /b "PLAY\*" > 3.INC

Do a directory of all files with the extension TMS in the PLAY subdirectory and send the output to the file 2.INC.

dir /b /a-d "PLAY\*.TMS" > 2.INC

Do a directory of all files with the extension TMS in the SPORTS subdirectory and append the output to the file 2.INC.

dir /b /s "E:\SPORTS\*.TMS" >> 2.INC

If you are on the root of your C drive, and you want to check your flash disk for errors, use the command string: DISKCHK E: CHKDSK /F CHKDSK E: SCANDISK E:

he correct command string to check a flash disk (in this case, the E: drive) for errors while you are on the root of your C drive is: CHKDSK E: /F This command will run the CHKDSK (Check Disk) utility on the E: drive and fix any errors it finds. The /F parameter is used to specify that any errors found should be fixed. The other options: DISKCHK E: - This is not a valid command in Windows. The correct command is CHKDSK. CHKDSK /F - This command will check and fix any errors on the current drive (which is C: in this case) with the /F parameter. It will not check the E: drive. SCANDISK E: - This is not a valid command in newer versions of Windows. The correct command is CHKDSK.

Make a directory named PLAY.

mkdir PLAY

Move all files with the extension TMS to the subdirectory PLAY.

move *.tms play\

Rename the files with the extension TMS in the PLAY directory to the same file name but with the extension TXT. (Do not change the default directory)

ren "C:\PLAY\*.TMS" *.TXT

Rename the files with the extension TMS in the PLAY directory to the same file name but with the extension TXT. (Do not change the default directory)

ren PLAY\*.TMS *.TXT

Use the SUBST command to substitute T: for ONE\TWO\THREE .

subst T: C:\ONE\TWO\THREE

⦁ Display the contents of the ME.FIL file on the screen using a specific command

type ME.FIL


Ensembles d'études connexes

Redox & Reduct. Multiple Choice IB Chemistry

View Set

A & P II exam 4 ( chapters 22-23)

View Set

Earth's Surface: Weathering and Soil

View Set

Geology Chapter 10 Mastering Geology

View Set

Physics 1 Chapter 2 and 3 Practice Problems

View Set

Prep U's - Chapter 54 - Drug Therapy for Anxiety and Insomnia

View Set

Fund IS Section 5 Physical and Network Security

View Set