Questions tagged as 'batch'

1
answer

Erase an executable file (.exe) after finishing without knowing its location?

The bat file has been converted into an executable. The del "%~f0" command does not work! Will it be necessary to finish running the executable first taskkill /f "nome_do_executável.exe" and then delete it? Question: - How to l...
asked by 03.04.2018 / 15:30
1
answer

Create a Scheduled Task in Windows XP 32-bit

I want to create or modify a task by command line, this on the same machine. I'm using the Schtasks command with argument /Create . But I got only in Windows 8 when I took the BAT for the machine Windows XP (32-bit) did not...
asked by 22.03.2018 / 21:58
1
answer

Why is not my Menu working?

I'm creating a batch box to run a 1-line script that merges all text files into 1 only. But I do not understand why the routine is not working. Setup Batch Code@echooff:MenuEcho.Echo1-ComboMergerEcho.set/pop=Escolhaumaop‡Æo:GOTO:eofEcho...
asked by 16.09.2017 / 06:27
1
answer

Searching and Separating Files Using .bat

   I have a daily / monthly process where, I have a .txt that has a list of about 10,000 file IDs (one ID per line) (example_contact_file.txt)    {   12345   23456   34567   45678   56789   } Each (eg 12345) file ID of the .txt...
asked by 10.05.2017 / 20:28
1
answer

Check mapped network drive size

I'm developing an application, and I need to check the free space on the mapped network drive, I can grab the contents of a file in the directory of my application, then I created a script to execute the command to check the free space in bat...
asked by 13.04.2017 / 21:38
1
answer

C ++: Compile using Batch

I'm using cmd to program, and I want to make a batch file that automates the build process. I want it to compile the files using the g++ -c ./scr/Nome.cpp -o ./obj/Nome.o -std=c++1z This should be done for all the .cpp files that hav...
asked by 07.08.2017 / 05:34
1
answer

Create bat to move files returned by findstr

Good afternoon everyone! I have encountered a problem every day where, I have several .xml to open and check if they have tags: < desc_produto >Riscos< /desc_Produto >" or < tp_mov>P01< /tp_mov> To do this, I...
asked by 24.04.2017 / 17:09
2
answers

Increase Performance Bat

I currently have a .bat that runs copying network files from one server to another. This made a lot of work easier for me that was done manually, but I noticed that by removing some .bat flourishes, it improved its execution performance on file...
asked by 12.05.2017 / 21:30
1
answer

HOW TO PLACE .vbs within .bat

I'm setting up a project and I could not put the file .vbs inside .bat . cadastro.bat : @echo off :Menu cls echo.ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo.º...
asked by 16.03.2017 / 23:39
1
answer

Check file date and time and keep the most current in Batch

I need a program in Batch where I will specify two files, it will compare the date and time of the creation of the same and if the first one is more current it would delete the second and copy the first, otherwise it will not do anything .     
asked by 16.06.2017 / 22:46