Questions tagged as 'batch'

1
answer

How to automate the file name in bat file

The following code opens a db file (sqlite language) and exports the resulting query to a file on my desktop. Up here all good. What I want is for the file name to be different every time the batch is executed. sqlite3 -cmd ".headers on" -cmd...
asked by 30.08.2018 / 17:43
1
answer

How to Perform an Automatic BackUp in MySQL

This script I have advanced but I do not know why it does not work for me, do not place the error if someone can help me? @echo off mysqldump -h localhost -u root -p Dotado256 sixstar_almacen > AlmacenBeta _ 19082018.sql Pause Use...
asked by 19.05.2018 / 22:49
1
answer

Update value within a for batch

I want to update a value of a variable in a program in batch , my problem is that when I do it inside the main function , the value is not updated, if I pass that value to < em> another function the value is updated but when I return it...
asked by 04.01.2017 / 17:42
0
answers

CMD - Batch with FTP - Error raising excels (.xlsx) [closed]

The .bat uploads the file but it seems to corrupt it, it marks me that it uploads correctly and I check in the FTP and in fact I see that it has been uploaded but when opening it (downloading it to the PC or opening it with a php library) it say...
asked by 25.04.2018 / 17:18
1
answer

Simulate Enter in Batch

I have a script that automatically downloads the backup of an S3. The bad thing is that it asks for a confirmation with an enter after entering the password so it is not 100% automatic. Does anyone know if there is any way to simulate an enter?...
asked by 02.05.2018 / 16:55
2
answers

Run this query from .Bat

Hello, would you like to help me? Thank you, I have the following query: CREATE DATABASE almacen; which I want to execute through a Bat, I thought of something like this: @echo off echo --test >crear.sql echo CREATE DATABASE almacen1;&...
asked by 18.06.2018 / 08:44
2
answers

Convert Windows path to Linux path

I am using .bat and .sh from Windows with CMD and Git Bash respectively. The problem is that I need to convert a path with Windows format C:\Desktop\install-new-cashier to UNIX format to be read from the .sh that I...
asked by 22.07.2017 / 02:39
1
answer

Pick up windows services fulfilling 2 conditions

I need to keep running windows services, except when doing maintenance work, since it is the only time where you define startup type = manual and the service is stopped. So far I have this code, but I can not detect that the "startup type" is...
asked by 10.05.2017 / 20:50
1
answer

Execute a .jar file from a batch script

It turns out that in the CMD it allows me to execute the following command: C:\Users\Kevin\Desktop\Codigo\LibGDX\libgdx-nightly-latest\java -cp gdx.jar;gdx-natives.jar;gdx-backend-lwjgl.jar;gdx-backend-lwjgl-natives.jar;extensions\gdx-tools\gd...
asked by 02.05.2017 / 15:20
1
answer

Comparison in bat file cmd

I'm trying to make a comparison using the IF () where I compare the current month and assign its name but I can not print the results of the variables This is the code I have @echo off SET FOLDER=%Date:~0,2%-%Date:~3,2%-%Date:~6,4%-%time:~0...
asked by 30.10.2018 / 15:37