Questions tagged as 'batch'

1
answer

Make sort of SELECT with condition IF NOT EXISTS

I want to make a script that only copies a file once if it exists. There is no copying or creating but if or if in .bat (Batch) the file is called: TestBackUp.rar is in the hard drive at the following URL C:\BackUP\TestBackUp.rar I w...
asked by 18.11.2017 / 02:27
1
answer

Insert data from SQL server to struts2

Hello good night everyone, I explain my problem I'm making an insert to my table: but this is what is stored in the bd: The result I'm looking for is a lot of this: I provide my entity class: public class CoordenadasP { Str...
asked by 26.10.2017 / 04:01
0
answers

How to run an Update in .bat file

I'm trying to generate a bat file, where you enter my postgres database and run an update referenced to a SET, I enclose my sentence @echo off set /p OPERACION=¿CUAL ES EL NUMERO DE OPREACION QUE DESEAS HABILITAR RESPUESTA?: cd C:\Program F...
asked by 28.09.2017 / 15:41
1
answer

How to execute a batch process in Azure with PAAS (without using VM)?

How could a batch (* .bat) process run on Azure without using VMs or servers, only PAAS or SAAS services? It is about extracting a CSV file from an SFTP server visible from the Internet, taking it to some storage in the Cloud and then process...
asked by 04.07.2017 / 22:52
2
answers

BATCH: Count the folders inside a directory and return them in a variable

I need a Batch file ( .BAT ) that reads all folders in a directory (not counting the subfolders) and returns them in a variable.     
asked by 05.05.2017 / 19:30
1
answer

How can I use Space (Spacebar) in the "CHOICE" command

I NEED A SCRIPT FOR THE COMMITTEE TO 'CHOICE' DETECT THE SPACE KEY I am making a programming language the program of this new language I am doing with batch. I know it is not the best but I am very advanced in that "language" Unfortunately I...
asked by 20.04.2017 / 03:29
1
answer

Syntax error with the following batch script

I'm doing a script that will make a bootable usb from some files and has several options, but it does not work for me, and because I do not know the language very well, I think I have more than one and more than two syntax problems, to see if so...
asked by 15.11.2017 / 10:28
2
answers

How can I delete all folders named "xname" within a Disk?

Good morning. I want to delete all the FOLDERS of the same NAME and SUB-FOLDERS of the SAME NAME (Excuse redundancy) of a hard drive of 2 petabytes but obviously there are too many FOLDERS to review. The name of the folder is "namex". It is i...
asked by 25.05.2018 / 22:22
1
answer

BAT or CMD script that downloads file and executes it

I need to create a .bat or .cmd that downloads a file from the internet and after the download executes it, but I do not know if this can be done and if possible that it should contain the file. I started trying this: @echo of...
asked by 21.12.2018 / 16:36