Help lấy dữ liệu csv bằng bath

tuan99452

Hero
Joined
Nov 23, 2012
Messages
1,430
Reactions
528
MR
0.399
Insuree Balance
0
Mình muốn tạo file cmd mà đọc hàng x cột y bất kỳ của file csv, mà chỉ tìm được lệnh đọc nguyên cột, cao nhân nào giúp mình với

FOR /F​


Loop command: against the results of another command.

Syntax
FOR /F ["options"] %%parameter IN ('command_to_process') DO command

Key
options:
delims=xxx The delimiter character(s) default: a Space, TAB, comma, Equals or Semicolon.

skip=n A number of lines to skip at the beginning. Default = 0.

eol=; Character at the start of each line to indicate a comment
The default is a semicolon ;

tokens=n The numbered items to read from each line. Default = 1.

usebackq Use the alternate quoting style:
- Instead of double quotes use single quotes for 'Text string to process'
- Use double quotes for long file names in "filenameset".
- Use back quotes for `command_to_process`

command_to_process : The output of the 'command_to_process' is passed into the FOR parameter.

command : The command to carry out, including any parameters. This can be a single
command, or if you enclose it in (brackets), several commands, one per line.

%%parameter : A replaceable parameter:
in a batch file use %%G (on the command line %G)
 

Announcements

Today's birthdays

Forum statistics

Threads
418,323
Messages
7,070,054
Members
170,451
Latest member
bietthuquan2hcm

Most viewed of week

Most viewed of week

Back
Top Bottom