C
C
caof192017-12-17 20:43:38
Command line
caof19, 2017-12-17 20:43:38

How to write a batch file?

Good day, comrades. You need to write a batch file. which will perform some actions, such as deleting (but I don't want to delete :-) ) files with a jpg extension. If I understand correctly, the algorithm of actions is as follows:
1) We get a list of files with this extension, put them in a text file
2) Somehow we get our own command for each file
3) We execute these commands sequentially
Here a couple of questions arise: how can I get a command for each file and how to make sure that the execution of each command occurs only after the end of the previous one?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Moris Haos, 2017-12-17
@morihaos

Hello,
The title of the question is "How to write a batch file?"
Take a text editor and write commands into it.
The content of the question is at odds with the title and makes sense "What to write in a batch file?"
For example, deletion, but I do not need deletion ...
Study the command guide in the context of what you need and write what you need in the batch file.
The execution of commands in the batch file goes line by line, or in cycles that are defined.

V
Viktor Taran, 2017-12-18
@shambler81

https://sheensay.ru/optimization-png-jpg#kak-nastr...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question