batch-processing

Robocopy invalid parameter #3

喜你入骨 提交于 2019-12-05 09:38:42
Here is my batch content Robocopy.exe D:\IDRIVE\New backups\Program\full\1 D:\IDRIVE\New backups\Program\full\2 pause But in cmd it's showing ------------------------------------------------------------------------------- ROBOCOPY :: Robust File Copy for Windows ------------------------------------------------------------------------------- Started : Mon Apr 21 15:24:47 2014 Source - D:\IDRIVE\New\ Dest - D:\IDRIVE\New backups\Program\full\backups\Program\full\2\ Files : Options : /COPY:DAT /R:1000000 /W:30 ------------------------------------------------------------------------------ ERROR :

Graph Batch API

╄→гoц情女王★ 提交于 2019-12-05 09:16:46
this is my first post at stackoverflow. I am using the Facebook Graph Batch API to request the Feed-Updates from several users at once. But I really don't know how the appropriate error handling is done. Following example should demonstrate my problem: Batch request: user1 - valid access_token user2 - invalid (password change maybe?) user3 - valid access_otken The answer from Facebook could look like this: successful answer unsuccessful answer (OAuth Exception) successful answer But reading the docs, it seems like that the ordering of the answer is not guaranteed. So my question is, how do I

Execute batch code when user click on exit

大憨熊 提交于 2019-12-05 07:39:51
问题 I am working on some code testing, and I stumbled on a problem I can't find or fix. My problem is: If a user accidentally closes the cmd window, I'd like to execute a batch code before it actually closes. For example: I run script A.bat . When a user wants to exit, I want it to delete my B.bat and then close the window. This is how the code may look like: @ECHO OFF echo Welcome to A.bat del B.bat (when user exits the window) I couldn't find it on google and forums, so I thought maybe you guys

Batched FFTs using cufftPlanMany

梦想与她 提交于 2019-12-05 06:30:01
问题 I want to perform 441 2D, 32-by-32 FFTs using the batched method provided by the cuFFT library. The parameters of the transform are the following: int n[2] = {32,32}; int inembed[] = {32,32}; int onembed[] = {32,32/2+1}; cufftPlanMany(&plan,2,n,inembed,1,32*32,onembed,1,32*(32/2+1),CUFFT_D2Z,441); cufftPlanMany(&inverse_plan,2,n,onembed,1,32*32,inembed,1,32*32,CUFFT_Z2D,441); After I did the forward and inverse FFTs using the above plans, I could not get the original data back. Can anyone

Atomic Batches in Cassandra

こ雲淡風輕ζ 提交于 2019-12-04 23:09:17
问题 What do you mean by Batch Statements are atomic in cassandra? Docs are a bit confusing in nature to be precise. Does it mean that queries are atomic across nodes in cluster? Say,for example, i have a batch with 100 queries. If the 40th query in batch fails, what happens to the 39 queries executed in the batch? I understand that there is a batchlog created under the hood and it will take care of the consistency for partial batches. Does it remove the rest of the 39 entries and provide the

How can I run ISPF Edit Macros in Batch

删除回忆录丶 提交于 2019-12-04 22:05:44
I frequently write and use ISPF edit macros. However, invoking them in foreground is time consuming. Can I use a Rexx program to run the edit macros against all, or a selection of, members of a PDS via batch? You can use Library Management functions. You use LMINIT to get a DATA ID for the dataset to be edited and then use the LMOPEN function to open the dataset. You could then use LMMLIST if you want to perform the macro on a member or members of a PDS or PDSE. You can then use the EDIT function specifying the macro to use/invoke, which should have an ISREDIT END or ISREDIT CANCEL . If

How do I execute a batch file in administrator mode [closed]

房东的猫 提交于 2019-12-04 20:01:50
I am trying to write a batch file to share a folder across my network using net share but it needs administrator privileges. I dont know how to execute this command in admin mode. When you right click cmd.exe in Windows search and select "Run as administrator" it doesn't ask me the password, but when I write a batch code using runas command, it ask for a password. Why is it so? I used following commands runas.exe /profile /user:administrator "cmd.exe" start /wait cmd.exe /k "net share Inputs=Folder_Path /GRANT:Everyone,FULL" and didnt work. I am using Win 7 32-bit Also, somewhere I saw that

Keras train_on_batch loss/accuracy 0

喜你入骨 提交于 2019-12-04 19:03:47
问题 I am using a big dataset, and so I'm trying to use train_on_batch(or fit with epoch = 1) model = Sequential() model.add(LSTM(size,input_shape=input_shape,return_sequences=False)) model.add(Dense(output_dim)) model.add(Activation('softmax')) model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=["accuracy"]) for e in range(nb_epoch): for batch_X, batch_y in batches: model.train_on_batch(batch_X,batch_y) # or # model.fit(batch_X,batch_y,batch_size=batch_size,nb_epoch=1

batch file that searches for strings in a text file inside all files in folders/subfolders

别说谁变了你拦得住时间么 提交于 2019-12-04 18:23:42
I have a text file (sample.txt) which has almost 500 strings and I have folder (package) which has many sub-folders with many files of different file types(.xml, .cpp, .hpp, few more). Sample.txt looks like gi_70_1 IF_MNE_70F_BLACK Backserver Type_Gradient Area_round I need to search these strings in all the files in the "package" folder and print the path where it is found in Result.txt Here is what I had managed till now @echo off set RESULT_FILE="result.txt" for /F %%i in (sample.txt) do ( pushd %~p0 type NUL > %RESULT_FILE%.tmp for /f "delims=" %%a in ('dir /B /S *.txt') do ( for /f

batch execute R script

二次信任 提交于 2019-12-04 16:38:50
I am unable to source a script from the windows command line. Entering the following command: "C:\Program Files\RStudio\bin\rstudio.exe" CMD BATCH --vanilla --slave "E:\myfile.R" Opens Rstudio and the script in question, but does not source. Documentation notes you may specify an output file but I just want the script to execute. Any suggestions? Agstudy's answer is all you need but as reference to others I only used two lines: PATH C:\Program Files\R\R-3.1.0\bin;%path% Rscript "E:\Dir With Spaces\myfile.R" Note the path points to R and not Rstudio. The quotes in line 2 deal with Dir With