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
-
3
votes1
answer5683
viewsHow to run a R script from the Windows command line?
I have a test file. A in the folder: C: Users Documents R And I’ve already added R to the windows PATH: C: Program Files R R-3.0.2 bin When in the cmd I try the command R CMD teste.R Windows does…
-
3
votes1
answer1050
viewsHow to download images sequentially from a website using Wget?
I need to know where the error in the command is: wget http://shadowera.com/cards/se{001..200}.jpg I used the "shadowera" website for testing. I need to know how to save multiple images at once, and…
-
3
votes1
answer610
viewsERRORLEVEL command with colors?
I created a script bat to tesar some links, to using the command ping with the errorlevel And it’s working perfectly, but I wanted when I didn’t have communication, I mean, don’t drip, it would be…
-
3
votes1
answer353
viewsHow to pass response from one command as argument to another command?
In linux I do something like to take the answer of a command and pass as argument to another: ./program `ruby -e"puts 'Oh' * 3"` In case what is between the accents (ruby -e"puts 'Oh' * 3") will be…
-
3
votes3
answers3141
viewsHow to monitor a file in real time on Windows?
When deploying services and applications to servers, be able to monitor the log seeing all the updates as soon as they occur, greatly facilitates this task. On Linux, I use Tail which only loads the…
-
3
votes2
answers402
views -
3
votes2
answers231
viewsWhat is the difference between " - " and " / " in CMD commands
What’s the difference of using the - and the / in the CMD for example in the command: shutdown -s or shutdown /s…
-
3
votes1
answer418
viewstake the last 2 tokens of a variable in Batch
I need to pick up the last 2 tokens of a variable batch the variable is Rastreando a rota para user722-PC [192.168.1.106] the output I need is a variable containing user722-PC and another containing…
-
3
votes1
answer1265
viewsList specific directory in Windows - Filter in the list
I have the scenario with the following directories in alphabetical order: Y:\imagens\A001\B001\imagem.jpg Y:\imagens\A001\B002\imagem.jpg Y:\imagens\A002\B001\imagem.jpg…
-
3
votes1
answer1541
viewsError: unrecognised exhaust sequence [C#]
For this code snippet in my program I receive the error warning that it considers that the command has an invalid exhaust sequence, that is, not recognized. string.Format("/c {0}", "cd .\Debug &…
-
3
votes2
answers604
viewsCommand prompt with React-Native
People progamo em React - Native and every time I access the CMD to run the React I have to do a series of procedures that I will write below Does anyone know any way to create a bat that already…
-
3
votes1
answer52
viewsSet Space for text
Good afternoon, I would like to know if there is a cmd command to set a fixed space for the text so that it does not change the position of the rest of the sentence. In the example below this space…
-
3
votes1
answer763
viewsEnable or maximize program window
I have a JAVA program that uses Selenium Web Driver to access some pages and print them. I print by simulating the Ctrl+P keys and then Enter. The problem: There are several pages and several…
-
3
votes2
answers476
viewsTranslating copy command from CMD to Powershell Copy-Item
I’m trying to translate a command from cmd to the powershell but I’m not getting it. I get multiple.txt files during the month, put them all in the same folder, some have specific terms in the name…
-
3
votes1
answer1303
viewsColors in cmd using Python?
Guys I’m doing a game for college and I decided to put some colors in the code to look cute. I wanted to know how to make the colors of the strings appear in the cmd of windows. I tried to use the…
-
3
votes1
answer358
viewsEncoding error (Non-utf-8 code) while running script
I made a very simple program, this way, in the notebook, and saved how Somador.py: a = 1 b = 1 soma = a + b print("A soma dos números é", soma) After that I tried to run the program by cmd and gave…
-
2
votes1
answer839
viewsWindows Ping should return only the package response values
I am making a script as ping command and I want to get only the response of the sent and received packages, so far only be able to display the ping media using this variable : for /f "tokens=*…
-
2
votes1
answer123
viewsHide filenames at compression time
I am using the syntax below to zip files. 7z u -t7z destino\arquivo.7z origem\arquivo.*. The parameter u does with the 7z.exe compact only the modified files. My doubt is that when I run this…
-
2
votes2
answers3791
viewsWrite current Directory to a text file
In a batch program I have: echo Date >c:\users\...\testecmd.txt Write the current date in a text file. Assuming I don’t know where is the directory in which the auto executable is, how do I get…
-
2
votes1
answer70
viewsJasperstarter Array and Collection Parameters
I’m working with Jasper reports in PHP. It’s all right, I can list them without problem, but when you have an Array or Collection parameter error occurs. I tried to pass via CMD in several ways the…
-
2
votes1
answer517
viewsError running . jar on Windows Powershell with Maven
Good afternoon to all. I am trying to run this tool (CPA - https://github.com/CityPulse/cpa). Through the link provided, I download the classes. After that, I run Maven, which generates a .jar. The…
-
2
votes1
answer51
viewsShow message if a particular word is typed
How do I get someone to write on cmd: > tree A message appears using the following command: Console.Write("");
-
2
votes2
answers892
viewsHow to fix CMD accentuation error?
I’m having trouble showing messages on cmd because the same when accented appear disfigured. This occurs in any language I use (C, C++, . bat, etc). For example instead of : minha multiplicação é :…
-
2
votes1
answer2024
viewsProblems executing commands in CMD with Python
I am unable to execute (or get the result) commands executed in Windows by Python. I picked up some code examples I saw on various websites and responses in the OS, but none worked well for me.…
-
2
votes1
answer210
viewsHow to close a "folder"
I have a project in Delphi 2010 that when I click on a button opens a directory, this is the code: DirFolder := 'C:\teste'; ShellExecute(Handle, 'open', PChar(DirFolder), nil, nil, SW_SHOWNORMAL);…
-
2
votes2
answers1688
views -
2
votes2
answers672
viewsScript bat not run completely
I’m trying to make a script that builds my project maven and soon after carry out the deployment of the same in wildfly. I wore it perfectly on linux, only when trying to migrate to Windows I find…
-
2
votes1
answer882
viewsStart Wildfly in debug mode
Start the Wildfly in the eclipse on-mode debug is simple. I want to start via command line by running the standalone.bat. So far so good, but I want to start in mode debug and under normal…
-
2
votes2
answers1450
viewsGenerate error at the end of the copy in case some file is not copied
I have a batch that copies some files on the network, this copy updates the previous files by the newer ones if they already exist in the destination folder, but if any file is in use the system…
-
2
votes2
answers940
viewsChange command prompt properties in c
I am new to the language c. I wonder if it is possible to change command prompt properties by c, such as cmd size, width or even font?
-
2
votes1
answer1360
viewsStart command with special characters (CMD)
I am creating a batch file that executes this command: start jogo.exe user:USUARIO pwd:SENHA The above command causes a character to automatically enter a given game. The command works perfectly if…
-
2
votes1
answer1158
viewsSpecify command for the CMD to open
I am making a simple program with Visual Studio to run some commands on CMD that I want, currently the program has only a simple screen and a button to open cmd, but I would like to specify the…
-
2
votes1
answer47
viewsMan pages on Windows
in the Linux command terminal we can access the manual pages of the applications. Type man date. Is there anything equivalent in Windows cmd? For example, I wanted to know details of the tasklist…
-
2
votes1
answer1052
viewsReturn File Name in Batch
Is it possible to return the name of a file/program by a bat? Type by dragging it to the bat or run by the bat, it returns the name.
-
2
votes1
answer51
viewsWhy is my menu not working?
I’m creating a Batch menuzinho to run a 1-line script that merges all text files into 1 only. But I don’t understand why the routine isn’t working. Setup Batch Code @echo off :Menu Echo. Echo 1 -…
-
2
votes1
answer157
viewsHow do I remove everything after the first word?
How to remove everything after the first word on each line in a text file containing the character pipe? It works for removing simple/common characters, but has not worked to remove the character |…
-
2
votes2
answers1438
viewsDoubt when joining txt files
Searching the internet to join txt files, I found the command line code CMD below: for %f in (*.txt) do "%f" >> união.txt The logic is to make a loop, grab all the txt files and create a new…
cmdasked 7 years ago Italo Rodrigo 4,344 -
2
votes1
answer172
viewsDetermine an amount of time to respond to something in Batch
Is it possible to determine an amount of time for the user to answer a question in a batch? If I were to use a batch to shut down the computer, the user would have 1 minute to respond to something…
-
2
votes1
answer308
viewshow to remove CMD window after using.system in python
I have a Python 2.7 code that opens a PDF with os.system('meuarquivo.pdf') and it opens right. But when opening the file it also opens an empty CMD window. Is there any way I can close this window…
-
2
votes1
answer2393
viewsCopy folders with CMD space
Óla would like to know how to copy a folder named with space in the CMD, but the command is in double quotes and it does not accept other double quotes inside, for example, I tried the following…
-
2
votes3
answers2225
viewsFile . bat does not run
I have a file with the following command to disconnect some machines from the network. FOR /F %i IN (C:\estacoes.txt) DO SHUTDOWN /s /t 01 /m %i where estacoes.txt is a file with the names of the…
-
2
votes1
answer355
viewsCreate a scheduled task on Windows XP 32-bit
I want to create or modify a task per command line, that on the same machine. I’m using the command Schtasks with argument /Create. But I only got on Windows 8, when I took the BAT to the machine…
-
2
votes2
answers2414
viewsCopy all subfolders . jpg to a single folder by cmd
I have a folder that has 148 folders contained in it, and in each of these folders they have a file .jpg. I need to get all these .jpg and put into a single folder I can do that in the Linux thus…
-
2
votes3
answers1819
viewsCreate shortcut for complex commands in CMD
I use the command taskkill /f /im nome.exe to stop lawsuits, because the same for all processes with the same name. I’d like to raid that command for something like tk nome.exe. I tried to create an…
-
2
votes1
answer2306
viewsScript to check running process and finish or not
i have a process called monitor.exe and the same can not have 2 active processes because it is a print monitor that if you have 2 active processes the same will issue 2 duplicate tax notes, so I…
-
2
votes3
answers3006
viewsSearch directory name of a file. bat
I have a. bat file that does some iterations via cmd in several directories. My problem is this: I need to be able to get the directory of the file itself . bat to always be back to the same to make…
-
2
votes0
answers128
views -
2
votes1
answer755
viewsHow to run and display CMD log?
I have seen some examples of how to "execute" CMD commands, by the application, however, I am facing some difficulties. What I’m trying to do is give a cd in the oracle folder, and then run the…
-
2
votes1
answer1082
viewsCompile C++ file in VS Code using external cmd
I can compile files in VS Code normally, but the files are shown in the terminal of the program, which does not allow the insertion of characters. How can I set up to be able to use a terminal that…
-
2
votes1
answer81
viewsTest a port and capture a batch test response
I wonder 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 as with ping that I can trigger another action with errorlevel 1 or 0.…