In: Computer Science
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
**
%%
&&
$$
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.