Questions tagged as 'cmd'

1
answer

How to remove a directory in Windows even though it is in use?

I have a database service running in a directory known as C:\meuBanco\exe\ and now I have developed an updater of this service, which performs the following steps: For service Deletes the exe folder: rd /s /q %DIRSERV%\exe...
asked by 11.04.2017 / 19:11
2
answers

Find directory name of a .bat file

I have a .bat file that does some iterations via cmd across multiple directories. My problem is this: I need to be able to get the directory of the .bat file itself to keep coming back to it for other iterations. An example would be: :e...
asked by 29.08.2018 / 14:25
1
answer

How to execute more than one command with wait in a .bat file

I searched around here and found no way to do that. In summary I need to create a .bat file and execute 3 commands: 1. Open a directory ( cd ); 2. Run ( npm i ); after completing the above task 3. Run an .j...
asked by 20.07.2018 / 15:34
2
answers

How can I kill a process as a windows administrator user?

I'm having port 8080 being used by a mysterious process. I used the    taskkill -f -im 2412 And I get the message:    ERROR: Process with PID 2412 could not be finalized. Reason: Access   denied.     
asked by 09.05.2018 / 16:03
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

Exit a program c via CMD

In the following code, when I press 9 the program should exit: case 9: exit(0); After pressing 9 the screen below in the cmd is displayed, but after pressing 9 the message: Press to close this window ... and it is necessary to click a ke...
asked by 16.11.2017 / 23:30
1
answer

Access device via CMD

How to access the internal android folders using the cmd CD command. ex: My Computer \ Redmi 4X \ Internal Storage     
asked by 05.10.2017 / 23:41
2
answers

use variable in cmd command with python

I wanted to make a program that opens and reads a text file. Then run or command in cmd using what he had read in the text file something like this: import os nome = open ('nome.txt') nome1 =nome.readline() nome.close() comando...
asked by 12.02.2017 / 23:02
2
answers

Generate backup of a PostgreSQL Server with password via command line

I need to automatically back up a PostgreSQL server, I have a command that does this backup but it always asks me for the password and I did not find a command where I can already determine the password of the database already in Script . The c...
asked by 03.01.2017 / 17:04
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