Most voted "batch" questions
"Batch", also called "batch processing", refers to the(s) execution(s) of one or more commands, which may be internal, and/or external. As, also, can(m) contain (in) program(s) call(s), on a computer, for various executions, with or without user interaction, to meet the desired processing.
Learn more…222 questions
Sort by count of
-
1
votes2
answers2094
viewsCreate folder in . bat with variable name
I am trying to create folders on my DESKTOP "automatically" with the name I put, when the program is running. 1° I need to set the amount of folders (%number_of_agents%); 2° Get in the way of my…
batchasked 4 years, 10 months ago Tiago Augusto 23 -
1
votes1
answer49
viewsBuilding a Rest api to recover data from a base using spring batch
I am trying to build a Rest api to recover data from a table using spring batch. Below my service Rest: @RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE +…
-
0
votes1
answer124
viewsBatch calling "dtsx" does not connect to Avaya CMS
I created a service in dtsx that needs to connect to CMS Avaya. It turns out that when I run it through Visual Studio it follows the process until the end normally. But when I call one batch it does…
-
0
votes1
answer1177
viewsPlace exceptions in the proxy by batch
@echo off REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v…
-
0
votes1
answer3014
viewsping Ips command
I need to make a .bat that upon being executed starts the command of ping. But I need to "ping" multiple Ips automatically and in the case of a given IP not responding, that it presents a message…
-
0
votes0
answers4854
viewsMove files to a particular folder automatically
I have a backup routine in SQL that automatically generates backup of databases in this folder: D:\Backup\Backup_SQL\Databases I created a bat (forfiles) that compresses these backup files and…
-
0
votes1
answer424
viewsEclipse and Selenium - Transforming . JAVA into . EXE or . BAT
I’m using Eclipse and the Selenium framework to create automated web page opening routines and execute commands (link clicks, field fill, site change, etc). I’ve managed to create some test routines…
-
0
votes0
answers701
viewsWhich encoding to use for CMD script?
Windows Command Prompt uses an ASCII table different from ours, which even I don’t know what it is. So much so that a batch with special characters when printed on the screen looks weird: Opção de…
-
0
votes1
answer1402
viewsFinish process by . bat whenever it is started
Good morning! Every time I start the computer beautiful process GWX.exe (the famous process Install the Win10) is executed, it is necessary to go to the Task Manager and finish it. So I created a .…
-
0
votes1
answer1375
viewsHow to upload data to CSV in oracle SEM SQL Loader?
Data from a table was exported in a CSV file and I would like to import it into a table in the Oracle database. But I need it to be without the sqlldr command. Because this load will be done in…
-
0
votes1
answer132
viewsProblems with Batch Backup and Specific Software
I have two problems with backups performed in different ways (they are separate and independent solutions), the first is a "batch" (BAT file) and the second is with SEAGATE DASHBOARD backup software…
-
0
votes2
answers2454
viewsA. bat file that changes the background color according to the number the user entered
The code below should change the background color after the user enters a number from 0 to 7, but the program closes right after the user enters the number and does not change the color. I’m using…
-
0
votes0
answers924
viewsCreate . exe or . bat to open file as another user
How do I create a file to run a .exe with another user, with user values and password set. Ex: user:max.rogerio and password: 123456 I tried to use the run as but every time it starts windows he…
-
0
votes2
answers1720
viewsHow to put . vbs inside . bat
I’m putting together a project and I couldn’t put up the file .vbs within the .bat. criminal record.bat: @echo off :Menu cls…
-
0
votes1
answer546
viewsAbort script without closing bat
A PHP script generates a file .bat and then runs the same, the problem is that I do not want my PHP script to be expecting such .bat finish running. I just want it to run, create and run the bat and…
-
0
votes2
answers213
viewsHow can I continue a BAT on a new profile after restarting
I have seen many sites teaching you how to continue a BAT, but this occurs in the same profile. In my situation I need it to be started in another profile, include when restarting Windows, a new…
-
0
votes1
answer140
viewsProblem with comma cmd
C:\Windows\system32>wmic /node:"BR1102013" /user:"vedadmin" /password:"i@M}r43/3g%s,L;" product get name , - Alias not found. Can someone tell me why I can’t use the comma and how to fix it?…
-
0
votes2
answers107
views.bat that deletes the file name leaving only what is inside ()
I have a file like this: blabla_(29ago2017)_blabla I need you to stay like this: (29ago2017) Is there any code in . bat that does this job for me, ie just leave what is inside parentheses as file…
-
0
votes1
answer55
viewsDo not specify the path to a batch file
To open a file on my computer, just put the path. C: Users Desktop example But if I were to, for example, create a batch for another computer, assuming there is a folder on the desktop called…
-
0
votes1
answer597
viewsSave the value of a variable on the outside and then import it in Batch
If I create a variable like this: set /a EXEMPLO=1 "EXAMPLE" is worth 1, can I save this information to the outside environment (in a file) and then import this value back to the same command? So,…
-
0
votes1
answer356
viewsBatch file to create another batch file
Is it possible for a batch file (EXEMPLO1.bat) to create another batch file (EXEMPLO2.bat) already programmed? Where I determine EXEMPLO2.bat programming within EXEMPLO1.bat.
-
0
votes2
answers4905
viewsHide a running app or bat
I want to call an app through the bat and hide from the tray wrote the script @echo off/hid star/min 'NOME DO APLICATIVO' exit saved as start.bat>>> but when I run it starts the app hides…
-
0
votes0
answers1123
viewsFind File and Replace Word in XML or TXT
Hello, I have to create a DOS (Windows) command line script, which locates one or several files. xml that are located in a certain directory and change a value of a tag, this tag can be fixed, IE, I…
-
0
votes1
answer724
viewsBatch with parameters in Sqlplus
Hello, I need to create a batch file that drops the database user, recreates and imports the database with an existing backup. I have already created a routine that drops in the user and recreates…
-
0
votes1
answer524
viewsHow to put space before the SET/P variable in Batch?
I intend to set the variable in the middle of the screen, but I can’t place it! |____não_funciona____|set /p variável=um |____funciona____|%variável% Thanks in advance!…
-
0
votes2
answers524
viewsProblem with batch "set" command
Good afternoon. I was doing a very simple programming, in general, serves simply to put the numbers that the user put (10 numbers) in ascending order, but something strange happens already in this…
-
0
votes2
answers50
viewsProblem with batch comparisons
Good afternoon. I was making a simple batch file, in general, a friend of mine needed me to do that puzzle of 3 gallons of batch water (8, 5 and 3 liter gallons) In general the batch logic is very…
-
0
votes0
answers839
viewsDownload files directly on CMD
After a lot of research, I found a way to download directly through CMD, without the need to open some external program, however, I wanted to put a progress bar, or at least display the file…
-
0
votes1
answer1024
viewsScript for postgres bank
I created this script to clear the bank table and reset id's. It works, but not in the right way It runs and authenticates on psql. but instead of running the commands sql it only opens the psql. If…
-
0
votes1
answer251
viewsRestore Postgre . BAT
I’m making a .Bat for Backup and one for Restore of a bank in Postegresql, the .Bat Backup works perfectly, however, Restore gives problem by database owning data. Would have some way to start the…
-
0
votes1
answer619
viewsBatch File to access multiple directories and run python script in different command prompts
Hello everybody all right? I’m trying to create a bat file to run python scripts in different directories, something like that: C:\Test | --- Test1\example.py | --- Test2\example.py | ---…
-
0
votes1
answer1501
viewsRun python code via batch in the anaconda cmd
I have a batch created to run a python file, but it is opening the windows cmd and since python is installed in anaconda, does not work, it would run directly from the anaconda cmd as administrator?…
-
0
votes1
answer715
viewsHow to list only document name and date using dir command?
How to generate a csv file listing only the name and date of the files within a given directory. Since there is no option in the command dir, that generates me an output with only this data. Most…
-
0
votes1
answer422
viewsEdit text file in cmd
I have a test.txt file D:\Tools\fonts D:\Tools\gui D:\Tools\guitex D:\Tools\table is there any command that edits the test.txt file to be this way? command###D:\Tools\fonts command###D:\Tools\gui…
-
0
votes1
answer933
viewsLogging a batch file
I have the following problem: We receive a daily backup of the database from 4AM to 5AM, and we have a batch job running at 6 AM to get this database running on a VM. In Task Scheduler, everything…
-
0
votes1
answer390
viewsbat script to restart onedrive. Does it work?
The scenario is that I have some computers without user interaction where I use the Onedrive to back up at dawn With some frequency the Onedrive lock, so I decided to make a bat, very simple, to…
-
0
votes2
answers62
viewsMinificar batch
Is there any kind of batch command or software to minify files .batch ? Just like exists with Minify to minify files .js or .css
-
0
votes1
answer1161
viewsHow to find a file without specifying folder/drive in bat or moon?
How to find a file and save it in a variable? I will use it for reading (this part is already solved), however, I want to locate without specifying folder/drive, for example .\Arquivo.txt. I’ve…
-
0
votes0
answers901
viewsBatch script to delete file according to a set time
I am in need of a batch that deletes specific files from a backup folder after the files are 30 days old (example). I found this code but it uses an external program: @echo off move c:\TESTE\*.*…
batchasked 5 years, 8 months ago Eder Silva 79 -
0
votes2
answers331
viewsScript vbs to restart a service if it is "stoppered"
I created a vbs script to restart the service if it is stopped. However it does not work, I tried to do a by . bat more without including in the schedules tasks. Set objWMIService =…
-
0
votes1
answer59
viewsBatch Script to Restart Anydesk Service
I need to create a batch scrpit that records the status of Anydesk in a time variable, and if it has the status 'offline' it restarts the Anydesk service. Example: @echo off for /f "delims=" %%i in…
batchasked 4 years, 5 months ago Eder Silva 79 -
0
votes1
answer37
viewsWhat are the advantages of using Jenkins to run processes in the background?
I’m having contact with a web system where they use Jenkins to execute processes in the background, in this case, queries to generate reports. The user makes the request and the processing is done…
-
0
votes2
answers223
viewsxcopy does not find the destination files
I am developing a batch program that allows capturing xml files stored locally on other computers within my network, to capture these files I am using the xcopy command, however it does not locate…
batchasked 5 years, 2 months ago user162404 1 -
0
votes1
answer122
viewsProblem when trying to get CPU temperature using WMIC
I’m creating a program for Windows and need to get the user’s CPU temperature. For this task I am using the wmic with the following code in batch: @echo off for /f "delims== tokens=2" %%a in ( 'wmic…
-
0
votes1
answer171
viewsConcatenate . html files into a . htm with Powershell
So, I need to concatenate thousands of . html files to just one . htm, there’s already a file. batch that does this for me, using the following code: #type *.html > output.htm @echo off for /r…
-
0
votes2
answers140
viewsBatch counter
I am trying to get the lines of a tmp.txt file set n=0 echo %n% for /F "tokens=*" %%l in (tmp) do ( set d[%n%]=%%l set /A n+=1 ) echo %d[14]% but when I execute: 'echo %n%' -> '25' and 'echo…
batchasked 3 years, 7 months ago Bruno Trócolis 51 -
0
votes1
answer345
viewsIF to set default printer via batch
We are redesigning the machine park here of the company and the new machines came with Windows 10, unlike the Windows 7 that we used before. The first problem we had was with the way Windows 10…
-
0
votes1
answer516
viewsHow to set variable using substring in batch code (Windows CMD)
Talk to you guys, I am trying to generate a code seeking part of the service name in Windows to set in a variable (ORACLE_SID). I need to search the service Oracleservice. Next to the name has the…
-
0
votes1
answer27
viewsWhat chcp are there or how do I know which ones I have?
I’m seeing a little bit about batch, and I’d like to know which pages of code there are or where to find them. So far, I have found the following CHCP using a bruteforce script set var=%1 :loopset…
-
0
votes0
answers18
viewsBean Jsonitemreader, xml configuration
My Reader will read a json that comes from a Rest api. The project is configured in xml, IE, the settings are in an xml file, where are the other Beans. I found in the documentation, a bean that…