Questions tagged as 'batch'

2
answers

How to close a .bat file with another .bat file

I have a .bat file running this code: cd C:\Users\PC\Desktop\nginx-1.10.2\php php-cgi -b 127.0.0.1:9000 But it needs to be open while it is being used. Is there any way to create another .bat to close this one? Thank you.     
asked by 07.12.2016 / 12:42
1
answer

How to load data in CSV in Oracle SEM SQL Loader?

The data in a table has been exported to a CSV file and would like to import it into a table in the Oracle database. However I need it to be without the sqlldr command. Because this load will be done in Java, and I have restrictions on using SQL...
asked by 04.01.2017 / 11:05
1
answer

How to create a windows environment variable

I need to create an environment variable in windows, through a batch. Can I create a local variable with set variavel=valor But I need to access this value through other batch. how do I create a windows variable?     
asked by 30.12.2016 / 14:10
1
answer

Edit txt file by bat

I have the following problem: In a Windows directory, I have 3 .txt files that are automatically created every day. Inside them there are several lines with information. I want to delete two lines that are always repeated in all .txt...
asked by 13.07.2016 / 14:45
1
answer

Batch to locate a subfolder, move all files to a level above, and delete the folder

I have this structure: .. ..\FolderA\FolderX\File1.txt ..\FolderB\FolderX\File2.txt ..\FolderC\FolderD\FolderE\FolderX\File3.txt I need a batch that will locate all the "FolderX" folders in the subdirectories and move all th...
asked by 10.11.2015 / 15:48
1
answer

How to program a time to automatically shut down the computer with a batch file

I'm following a tutorial from the Super User site of the Stack Exchange site network, with the idea of programming the my computer to auto-shut down by passing X time, after running or double-clicking a .bat file, instead of usin...
asked by 01.11.2015 / 23:38
2
answers

Script /.bat to kill certain process on all logged-in users on the computer

Good people, my problem is this: I have a process called gdc.exe . If a user has this process open and another user logs on to the machine and tries to run the program that generates this same process, it can not open the program. I need a...
asked by 04.02.2015 / 18:48
3
answers

Doubts with conditional commands in BATCH files

What am I doing wrong? cls @echo COPIANDO ARQUIVOS JPEG for %%f in (*.*) do ( if %%f equ *.jpg ( copy %%f "C:\Users\anezio\Desktop\Nova pasta (2)\imagem" ) else ( copy %%f "C:\Users\anezio\Desktop\Nova pasta (2)" ) ) pause     
asked by 25.11.2014 / 18:19
1
answer

Windows Ping should return only the response values of the packages

I am making a script as a ping command and I want to get only the response from packets sent and received, so far I can only put the ping media using this variable: for /f "tokens=* delims= " %%i in ('ping -n 4 172.16.7.144^|find "ms"') do set...
asked by 01.12.2014 / 21:00
0
answers

Test a port and capture a batch test response

I would like to know if it is possible for me to run a test to know if a port is open, as with the telnet command, but to get a response like ping that can trigger another action with errorlevel 1 or 0. Thanks in advance.     
asked by 06.11.2018 / 00:43