Questions tagged as 'batch'

1
answer

Find keyword in file type "Lookup table" in DOS

I am trying to create a batch script (Windows console) that analyzes a flat text file style "lookup table" which contains a series of lines in "PALABRA_CLAVE VALOR" format. I have problems checking with the command find or findstr if...
asked by 22.03.2018 / 10:07
2
answers

Create batch to browse folders dynamically

I have a strange problem with a BAT file in Windows and I'm not sure what's happening. I have created a bat file to go through the folders that I indicate by parameters. In the bat folder, I have an app folder and I want to get all the file...
asked by 20.02.2018 / 16:03
1
answer

execute C program from .bat file

What I want to know is if you can run a C program and give the program entries through the same .bat file for example a program that adds 2 numbers what I do in the code below is compile it and generate a. exe that is called add then in the foll...
asked by 23.10.2017 / 08:54
2
answers

Use value of a variable in batch command

What I would like to do is to insert a variable in a command such as RENAME . The goal is to change the name of the file to the current time and date. This is the code I have tried to use (so that they understand my intention): SET nombre=%ti...
asked by 03.08.2017 / 13:57
1
answer

Delete the first line of a csv or txt file

I thank you in advance: In a file called crear mlt that is located in a root folder    "C: \ Python27 \" from which I can not move this file when creating CSV or TXT extension files within it, a line that hinders is created, whi...
asked by 25.12.2016 / 21:48
0
answers

Remove duplicates in a Csv batch file

I have the following code, it works fine but if it contains in some line the following character ! ends up deleting all the information or leaving it wrong Example of input of the Csv file. Column 1 Column2 Column3 Hello...
asked by 05.12.2018 / 21:55
0
answers

Add records to the database with JAVA and batch

I have the following code in a class called BD , import java.io.FileNotFoundException; import java.io.FileReader; import java.io.BufferedReader; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import...
asked by 06.09.2018 / 15:16
1
answer

Edit text in file with batch

I have to replace a line within a txt with batch and I need help with the code ... I have the files test.txt and test2.txt the objective is to move from file 1 to file 2 with the same content unless it contains a specific word, in which case, th...
asked by 10.07.2018 / 03:35
2
answers

Failed to move folders

I was creating a series of batch files to sort the files in my computer, which is always a mess. Everything works great for me except one thing, moving the file folder of the html. echo off color 0a set elementos=11 :loop set /a resultado=%...
asked by 06.07.2018 / 15:11
1
answer

Open and close files from .bat file

With the following .bat I can open a text document and make it close in a few seconds: @ECHO OFF START "" notepad.exe "%USERPROFILE%\Desktop\Documento de texto.txt" TIMEOUT /T 5 > NUL TASKKILL /IM notepad.exe PAUSE EXIT How c...
asked by 26.06.2018 / 19:16