batch-processing

executing all the .reg files from batch file

隐身守侯 提交于 2019-12-08 13:37:33
I have following script that executes all the .reg files in the current directory. the problem is i also have sub directories in that folder and i want to execute those reg files as well. I am not sure what switch i am supposed to use. i tries using /s which returns all the .reg files of the drive. this is how my batch file looks like: rem @echo off cls SET folder=%~dp0 for %%i in ("%folder%*.reg") do (regedit /s "%%i") echo done pause EXIT This is how file/directory structure looks like: Folder1 batchfile.bat -> user double clicks or executes from command prompt 1.reg 2.reg 3.reg Folder2 4

Adding “with ur” or any other prefix in query being generated by JdbcPagingItemReader

扶醉桌前 提交于 2019-12-08 12:42:14
问题 I am writing a java application to read data from one table and writing it in some file. Our table have million of records, which we need to read daily and write in file. So, I am using Spring batch with reader as JdbcPagingItemReader, as I want to read records in pages. Below is my bean defination :- <bean id="pagingItemReader" class="org.springframework.batch.item.database.JdbcPagingItemReader" scope="step"> <property name="dataSource" ref="dataSource" /> <property name="queryProvider">

Python - Batch combine Multiple large CSV, filter data, skip header, appending vertically into a single CSV

萝らか妹 提交于 2019-12-08 10:32:11
问题 ** Note i have modified the code below original to show a code that works for what i need Good afternoon all So many questions around csv data combining but as yet i haven't found anything to help me with my code requirements. I have large fixed header CSV's that: 1) are produced over a 12hr period. i need to look up a weeks worth of csv's to merge 2) filter the individual CSV's on 2 columns information (to many rows otherwise) 3) append vertically into a single csv 'master sheet' with the

What's the fastest way to partition a sas dataset for batch processing?

白昼怎懂夜的黑 提交于 2019-12-08 09:09:18
问题 I have a large sas dataset (1.5m obs, ~250 variables) that I need to split into several smaller sas datasets of equal size for batch processing. Each dataset needs to contain all the variables but only a fraction of the obs. What is the fastest way of doing this? 回答1: You could do something like the following: %macro splitds(inlib=,inds=,splitnum=,outid=); proc sql noprint; select nobs into :nobs from sashelp.vtable where libname=upcase("&inlib") and memname=upcase("&inds"); quit; %put Number

Service to process queued long-running processes - where to start?

ⅰ亾dé卋堺 提交于 2019-12-08 07:40:39
问题 What's the best way to build a service to handle queued long-running processes? For example, this is what we're trying to do User uploads 401k data to web Data goes into processing queue (a database table) 401k is processed (could take a couple minutes per client) User is informed via e-mail that 401k was accepted We could certainly write a service to handle this, but what if the service fails? How would someone be notified? What if there is an exception? Also, should this service handle

How to read a complex JSON in spring batch?

允我心安 提交于 2019-12-08 07:39:19
问题 I have a complex JSON below. I am reading it using FlatFileItemReader. How can I ignore the last line "]", with my customized ComplexJsonRecordSeparatorPolicy? [ {"firstName":"Tom", "lastName":"Cruise"}, {"firstName":"Bruce", "lastName":"Willis"}, {"firstName":"Liam", "lastName":"Neeson"} ] My ComplexJsonRecordSeparatorPolicy looks like below. This class is successfully working, when I have "]" in line no 4 but, it throws an error when the line is supplied with only "]" in line no 5, as my

executing all the .reg files from batch file

ε祈祈猫儿з 提交于 2019-12-08 07:24:51
问题 I have following script that executes all the .reg files in the current directory. the problem is i also have sub directories in that folder and i want to execute those reg files as well. I am not sure what switch i am supposed to use. i tries using /s which returns all the .reg files of the drive. this is how my batch file looks like: rem @echo off cls SET folder=%~dp0 for %%i in ("%folder%*.reg") do (regedit /s "%%i") echo done pause EXIT This is how file/directory structure looks like:

Batch parsing to VBscript

北城余情 提交于 2019-12-08 05:15:30
问题 I have a VBScript copied from the link http://www.robvanderwoude.com/vbstech_ui_password.php In the existing VBSscript I have added the code for the "Internet Explorer version" : WS SCRIPT - named Password.vbs ( see full script in the above link ) strPw = GetPassword( "Please, type your password:" ) Sub Submit_OnClick Const ForWriting = 2 Dim filesys, filetxt, FormContent Set FormContent = document.getElementById("strPw") Set filesys = CreateObject("Scripting.FileSystemObject") Set filetxt =

Lossless jpeg batch crop

好久不见. 提交于 2019-12-08 04:18:41
问题 I need to crop a bunch of jpegs by 20 pixels on the right side losslessly. Do you know about any software that can do that? I checked jpegtran but it needs the file size in pixels before cropping and I don't know how to build a batch file with that. Any ideas? 回答1: My shell scripting is a little rusty so please make a backup of your images before trying this script. #!/bin/bash FILES=/path/to/*.jpg for f in $FILES do identify $f | awk '{ split($3, f, "x"); f[1] -= 20; cl = sprintf("jpegtran

batch file to execute a command on all files in multiple directories

若如初见. 提交于 2019-12-08 04:13:18
问题 I would like to make a batch file that runs this command: C:\Program Files (x86)\IrfanView\i_view32.exe" "C:\Users\digi_admin\TIFFs\ OLD DIRECTORY\*.tif" /ini="C:\Users\digi_admin\Documents\" /advancedbatch /tifc=4 /convert="C:\Users\digi_admin\CompTIFs\Some Folder\NEW DIRECTORY\*.tif" On all the files in several folders. All the files will be located in \TIFFs\ but will reside in several different sub-folders. (OLD DIRECTORY) Also I need to create the folder \NEW DIRECTORY\ (which will have