Questions tagged as 'batch'

0
answers

Keep active session for multiple requests using CURL is very slow

I made a script to automatically post ads to a classified site for a particular user. I store the ads ID locally in the database, then with the CURL, I login, and then loop through each ad ID to activate it on the corresponding date. But this...
asked by 01.07.2016 / 18:24
2
answers

Find files on local drives using Batch

Good day dear, My knowledge of scripting is very limited, so I would like the help of the community in the following question. We have some excel files for specific names on users' computers. (suppose: file1.xls, file2.xls and file3.xls) I...
asked by 02.03.2016 / 15:49
2
answers

how to terminate program in windows from matlab?

Is there any way to terminate a program in windows from a command in matlab? Possibly resorting to a batch ... but I do not know the commands to manage programs in windows nor how to run it from matlab. I can have multiple instances of the sa...
asked by 09.05.2014 / 02:56
2
answers

Invalid character in .bat file

Gentlemen! I have a .bat file that I use to start Apache Tomcat from my application in debug mode. However when running this file in CMD, the first thing displayed is the following message: ''╗┐' is not recognized as an internal command o...
asked by 23.11.2016 / 16:45
2
answers

How to generate random numbers at the command prompt?

I have a file in .cmd and I need it to generate random numbers with 10 algorithms. Such as 9006100001 and 1579970319 generated randomly. I currently have the following function generating random numbers based on the system time....
asked by 17.10.2016 / 03:38
3
answers

How to make decision structure to change color in a bat?

Hello, I would like to know how to make a decision in the following situation: I have a cmd window with a constant ping, I wanted the script to analyze when the ping was normal, the letters of the cmd would be green, if it went without a connect...
asked by 16.04.2016 / 21:07
1
answer

Write current directory in a text file

In a batch program I have: echo Date >c:\users\...\testecmd.txt Writes the current date to a text file. Assuming I do not know where the directory in which the self executable is, how do I get it to call the Current Directory inste...
asked by 17.02.2016 / 04:15
1
answer

Identify which partition is running the script

In the case of prompt of command we can use Windows environment variables to advance paths, such as: echo %homedrive% That will result in the attribute letter where sistema operacional was installed. But to tell you the tru...
asked by 03.03.2018 / 03:58
1
answer

Calculate two times in a variable in the batch

Is it possible to calculate the difference between two times with the batch and use the response as a variable within the command? The "time" command allows you to do the calculations between start and end times. set STARTTIME=%TIME% set ENDTI...
asked by 05.12.2017 / 19:50
1
answer

Generate error at the end of the copy if any files are not copied

I have a batch that copies some files on the network, this copy updates the previous files to the newest cases if they already exist in the destination folder, but if any files are in use the system does not display the error message in the end...
asked by 07.06.2017 / 15:22