Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to format u disk with format command in DOS
How to format u disk with format command in DOS
The Format method has two forms, and the other is three parameters. The main difference is that it is thread-safe.

But it is not used much, so here is just an introduction. The Format parameter is a format string used to format the value in Args. Args is an array of variables, that is, it can have multiple parameters, and each parameter can be different.

For example:

Format ("My

name

be

%6s ","Wind ");

What is returned is: mine.

name

be

wind

The format can be a common string, such as "my"

name

Yes "

However, some format instruction characters have special meanings, such as "%6s".

The format instruction has the following form:

"%"

[Index]

":"]

["-"]

[width]

["."

prec]

type

It starts with "%"and ends with type, indicating a specific type. In the middle are optional directive characters for formatting types.