Home > OS >  Help, help to write a BAT file processing.
Help, help to write a BAT file processing.

Time:10-29

A PHP application needs to process under the ms-dos, but every time by input processing a document, but I need to deal with a large number of documents, strives for the great god help me to write a batch,
I am a single command is the c: \ \ wamp \ bin \ PHP php5.5.12 \ PHP exe d: \ a12 \ index PHP - f in d: \ a13\102. CSV under the ms-dos enter the carriage return can run. 102. There are many types of document, behind the CSV beg god for help, thank you.
My program in c: \ \ wamp \ bin \ PHP php5.5.12 \ PHP exe, this is the location of the document d: \ a13\102. CSV,

CodePudding user response:

Directly use the wildcard

CodePudding user response:

Direct use wildcards can't complete

CodePudding user response:

Check the forfiles usage

CodePudding user response:

You provide you need to deal with file format?
102. The CSV
Behind is the name of the format. All CSV
It is ok to handle all the CSV?

CodePudding user response:

 
The set work_path=d: \ a13
D:
CD work_path % %
For/R % % s in (., *) do (
C: \ \ wamp \ bin \ PHP php5.5.12 \ PHP exe d: \ a12 \ index PHP - f % % s
)
Pause

Don't know your file list
This is traversing the d: \ a13 under all files you run the command code, if you have any specific content, can you tell me, I think again.