Questions tagged as 'batch'

2
answers

Problem with batch comparisons

Good afternoon. I was doing a simple batch file, in general, a friend of mine needed me to make that riddle of the 3 gallons of batch water. In general, the batch logic is very simple, however it has a problem in the comparison, where there is t...
asked by 30.04.2018 / 21:31
1
answer

Do not specify the path to a batch file

To open a file on my computer, just put the path. C: \ Users \ User \ Desktop \ example \ example2.txt But if I am to create a batch for another computer, assuming there is a folder on the desktop called "example" and a file inside it called "ex...
asked by 19.11.2017 / 03:40
1
answer

Put exceptions in the proxy by batch

@echo off REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d 172.16.7.200:3128 /f...
asked by 23.01.2015 / 16:23
1
answer

ping ping command

I need to make a .bat which when executed start the command of ping . But I need to "ping" several IPs automatically and in case of a certain IP does not respond, that it presents a message and then later asks to press a key to c...
asked by 23.02.2015 / 20:57
1
answer

edit text file in cmd [pending]

I have a test.txt file D:\Tools\fonts D:\Tools\gui D:\Tools\guitex D:\Tools\table is there any command that edits the test.txt file to be this way? command###D:\Tools\fonts command###D:\Tools\gui command###D:\Tools\guitex command###D:\Too...
asked by 19.12.2018 / 12:18
1
answer

Insert variable in script

I have the following script working normally @echo off if %time:~0,8% LEQ 11:59:59 goto manha if %time:~0,8% LEQ 17:59:59 goto tarde if %time:~0,8% LEQ 23:59:59 goto noite :manha echo "BOM DIA" Pause :tarde echo "BOA TARDE"...
asked by 25.09.2018 / 15:26
1
answer

Script for postgres database

I created this script, to clear the table from the bank and to clear id 's. It works, but not the right way It runs and authenticates on psql . but instead of running the sql command it only opens psql . If someone has an exit alr...
asked by 13.06.2018 / 22:12
1
answer

Save current date -X days in a variable

I have a folder that saves thousands of log files daily and when it is necessary to search for a file by date and time it is a sacrifice. I have a folder that I want to save to the folder where I want to save the current files. I have to do a...
asked by 26.04.2018 / 23:01
2
answers

Hide an app or bat that is running

I want to call an application through the bat and hide from the tray I wrote the script @echo off/hid star/min 'NOME DO APLICATIVO' exit I saved it as start.bat > > > > but when I run it starts the app hides the cmd minimizes th...
asked by 19.02.2018 / 17:04
1
answer

Clear only one line from a batch file

My question is whether there is any way to delete just one line from several. For example : The command prints three numbers on the prompt screen: echo 1 echo 2 echo 3 And then, it just deletes the printed "2", and the other two numbers a...
asked by 03.12.2017 / 17:48