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) [[...
C++ The txt file is not showing up in my output #include <iostream> #include <fstream> #include...
C++ The txt file is not showing up in my output #include <iostream> #include <fstream> #include <string> #include "Classroom.h" using namespace std; Classroom myLib; void loadDataset(string fileName) { ifstream myFile; myFile.open(fileName.c_str()); } void continueMessage(string message) { cout << message << endl; cout << "Press Enter to continue.." << endl; cin.get(); } int main() { string fileName = "dataset.txt"; loadDataset(fileName); myLib.print(); continueMessage; string ID = "Janet Newman"; myLib.removeStudent (ID); continueMessage("Janet Newman has been removed."); //--------------------------------------------------------------------------- myLib.print(); continueMessage("All students are listed!"); return...
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...
Use the attached file to make the appropriate x-bar and R charts. You must include the...
Use the attached file to make the appropriate x-bar and R charts. You must include the data points, center line, upper and lower control limits. (Remember, only the data points should NOT be a straight line.) MEAN CI x-bar (Grand Mean) LCL x-bar (CI-A2*R-bar) UCL x-bar (CI+A2*R-bar) Sample Range (Max-Min) R-bar (Mean) UCL R (R-bar*D4) 1 12.00 12.50 12.47 12.78 13.00 2 12.78 11.18 11.92 11.95 11.86 3 13.30 13.00 12.95 12.98 13.32 4 11.29 12.87 12.53 11.42 12.37 5...
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...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT