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

tuan99452

Hero
Joined
Nov 23, 2012
Messages
1,427
Reactions
528
MR
0.440
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

Forum statistics

Threads
426,782
Messages
7,185,836
Members
179,138
Latest member
nguyenductuyen87

Most viewed of week

Most viewed of week

Back
Top Bottom