Most voted "cmd" questions
Command Prompt (cmd.exe executable name) is the command line interpreter provided by Microsoft on OS/2, Windows CE, and Windows NT operating systems (including Windows 2000, XP, Vista, 7, Server 2003, and Server 2008).
Learn more…266 questions
Sort by count of
-
0
votes1
answer1293
viewsHow to use netstat command?
I am testing on my local computer a java application, but I can’t get my application up because port 8080 is being used by some service that I don’t know which is. How do I know which service is…
-
0
votes0
answers470
viewsCMD File and Task Scheduler
Use the system Windows Server 2008, and need to execute a cmd for agendador de tarefas, but when I do the task, it only executes the cmd but does not execute its content, someone would know how to…
-
0
votes1
answer597
viewsSave the value of a variable on the outside and then import it in Batch
If I create a variable like this: set /a EXEMPLO=1 "EXAMPLE" is worth 1, can I save this information to the outside environment (in a file) and then import this value back to the same command? So,…
-
0
votes1
answer356
viewsBatch file to create another batch file
Is it possible for a batch file (EXEMPLO1.bat) to create another batch file (EXEMPLO2.bat) already programmed? Where I determine EXEMPLO2.bat programming within EXEMPLO1.bat.
-
0
votes1
answer2338
viewsPython executable problem generated by pyinstaller
I made a simple software in python with graphical interface. I built it with pyinstaller and while trying to open the generated executable, the windows command prompt is also opened every time. I…
-
0
votes1
answer31
viewsProblems trying to list csv
Hello, I am trying to read the csv type files from a folder via script. via browser it presents me the correct values of the array, but via CLI it presents me an empty array. Follow the code $files…
-
0
votes0
answers200
viewsWould it be possible to open a cmd window via php via web?
I am using the following code below: $wShell = new COM("WScript.Shell"); $exec = $wShell->Run("notepad.exe", 7, false); exec("C:\inetpub\wwwroot\boxlabel\box_bat.bat") or die (""); I’d like to…
-
0
votes2
answers50
viewsProblem with batch comparisons
Good afternoon. I was making a simple batch file, in general, a friend of mine needed me to do that puzzle of 3 gallons of batch water (8, 5 and 3 liter gallons) In general the batch logic is very…
-
0
votes2
answers524
viewsProblem with batch "set" command
Good afternoon. I was doing a very simple programming, in general, serves simply to put the numbers that the user put (10 numbers) in ascending order, but something strange happens already in this…
-
0
votes2
answers2434
viewsHow can I kill a process as a windows admin user?
I’ve got the 8080 door being used for a mysterious process. I used the command taskkill -f -im 2412 And I get the message: ERROR: process with PID 2412 could not be finished. Reason: Access denied.…
cmdasked 6 years, 6 months ago alexjosesilva 3,119 -
0
votes0
answers839
viewsDownload files directly on CMD
After a lot of research, I found a way to download directly through CMD, without the need to open some external program, however, I wanted to put a progress bar, or at least display the file…
-
0
votes1
answer3215
viewsError creating an application with create-React-app
I installed the create-React-app all right, but when tried to create a project using the command create-React-app hello-world of the following error:…
-
0
votes1
answer1181
viewsHow to set . exe compatibility mode by prompt?
I’m creating an application in Lectron, but notifications only work if the application is running in windows 7 compatibility mode. I currently ask the user to right-click the . exe, go to…
-
0
votes1
answer251
viewsRestore Postgre . BAT
I’m making a .Bat for Backup and one for Restore of a bank in Postegresql, the .Bat Backup works perfectly, however, Restore gives problem by database owning data. Would have some way to start the…
-
0
votes1
answer405
viewsHow to run and capture a command line output in C#
Guys, here’s the deal. I have an app that works on a command line. This application takes parameters per command line, e.g.: program.exe [parameters] I want to make an interface where I run this…
-
0
votes2
answers852
viewsError running mobile app
When executing react-native run-android gives the following error: FAILURE: Build failed with an Exception. What Went Wrong: Execution failed for task ':app:mergeDebugResources'. Error:…
-
0
votes1
answer2444
viewsList installed print server printers from a remote station
I work in a company that has the following structure: Each city of my state has a headquarters with a server that is also print server, in it are the printers of this headquarters. I use the psexec…
-
0
votes1
answer715
viewsHow to list only document name and date using dir command?
How to generate a csv file listing only the name and date of the files within a given directory. Since there is no option in the command dir, that generates me an output with only this data. Most…
-
0
votes1
answer422
viewsEdit text file in cmd
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…
-
0
votes3
answers2698
viewsUsing 2 versions of Java
My company uses a maintenance-free application that I can’t change, it runs with Java 6.0.17, however in all other applications newer versions of Java are required. As a solution I made a file .bat…
-
0
votes1
answer56
viewsDoubt of execution javac in cmd
Hello, I’m starting now in Java and wanted to know how to compile . java in . class in a direct way. I can run the javac in cmd but I do so: cd C:\Local\ javac HelloWorld.java But I’d like to know…
-
0
votes1
answer390
viewsbat script to restart onedrive. Does it work?
The scenario is that I have some computers without user interaction where I use the Onedrive to back up at dawn With some frequency the Onedrive lock, so I decided to make a bat, very simple, to…
-
0
votes1
answer99
viewsI cannot compile a Java class which instance is another Java class
Here’s the thing, I have two classes: Account.java and Program1.java the idea is for the Program1 class to create an Account instance and use it within the program but I’m not able to compile the…
-
0
votes1
answer265
viewsProblem with punctuation and space when running CMD via C#
I have a program in C# that uses a button to execute a command on the CMD. This command is used to take a database on a server and put it on the machine in a path you choose(Mysqldump). private void…
-
0
votes1
answer1968
viewsChatterbot installation error
I’m trying to install the chatterbot but am getting the following error: Command "python setup.py egg_info" failed with error code 1 in C: Users Mariana Appdata Local Temp Pip-install-r5apde_f Blis\…
-
0
votes1
answer59
viewsLibrary #include <Hsffi. h>
Hello, I am integrating a system based on C with Haskell, but I need the library #include , the content I found on the internet has not helped me in almost anything, if anyone knows something…
-
0
votes1
answer1161
viewsHow to find a file without specifying folder/drive in bat or moon?
How to find a file and save it in a variable? I will use it for reading (this part is already solved), however, I want to locate without specifying folder/drive, for example .\Arquivo.txt. I’ve…
-
0
votes2
answers142
viewsIs there any way to make the "Curl" program to pause print the information on the screen?
For example, when I call the help menu in the Windows CMD terminal, "Curl --help", comes a rain of information on the screen, getting pretty bad to track reading.
-
0
votes2
answers1092
viewsI can’t sync my windows clock
I installed windows yesterday(2019-08-16), and the time of the OS appears 3 hrs ahead, I try to synchronize and nothing. Type in the CMD >w32tm /resync /rediscover Enviando comando resync para o…
-
0
votes2
answers1659
viewsMongodb, mongod does not execute on cmd
I’m trying to run Mongodb 3.2 on a 32-bit Windows7 machine, but I’m having trouble running the command mongod in cmd, when I use the command it returns the following error:…
-
0
votes1
answer247
viewsSet environment variables via shell_exec php
I need to make a php script to change/create the value of a windows environment variable shell_exec("setx VAR_TEST '2' /M"); The command runs but does not change the value of the variable, I run…
-
0
votes2
answers258
viewsHow to validate if a login is valid inside . bat
Dear I have the following script that allows only digits up to 07 characters, the same being letters only. Is it possible for some validation to accept certain logins ? For example I just want to…
-
0
votes3
answers280
viewsRun cmd command with CD
I’m looking to execute a specific command of composer update by cmd. However, I always need to access my api folder with cd to execute such. Example: C:\Users\Luiz>cd api…
-
0
votes0
answers4459
views'. ' is not recognized as an internal or external command, a operable program or a batch file
When I try to use the remote ./configure in windows cmd to install freetds I get the message '.' is not recognised as an internal command or external, a operable program or a batch file.…
-
0
votes1
answer472
viewsPentaho - Error running bat by Windows Task Scheduler
Follows the code of .bat: @echo off TITLE MeuProcessoAutomatico SET currentdir=%~dp0 SET kitchen=C:\pdi\data-integration\Kitchen.bat SET logfile="%currentdir%main.txt" echo. >> %logfile% echo.…
-
0
votes1
answer268
viewsjEnv alternatives for Windows
Currently use jEnv for switching between Jdks on different client projects, but this tool is only for Linux/Unix/Mac OSX. With it, I can easily within each project configure the use of JDK 8.11.14…
-
0
votes1
answer1350
viewsHow to execute Python commands inside cmd using a script
I want to create an executable that opens a cmd and after that, enter a clear() function automatically so that you can clear the screen whenever necessary just by typing clear(). Fez: import os…
-
0
votes0
answers20
viewsHow do I pass a variable to the 7za command as a parameter in Powershell?
First of all I am using the 7za file compression system for command line, I am running Windows 10. At the following command: $nomeArq ="Nome Aleatorio.zip" 7za a -tzip $nomeArq "Minhas coisas" The…
-
0
votes0
answers45
viewsScrip | Task Scheduler (Never Finish)
Hello I created the . BAT that deletes files from the previous day and then opens Winscp and runs a Script @echo off C: cd C:\Unigrupo\ forfiles -p "C:\Unigrupo\ARQUIVOS_GERADOS" -d -1 -m *.csv -c…
-
0
votes1
answer516
viewsHow to set variable using substring in batch code (Windows CMD)
Talk to you guys, I am trying to generate a code seeking part of the service name in Windows to set in a variable (ORACLE_SID). I need to search the service Oracleservice. Next to the name has the…
-
0
votes1
answer879
viewshow to copy a file name using cmd and rename another using copied text (Clipboard) only with cmd windows commands
Hello. I am looking forward to facing a situation at Windows 10 CMD command prompt of "dynamic name", so to speak. SITUATION EXAMPLE: I have in my directory the following file: .../DADOS/teste.csv…
-
0
votes1
answer305
viewsAutomate script execution R
There is a script in the R link that works perfectly in Rstudio. To automate it, it runs every Tuesday at 15:00, I decided to create a file. bat and schedule its execution by the task scheduler,…
-
0
votes1
answer236
viewspython3 No Module Named pyaudio
I’m a beginner in python programming, so I’m getting the error/warning from my cmd Traceback (most recent call last): File…
-
0
votes1
answer55
viewsDOSBOX does not recognize some batch script commands, how to resolve?
I was making a simple script in batchand testing with Windows 10 CMD, and it ran normally. However, when trying to run the same script with DOSBOX, the system gave error in the use of GOTO, yielding…
-
0
votes0
answers27
viewsJSON data post by CURL
I’m starting to use JSON-SERVER, I don’t have much knowledge yet. I’m trying to make a JSON data POST with CURL in windows cmd. I’m using the following code: curl -d "{"nome":"usuario1", "idade":40,…
-
-1
votes1
answer1952
views'phonegap/Cordova' is not recognized as an internal command
'phonegap/Cordova' is not recognized as an internal or external command, a operable program, or a batch file. I was with this error and was breaking my head, I will share to those who are having…
-
-1
votes1
answer178
views.bat number generator
I need one. bat that generates random numbers with the characters 123 in different sequences type 123,321,213,312,231 preferably using a number of each without being so 212. but if it only goes…
-
-1
votes1
answer56
viewsRun command - Terminal
Remembering that this is not just for this case, I want to create for example . Bats to automate some things, so I would like to know how to make you wait for the return of commands and interpret my…
-
-1
votes1
answer322
viewsHow do xcopy copy a directory from a variable
I’m with a project involving bat más I need to use a command (xcopy) Suppose: I want that I can enter the whole directory ex: C: Users "User" directory and be able to type in the destination ex: D:…
-
-1
votes2
answers126
viewsPHP Exec Returning unknown characters when executing commands
I am running functions in Windows CMD through PHP in Exec function, but some returned values come as unknown character, mainly in accents, how to proceed to fix? Commando: exec('dir "C:\Users" /b',…