Questions tagged [batch-processing]

Batch-processing refers to programmatic execution with minimum human interaction.

Batch processing is a general term for frequently-used programs that are executed with minimum human interaction. Batch-process jobs are often scheduled to start up on their own, as resources permit. Historically and practically, this is integral to scripting; thus the well-known batch file.

Batch processing can as easily refer to performing a sequence of actions on a group (batch) of items, whether in software, manufacturing, agriculture, etc.

3632 questions
251
votes
27 answers

How do you convert an entire directory with ffmpeg?

How do you convert an entire directory/folder with ffmpeg via command line or with a batch script?
Eugene
  • 9,015
  • 18
  • 58
  • 86
167
votes
8 answers

How do I choose a HTTP status code in REST API for "Not Ready Yet, Try Again Later"?

I'm developing a RESTful API in which http://server/thingyapi/thingyblob/1234 returns the file (aka "blob") associated with thingy #1234 to download. But it may be that the request is made at a time the file does not exist in the server but most…
JCCyC
  • 14,557
  • 11
  • 41
  • 73
141
votes
14 answers

Batch file. Delete all files and folders in a directory

I want to have a batch file that will delete all the folders and files in my cache folder for my wireless toolkit. Currently I have the following: cd "C:\Users\tbrollo\j2mewtk\2.5.2\appdb\RMS" del *.db This will delete all .db files in my RMS…
user69514
  • 24,321
  • 56
  • 146
  • 183
125
votes
13 answers

Run all SQL files in a directory

I have a number of .sql files which I have to run in order to apply changes made by other developers on an SQL Server 2005 database. The files are named according to the following pattern: 0001 - abc.sql 0002 - abcef.sql 0003 - abc.sql ... Is there…
K.A.D.
  • 3,518
  • 3
  • 31
  • 35
105
votes
15 answers

Java 8 Stream with batch processing

I have a large file that contains a list of items. I would like to create a batch of items, make an HTTP request with this batch (all of the items are needed as parameters in the HTTP request). I can do it very easily with a for loop, but as Java 8…
Andy Dang
  • 1,419
  • 3
  • 12
  • 9
102
votes
7 answers

Change EOL on multiple files in one go

Is there any way in Notepad++ (or even with another tool) to change the line ending automatically on multiple files in one go? i.e. convert a mix of windows EOL (CRLF) and UNIX EOL (LF) files to be all Windows EOL (CRLF)
fduff
  • 3,359
  • 2
  • 25
  • 33
91
votes
9 answers

How to test if an executable exists in the %PATH% from a windows batch file?

I'm looking for a simple way to test if an executable exists in the PATH environment variable from a Windows batch file. Usage of external tools not provided by the OS is not allowed. The minimal Windows version required is Windows XP.
sorin
  • 137,198
  • 150
  • 472
  • 707
66
votes
6 answers

Difference between xcopy and robocopy

I'm kind of new to batch scripting. As a newbie I find both both of them useful while scripting What are the key differences between xcopy and robocopy?
tourist
  • 3,447
  • 5
  • 19
  • 41
54
votes
7 answers

How to close the command line window after running a batch file?

I've got a batch file. After it finished running, i.e. all command lines have been executed, the cmd.exe window stays open. However, I'd like to have it closed right after the batch file finishes its job. So far I've tried using the exit command…
Blitzcrank
  • 767
  • 2
  • 9
  • 18
42
votes
4 answers

Running a background Java program in Tomcat

Can anyone advise here? I have a situation where users will submit data mining requests interactively via a Java JSP and servlet to an application of mine which will dynamically work out association rules on data and more. As such a job may take a…
mr morgan
  • 451
  • 1
  • 6
  • 5
41
votes
7 answers

Batch update/delete EF5

What is the best way to deal with batch updates using (Entity Framework) EF5? I have 2 particular cases I'm interested in: Updating a field (e.g. UpdateDate) for a list (List) of between 100 and 100.000 Id's, which the primary key. Calling each…
Frank
  • 3,239
  • 4
  • 16
  • 23
40
votes
1 answer

What is "epoch" in keras.models.Model.fit?

What is "epoch" in keras.models.Model.fit? Is it one gradient update? If it is more than one gradient update, then what is defining an epoch? Suppose I am feeding my own batches to fit. I would regard "epoch" as finishing to process entire training…
Dims
  • 37,353
  • 77
  • 251
  • 478
39
votes
8 answers

What's the equivalent of Python's Celery project for Java?

I am trying to find an equivalent of Celery project for Java environment, I have looked at Spring Batch, but are there any better alternatives for distributed task queues. Thanks.
Zakiullah Khan
  • 1,308
  • 2
  • 12
  • 26
37
votes
2 answers

What is Spark Job ?

I have already done with spark installation and executed few testcases setting master and worker nodes. That said, I have a very fat confusion of what exactly a job is meant in Spark context(not SparkContext). I have below questions How different…
chaosguru
  • 1,711
  • 3
  • 26
  • 40
34
votes
6 answers

Batch check if mapped network drive exists

I'm currently writing a script that should map a network drive to the letter Z , i'm using the command net use z: \\path , the thing is that if the user is already using this letter i won't be able to map it, is there any way to check the existense…
Alex Brodov
  • 2,985
  • 15
  • 39
  • 59
1
2 3
99 100