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
-
1
votes1
answer1234
viewsCalculate two times in a batch variable
Is it possible to calculate the difference between two times with the batch and use the answer as a variable within the command? The "time" command allows you to make the calculations between start…
-
1
votes1
answer181
viewsAutomating deploy using Msbuild
I’m creating a bat to compile and publish a Visual Studio project using MSBuild. However, I need to inform a user and password for the MSBuild. What I am doing, is to solitar in the bat the user and…
-
1
votes1
answer1352
viewsDelete Certmgr certificate by command prompt
I need to delete certain certificates from the computer so that they do not disturb my a vba automation system, however I have not found anything that can give me a light how to do it by programming…
-
1
votes1
answer289
viewsWould you like to know how to leave my videos in this identical setting in ffmpeg?
Format : MPEG-4 Format profile : Base Media Codec ID: Isom (Isom/iso2/avc1/mp41) File size : 202 Mib Duration : 22 min 9 s Overall bit rate : 1 278 kb/s Writing application : Lavf57.2.100 Video ID :…
-
1
votes1
answer332
viewsFatal Error - Allowed Memory - PHP
I have the following problem, when having run my script via browser it works smoothly and very fast, but when trying on CMD it consumes all memory and error. Via browser:…
-
1
votes1
answer113
viewsIdentify which partition is running the script from
In the case of prompt command we can use Windows environment variables to advance paths, such as: echo %homedrive% Which will result in the attribute letter where the sistema operacional was…
-
1
votes2
answers12789
viewsChange GIT password in Windows
Use the git in the Windows and I need to know how to change his password through CMD. Every time I try to make one git push, it gives the error below and I need to enter the login and the 'new'…
-
1
votes1
answer302
viewsSave current date -X days in a variable
I have a folder that every day thousands of log files are saved and when you need to search a file by date and time is a sacrifice. I have to do a routine to save the current files in a folder named…
-
1
votes2
answers2039
viewsList Services via CMD
I’m using the remote wmic service get displayname,name,state to List Windows Services. I would like to know if it is possible to list via CMD one or more Specific Services. In this scenario I want…
-
1
votes1
answer4986
viewsHow to print any document by cmd?
Is there any way to print a document (in .docx or .pdf format preferably) using a Windows cmd command line? I tried to use print but it results in an error that says "Cannot boot device…
-
1
votes0
answers562
viewsHow to open (run) a . bat file by php?
I have a.bat file whose function is to send a.pdf file to printer. In the same directory I have my.php file. I used the function exec('imprimir.bat'), and tried the same.bat file code only using…
-
1
votes1
answer113
viewsUse call only in batch files containing expressions from another file
I have a directory with files .bat named randomly within each file. bat of this directory have unique names like: nome1 Nome2 name3 ... I also have, within the same directory, a file only.txt. In…
-
1
votes1
answer1339
viewsHow to execute more than one waiting command in a file . bat
I searched here and could not find how to do it. In short I need to create a file .bat and execute 3 commands: 1. Open a directory ( cd ); 2. Execute ( npm i ); after completion of the above task 3.…
-
1
votes2
answers128
viewsbatch files - find current file directory
I have a batch file that makes cmd point to another directory. But at a certain point, I need it to go back to the batch file directory itself. It is possible to do this?
-
1
votes1
answer456
viewspass input when running bat
Good afternoon, I have one. bat to run a python file, it needs to receive an entry, but I’m not able to run this input while running . bat, does anyone know how to? follows information from the bat:…
-
1
votes0
answers39
viewsUse windows CMD commands from typed
I use Cmder or Conemu and am trying to configure some of them to get the commands typed from what I have already typed. For example, if I type the following sequence of commands: cd Sites\site1 ssh…
-
1
votes1
answer49
viewsHow to write an Event without using visual studio (in .Cs or simply in a .txt file)
I’m trying to write in Eventargs() a Enter Event for TB1 (textbox) This code of Form1 (in Form1.Cs), would write it normally with the help of Designer: using System; using System.Windows.Forms;…
-
1
votes2
answers535
viewsStore diverse information in a batch notepad
Good morning, first I’ll put it in context. Basically I’m making an "interactive story", where basically, during the progress of history I’ll have 3 variables. I could save these variables with the…
-
1
votes1
answer102
viewsInsert Command Line in typescript
I have a Mongodb installation and configuration script as required by the Company. Install_mongodb.BAT But I would like to automate this process including in the project in Typescript. I would like…
-
1
votes1
answer111
views -
1
votes1
answer290
viewsProcess manipulation with Javascript
I’d like to know how I give kill in a process running with javascript. To do this with the cmd you must first list capture the PID and execute the command taskKill with the PID as follows: netstat…
-
1
votes2
answers7988
views(cmd) How to unzip files from a . zip by Windows cmd
I need help to unzip files . mdf and . ldf which is in a single file . zip, need to do this by Windows cmd.
-
1
votes1
answer1434
viewsHow to execute a command in CMD or Powershell, passing the commands via C#?
I need to execute a command on CMD that I pass the parameters via C# for example: "C:\Program Files\MySQL\MySQL Workbench 8.0 CE\mysqldump.exe" --column-statistics=0 -uroot -p1234 -hservidor -P3306…
-
1
votes2
answers700
viewsFailed to execute "cmake." command at the prompt
I’m studying object detection with Python and Dlib and for that I need to compile the imglab folder inside the directory: "dlib-19.17 tools imglab" from the dlib-19.7 file I downloaded from the…
-
1
votes1
answer88
viewsHow to rename multiple . mp3 files by replacing the first argument of each one’s name with a sequential order of numbers
Imagine we had these files in a folder: 2 arquivoABC.mp3 1 arquivoCBA.mp3 3 arquivoBAC.mp3 0 arquivoBCA.mp3 So how could we make the names stay that way: 1 arquivoABC.mp3 2 arquivoCBA.mp3 3…
-
1
votes1
answer286
viewsRepeat loops with conditions seem not to work
Obs.: I believe it is error in the variables, because the loops do not work. This code stores the average execution time of backups SQL of the month and uses this time to limit the execution time of…
-
1
votes1
answer95
viewspdftocar: How to save the help text in text file from the prompt?
I would like to save the help text of the program pdftocairo located in the installation subfolders of the MiKTeX for Windows. The command pdftocairo --help > help_pdftocairo.txt, which should…
-
1
votes0
answers701
viewsreplace characters with . bat
I’m trying to replace several strings inside a file, until I can make another change one of them do not want to change or locate, follow me code and what appears in the CMD screen. I’m trying to do…
-
1
votes1
answer44
viewsMaven does not work with proxy
mvn archetype:generate -Dartifactid="products" -Dgroupid="br.com.Alura.Maven" -Dinteractivemode="false" -Darchetypeartifactid="Maven-archetype-Quickstart" when I try to run this piece of code Maven…
-
1
votes1
answer247
viewsPassing arguments to python . exe with cx_Freeze
I have this code to test the script passage ola py. import sys for arg in sys.argv: print (arg) print ("Hello World!") setup py. from cx_Freeze import setup, Executable setup( name='Ola',…
-
1
votes1
answer120
viewsCmd - query and export in single file. Sql
I have a folder with several sub-folders containing several arquivos.SQL I wonder if you have any command of cmd to search and copy to a single file all my files .SQL found. I was able to do this…
-
1
votes1
answer305
viewsCopy files with error: System cannot find specified path
I am with a personal project that aims to automate the process of creating folders of the services I provide. Currently my goal is to create 2 basic script for the Prompt Windows, where it…
-
0
votes1
answer295
viewsRecovering serial from hard drive by C++ without using WMI
I need to get the MAC and Serial from the HD volume (in cmd is "vol C:"), I got the MAC by the code: private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { UCHAR…
-
0
votes1
answer106
viewsHow to make it redirect
I made an application in C#, in addition to performing the basic functions, I want it to be possible to run with scripts in batches, but the problem is that I run Console.WriteLine and he doesn’t…
-
0
votes0
answers701
viewsWhich encoding to use for CMD script?
Windows Command Prompt uses an ASCII table different from ours, which even I don’t know what it is. So much so that a batch with special characters when printed on the screen looks weird: Opção de…
-
0
votes1
answer354
viewsUse cmd commands in shell scripts - cakephp 3.0
I was wondering if you can use native windows CMD commands from scripts made to run in the cakephp shell. I already run tasks that run in cmd, but with the commands of the framework itself but would…
-
0
votes1
answer345
viewsHow to remove folders from a directory
I have a project in Delphi 2010 in which I use to compress and create backups Winrar, through the following code I can compress the following folder teste3: AFile := 'C:\teste1\teste2\teste3';…
-
0
votes0
answers198
viewsJava error running via jar
I have a code that makes a request to a WS. When I run via Netbeans, the code works perfectly, but when I do it via java -jar programa.jar the system shows the following error:…
-
0
votes2
answers2454
viewsA. bat file that changes the background color according to the number the user entered
The code below should change the background color after the user enters a number from 0 to 7, but the program closes right after the user enters the number and does not change the color. I’m using…
-
0
votes1
answer85
viewsGit merge in windows conflicts and the line in the file is not marked
When trying to perform a git merge on Windows in a file that has been modified on the same line, the message is displayed: warning: Cannot merge binary files: g.txt (HEAD vs. feature3) Auto-merging…
-
0
votes2
answers213
viewsHow can I continue a BAT on a new profile after restarting
I have seen many sites teaching you how to continue a BAT, but this occurs in the same profile. In my situation I need it to be started in another profile, include when restarting Windows, a new…
-
0
votes1
answer265
viewsError in adb.exe running "Ionic Cordova run android --device"
I’m trying to run my app on mobile and gives this error: Until yesterday it was working and had already tested on mobile several times. When I updated Ionic started to appear this message adb.exe. I…
-
0
votes1
answer197
viewsAccent code page in Command Prompt
When updating my system application, a command line is called to execute a script to update the database. The script calls the tool Isql of Firebird sending as parameter the file that contains the…
-
0
votes2
answers206
viewsNetwork connections between processes within a machine
when giving the command netstat -na in the cmd of windows appear the network connections that are in progress on the machine. In my appeared several connections having as source and destination IP…
-
0
votes1
answer140
viewsProblem with comma cmd
C:\Windows\system32>wmic /node:"BR1102013" /user:"vedadmin" /password:"i@M}r43/3g%s,L;" product get name , - Alias not found. Can someone tell me why I can’t use the comma and how to fix it?…
-
0
votes3
answers13919
viewsList folders and subfolders cmd
I would like to display the directory name followed by the folders that are inside it in the order. I tested the remote: dir /s /b /o:g /ad And the output was generated like this:…
cmdasked 7 years, 2 months ago Miu in Wonderland 11 -
0
votes3
answers2361
viewsConfiguration Network via prompt
As deactivated via command prompt the check boxes "Use automatic configuration script" and also "Do not use proxy server for local addresses"? To disable the proxy, I am using the command:…
-
0
votes0
answers957
viewsError: Unable to find or load main class
have tried: Unable to find or load the main file class.java I’ve tried the system and it still works like when I use it javac arquivo javac -version java -version everything works more when I use…
-
0
votes2
answers9165
viewsAccess device via CMD
How to access android internal folders using cmd CD command. ex: My Computer Redmi 4X Internal Storage
cmdasked 7 years, 1 month ago Rafael Anderson lobo 107 -
0
votes1
answer76
viewsMy code Builds always incorporate Python 2.7 instead of 3.6, how to resolve?
When I will create executables of the programs I have suffered from it,and if anyone knows how to help, I thank.Follow the command line that I usually use to build at the prompt. python'filename'.…