Question

In: Computer Science

1. If we use the command: FSUTIL FILE CREATENEW file1.txt, what other parameter must we include?...

1. If we use the command: FSUTIL FILE CREATENEW file1.txt, what other parameter must we include?

File System

File Attributes

File Size

We can use the SC utility tool to manage services, and the following are all options for SC, except:

LIST

CREATE

QUERY

STOP

/Length

When we use DIR without any switches, we will see the following information, except:

Group of answer choices

Last Modified Time

File/Directory Name

Ownership

File Size

While we can use the % for variables in the FOR command in Command Prompt, we need to use this when we use the FOR command in a batch file:

Group of answer choices

**

%%

&&

$$

Solutions

Expert Solution

1 Ans:: file size

Syntax is :   fsutil file [createnew] <filename> <length>

where lenth is the file size

createnew --> Creates a file of the specified name and size, with content that consists of zeroes.

2. Length, List ( We cannot use list as option directly, but listing can be done using enumpad)

SC is a command line program used for communicating with the Service Control Manager and services.

sc <server&> [command] [service name] option1> <option2>...

Commands:

create----------Creates a service. (adds it to the registry).

query-----------Queries the status for a service, or enumerates the status for types of services.

start-----------Starts a service.

pause-----------Sends a PAUSE control request to a service.

interrogate-----Sends an INTERROGATE control request to a service.

continue--------Sends a CONTINUE control request to a service.

stop------------Sends a STOP request to a service.

EnumDepend------Lists the services that depend on the specified service.(Enumerates Service Dependencies.)

3. ownership

DIR displays a list of a directory's files and subdirectories. Without any parameters, it displays following (1) disk's volume label (2) serial number, (3) a list of directories and files on the disk (including their names and the date and time each was last modified)

For files, dir displays the file name extension and the size in bytes.

Dir also displays the total number of files and directories listed, their cumulative size, and the free space (in bytes) remaining on the disk.

But ownership will not be displayed.

4. %% can be ued.

For is a Loop command: against a set of files - conditionally perform a command against each item.

Syntax

for {%% | %}<variable> in (<set>) do <command> [<commandlineoptions>]

{%% | %}<variable> ---------. Use a single percent sign (%) to carry out the for command at the command prompt. Use double percent signs (%%) to carry out the for command within a batch file.


Related Solutions

IN PYTHON File Data --- In file1.txt add the following numbers, each on its own line...
IN PYTHON File Data --- In file1.txt add the following numbers, each on its own line (20, 30, 40, 50, 60). Do not add data to file2.txt. Write a program. Create a new .py file that reads in the data from file1 and adds all together. Then output the sum to file2.txt. Add your name to the first line in file2.txt (see sample output) Sample Output Your Name 200 use a main function.
1. At the command prompt, use the where command to locate the where.exe file. Copy and...
1. At the command prompt, use the where command to locate the where.exe file. Copy and paste the full path and filename for the where.exe file into the space provided below. 2. At the command prompt, enter the following command and press enter. find "free beer" "c:\Program Files (x86)\Notepad++\*.txt" This command searches for the string "free beer" in all .TXT files in the Notepad++ program folder. According to the output of the find command, which of the files listed below...
Please answer the following questions thank you!! 1) Assume file1.txt was created more recently than file2.txt....
Please answer the following questions thank you!! 1) Assume file1.txt was created more recently than file2.txt. You can test this using which of the following conditions? A) [ file1.txt –n file2.txt ] B) [ file1.txt –nt file2.txt ] C) [ file1.txt –ot file2.txt ] D) [ -newer file1.txt file2.txt ] E) None of these, there is no such test 2) We want to test to see if file1.txt is not readable. Which of these conditions will do so? A) [[...
1. create a .txt file and call it fruits.txt, add the following items to the file...
1. create a .txt file and call it fruits.txt, add the following items to the file Apple Banana Peach Strawberry Watermelon Kiwi Grape _______ 2. Write a program that does the following: - Reads the fruit.txt - Converts the contents into all uppercase - Writes the uppercased values into a text file called "UpperFruit.txt" OUTPUT SHOULD BE: APPLE BANANA PEACH STRAWBERRY WATERMELON KIWI GRAPE
Here we will be taking data in as a file instead of from the command line...
Here we will be taking data in as a file instead of from the command line (no cin). Note that the sample file provided here is not the file that I will use to grade your assignment but the formatting will be the same. File input is very similar to how data comes in from the user through cin (using the same operators) but we will need to setup the stream ourselves. First we need to include <fstream> at the...
C++ Question: we need to read speech from .txt file. Steve Jobs delivered a touching and...
C++ Question: we need to read speech from .txt file. Steve Jobs delivered a touching and inspiring speech at Stanford's 2005 commencement. The transcript of this speech is attached at the end of this homework description. In this homework, you are going to write a program to find out all the unique tokens (or words) used in this speech and their corresponding frequencies, where the frequency of a word w is the total number of times that w appears in...
1. In Creo Parametric, which command can we use to adjust the tapered angle of a...
1. In Creo Parametric, which command can we use to adjust the tapered angle of a surface? 2. Will dimensions be updated when the geometry is modified? 5. What is the main difference between straight and sketched holes? 6. What is the difference between coaxial and radii holes? *All questions are refered to creo**
APPLIED STATISTICS 2 USE R CODE! SHOW R CODE Use data file RecordMath2526.txt, to produce a...
APPLIED STATISTICS 2 USE R CODE! SHOW R CODE Use data file RecordMath2526.txt, to produce a plot graph with Exam1 as x, Exam2 as y, use Gender as color, and Hw1 as pch. RecordMath2526 information Index Gender Hw1 Hw2 Hw3 Exam1 Hw4 Exam2 Hw5 Hw6 Hw7 Final 1 F 9 6 8 60 7 82 10 10 9 69 2 M 10 10 10 94 9 98 10 10 8 91 3 M 9 10 8 79 9 55 10...
Please use R to solve part e and f The data file data2.txt gives a data...
Please use R to solve part e and f The data file data2.txt gives a data set with two variables x and y. The first column in the data set is just row numbers not useful for this question. (e) Use the Shapiro-Wilks test to test for Normality of the data. State your null and alternative hypotheses, p-value and conclusion. Use α = 0.05 (f) Apply the transformation y 0 = log(y) and run the regression on y 0 on...
C++ Assignment Hi, I need to create a program that: 1.Reads a source file (.txt) with...
C++ Assignment Hi, I need to create a program that: 1.Reads a source file (.txt) with following information: 1,2,3,4,5 red,blue,green,yellow,orange left, right,front, back 2. After having program read the .txt file, output the above information in categories of Symbol, Token Type, and Count : Example: Symbol---Token Type (data type)----Count (how many times symbol appeared in .txt file) =========================================================================== 1 ----digit ----1 2 ----digit ----1 red ----color ----1 blue ----color ----1 left ----direction ----1 right ----direction    ----1
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT