Questions tagged as 'batch'

1
answer

How to send special characters by CMD to a file?

I want to send the > character to a file via CMD but I can not. The following example illustrates my difficulty: echo casa > cidade > Estado >Arquivo.txt In the above example you should write the phrase " home> city " in th...
asked by 24.08.2016 / 02:20
1
answer

How to create .BAT to rename multiple files in multiple folders by inserting creation date and time?

Does anyone know how to create .bat to rename multiple files in multiple folders by inserting creation date and time, not the current date? Example: Nome Data e hora de Criação SCP Dados.mdb 03/0...
asked by 09.08.2016 / 18:58
2
answers

Windows Ping should return only the response values

I am making a script and need Ping or Fping in windows to return only the time values, without ms , type: ping 8.8.8.8 Disparando 8.8.8.8 com 32 bytes de dados: Resposta de 8.8.8.8: bytes=32 tempo=29ms TTL=58 Resposta de 8.8.8.8: bytes=32...
asked by 04.05.2014 / 22:09
3
answers

Is there any way to run batch files during the build of a Maven project?

I have a .bat file that performs some prerequisites during the build of my Maven project. I want to run this .bat file automatically when I build the project I developed Is there any way to accomplish this task with Maven?     
asked by 18.02.2014 / 15:10
1
answer

Creating run-time bat and process in delphi

I have two functions that create a file bat and execute it, but I just can not create the process ( CreateProcess returns False ) and I can not identify the error. I use Windows 7, 64-bit. Should I change some parameter in...
asked by 29.03.2015 / 05:20
1
answer

How to create a .BAT configuration file in windows?

I am automating some processes on a Windows server, and I would like to create some .bat files for this, but for that it would be necessary for the .BAT to be read from a configuration file so I did the following: file get.bat: @echo off set...
asked by 23.07.2015 / 15:13
2
answers

As I verify if a windows service is installed, if it is to start the service via batch file

I need to run a service for some processes, but first I need to verify that the service is installed. The commands I use to install and uninstall are as follows: %DIRServico%\SERVICO.EXE /INSTALL %DIRServico%\SERVICO.EXE /UNINSTALL If I...
asked by 13.04.2017 / 16:55
1
answer

Create database via command line and overwrite existing

I have a function (Delphi) that creates processes and executes BAT files that do, for example, backup of a MySQL BD, like this: "C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqldump.exe" -u root -proot BD > "C:\dbbackup.sql" Is there a...
asked by 02.06.2015 / 03:36
3
answers

BATCH SCRIPT - Automating login to sites

I have the goal of creating a .bat file that automates my login to a particular site. I can open the site with .bat via the start chrome.exe "myite.com" command, and I would like to know how to create a script that double-presses the TAB ke...
asked by 11.06.2015 / 16:43
1
answer

What is DelayedExpansion and why is it not enabled by default?

Generally when creating a batch that uses any block of code, such as loops for or if , we end up going through this problem and then we discover the need to set EnableDelayedExpansion . Codes like this generate errors at ea...
asked by 22.02.2017 / 13:48