Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question