Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [cmd.exe]

cmd.exe, or the Command Prompt, is the default command-line interpreter for many Microsoft-created operating systems.

2
votes
1answer
30 views

Is `git` a command in Windows cmd environment?

Assuming I have git installed, does it make git a command in Windows cmd environment? Why is it not in the output list when I run help? And same question for ping command. Thank you
0
votes
0answers
20 views

How can I change values of the `.ini` files via command line? (linux or windows)

How can I change values of the .ini files via command line? (linux or windows) For example I have a php.ini file: display_errors = On error_reporting = E_ALL & ~E_NOTICE Now, I need be like ...
0
votes
0answers
22 views

Windows 7 List all files in subfolders in specific format [on hold]

I have a folder My Music that contains a lot of music. The subfolders are all bands, and the subfolders within those are albums, which contain the music files. I need to have a word file that has the ...
-1
votes
0answers
17 views

“Make” will not compile the Darknet open source neural networks package in Yolo [on hold]

I'm trying to install the Yolo (v3) neural network on my computer, but I quickly ran into a problem. Windows doesn't recognize 'make' as a command. 'make' is not recognized as an internal or external ...
1
vote
0answers
16 views

How to redirect the output of a running process to a log file?

When running a long running task in a command prompt, it's possible to redirect the output to a log file (fe for storage or later analysis). However, I started a few long running tasks this evening ...
0
votes
0answers
27 views

Why is my build program suddenly unable to invoke a batch file in Windows? [closed]

We have a large solution in Visual Studio consisting of 34 projects. Visual Build Professional is used to compile and make an install package. It was given to us in working condition and has continued ...
0
votes
0answers
15 views

How to select all SessionID in cmd (Wthout Administrator's SessionID)

I can show the active SessionID with the following command: for /f "tokens=2-4" %a in ('"query session | find "Active""') do echo %b While I can show disconnected SessionID changing the searched ...
0
votes
1answer
61 views

batch script to copy files from all available drives to a USB

I have this script for /f "skip=1 delims=" %%x in ('wmic logicaldisk get caption') do ( copy "%%x\*.spt" "%drive%\mydiagtools" ) pause and I need it to copy files with SPT extension (our ...
0
votes
2answers
91 views

Repeating a goto only 15 times

echo off :abc Echo ^ text ^ >> C:/files/text_%random%.txt goto abc How do I do the goto only 15 times?
0
votes
1answer
46 views

CMD Prompt: Allow/Block a SERVICE in Windows Firewall… how to?

Does anyone know the Command Prompt syntax to Allow/Block a Windows Service in Windows Firewall? Research hasn't turned up a certain answer, even from Microsoft's official site. Specifying services ...
1
vote
0answers
42 views

Disable Port from command line (CMD) (Devcon it can not disable a port when there is nothing plug in; I need to do this 100+ PC)

How do I disable this port from command line? Is it possible to disable Port#0005 and only Port#0005?
1
vote
0answers
22 views

script to enable ICS service

I try to build script to select private network and enable part of ICS services. I select the private network with these code: { # Constants $public = 0 $private = 1 Write-Host "Creating netshare ...
0
votes
0answers
27 views

Getting the real path of the current directory when using symlinks [duplicate]

So I just found out that my build fails on the build server (Windows 2008 R2) because the workspace is located on a different drive using symlinks. The build path is C:\Program Files (x86)\Jenkins\...
-1
votes
0answers
30 views

Why do varibles work weird inside if exist statement? [duplicate]

The following code snippet is from the beginning of my big batch file. I need it to check if it has been run on the computer before, if not create that info, with '1', if it has been, then add 1 to ...
0
votes
0answers
55 views

Possible to manipulate devmgmt.msc devices with CMD/.BAT script? [closed]

Wondering if it's possible to configure, enable and disable devices listed under Device Manager by using the CMD Prompt or, particularly, a Batch File?
0
votes
1answer
17 views

xcopy failed to copy

I copied a directory using xcopy /S DIR DIR2 However, instead of a new folder, I got the file DIR2 without any extension, even though it said 86 File(s) copied. Help says that /S also copies ...
1
vote
2answers
45 views

List files in folder that match kind

In Windows Search I can use kind:=music OR kind:=video to get all results in a folder/ subfolders which are that type of media. Is there a way to replicate this with a command like dir on the ...
0
votes
1answer
61 views

What would happen if I increase the ping packet size

I am a newbie to this networking thing and I wonder something that if I increase the ping size to 65.600, how does it affect the internet traffic? ping –1 65500 [IP address]
2
votes
1answer
60 views

Check if registry contains data from .reg file

I have .reg file which was exported on another PC and contains some keys, values and data from different parts of registry. How to check if this keys, values and data are already present on my PC ? ...
1
vote
1answer
38 views

how to close a specific instance of a process using nircmd?

I have been using the following command to try closing the notepad file "temp.txt" opened on the windows. nircmd win close title "temp.txt" But this command seems not to work. If I try the below ...
1
vote
0answers
22 views

How to open launched executables as new tabs of command line tool?

It might be a simple question, but so far I haven't seen whether this is possible and how to do this. The batch of automatic tests I am running is launching a lot of command prompt windows which are ...
0
votes
1answer
41 views

How to start Edge by calling C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe from cmd?

Normally, running C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe from cmd would start Edge, but since last windows update, the command is executed successfully, but Edge ...
1
vote
1answer
96 views

Can't launch programs from command line in Windows

Since I've reinstalled Windows on my computer, I'm unable to run cmd /c start chrome EDIT: Not just Chrome. The same thing happens with start iexplore or start winword. start cmd works fine though. ...
1
vote
0answers
23 views

Wget Specify Sub directories to Download (-I)

I have just started using wget and am able to download and specify location to save files in, but I am having issues when I try to limit my download to portions of the main directory. If I do not ...
3
votes
1answer
72 views

How can I extract text before a character or string in a batch file?

I'm basically looking for the opposate of this post: https://stackoverflow.com/questions/47796707/how-to-extract-text-after-in-batch-file. I'm looking to extract the text before an equal sign in a ...
0
votes
0answers
20 views

Windows 10 - Command prompt closes immediately after opening [duplicate]

Whenever I try to open CMD it automatically closes immediately. I'currently using the newest Insider Preview, but this problem already existed before I updated. I tried to use sfc /scannow in ...
0
votes
0answers
79 views

Font not in Windows 10 console properties list

I've been trying to customize my WSL lately (Windows 10 Pro N version 1709). However, the font I'm trying to use (the Windows compatible nerd-fonts version of FiraCode Regular) does not show up in the ...
2
votes
0answers
19 views

Command Prompt settings won't save

I've tried running as admin and setting both Defaults' and Properties' window sizes. upon re-opening cmd the window is small again even though Default settings are still set right. Also tried ...
1
vote
1answer
36 views

Windows cmd.exe - How to prevent overwriting of output files while ffmpeg recursively processes a directory?

I'm trying to have ffmpeg iterate through a folder recursively and pull stills from multiple different video clips. If I run: for /r "W:\Exports\1 - Dailies\" %f in (*.mov) do ffmpeg -i "%f" -vf fps=...
0
votes
0answers
33 views

Windows cmd.exe - How to keep folder name intact in command?

As per this answer, I'm trying to run an ffmpeg script through a folder recursively. I run: for /r "W:\Exports\1 - Dailies\" %f in (*.mov) do ffmpeg -i %f -vf fps=6/60 still%05d.jpg But cmd.exe is ...
10
votes
3answers
1k views

Open Networks folder through cmd?

How can I open the networks folder (equivalent of click "networks" in windows explorer) from a batch file or cmd? I thought I could just do explorer \\ but that didn't work.
3
votes
1answer
117 views

How to open all programs/files shortcuts within a folder

I'm trying to open all programs simultaneously as shown in the picture below which are shortcuts: Note: Every single one of the shortcuts listed in the image, is installed in its own, separate ...
0
votes
0answers
15 views

Can 'cmd' accept all kinds of file extensions? [duplicate]

I have this command "%~n1.aac" the extension is "aac" I want the cmd to accept many types of file extensions like "aac","mka" & "wav" it's possible!? Regards.
2
votes
0answers
102 views

How to open windows window from gnuplot cmd

I'm trying to force GNUplot plot in windows terminal when I invoke it from CLI. What exactly I want: WIN + R gnuplot set term windows (gnuplot when invoked from windows CMD doesn't know this type of ...
0
votes
1answer
97 views

Delayed expansion on batch file not working properly

I wrote this very simples batch file to organize the files in a directory by moving them into folders by date. So, a file whose latest modified date is 31-03-2018 goes to folder "2018-03-31 - ". The ...
2
votes
0answers
74 views

How to eject and insert CD/DVD drive using command-line in Windows? [duplicate]

As a Linux user I know that I can use command-line in Linux to eject/insert CD/DVD. Namely, the command to eject CD/DVD drive is eject /dev/sr0 (or simply eject) and the command to insert CD/DVD drive ...
0
votes
1answer
223 views

Run a powershell script exactly like a batch command

How can I get the effect of running a powershell script from a batch command. e.g. I have a few batch commands on PATH specific to my user, I use these to make using the command line & git easier ...
0
votes
1answer
50 views

pip command error during installation of requirements.txt

When I run the command py -2.7 -m pip install requirements.txt, I'm getting the error but I have already upgraded it but I'm still getting error in installing requirements.txt. When I use the ...
0
votes
1answer
37 views

Pass cmd argument to running process when shutting down windows service

I am creating a windowservice that starts a process where I pass multiple cmd arguments in the StartInfo.Arguments. That works fine as expected. The problem is that when i stop the windowsservice, I ...
2
votes
3answers
233 views

How to parse a directory recursively and MKLINK each file into a target path with the same tree structure

I have a directory a\ containing files and sub-directories that I want to copy into path b\ where instead of copying the files I want to perform a call to MKLINK <link> <target> on each ...
0
votes
2answers
59 views

Sorting files in an numerical order

I have multiple tiff images ordered from 1 to 246. I converted them to a PDF file using imagemagick with convert *.tif out.pdf. However the order of the pages inside the pdf file differs; (for ...
1
vote
0answers
48 views

Caret (cursor) is not displayed in cmd Windows 10

The command line caret (cursor) is not displayed at command line window. When console is opened I can manipulate with caret: move it and edit command, but it isn't shown. Sometimes it displays as ...
2
votes
1answer
48 views

How can I call a batch file within another batch file?

trying to call a batch file within another batch file the script completes the synchronization of the remote folders but then fails to call the other batch file. @echo off "C:\Program Files (x86)\...
0
votes
0answers
32 views

Extract specific directory from zipped archive to different directory using Windows CMD shell

GitHub zip files normally contain a single directory in the zip. I want to unzip the contents of a zipped directory to a different directory as shown in Linux answer at: How to extract only a specific ...
0
votes
1answer
121 views

Command for “cmd” to update all the software in windows?

In Ubuntu sudo apt-get update update all the packages. Like Ubuntu, does Windows is also having any command for cmd to update all the software present in Windows?
0
votes
1answer
88 views

How to know the bluetooth verion in my laptop by CMD or PowerShell

As this answer, I know how to find the version of my built-in Bluetooth device. But could we just by CMD or PowerShell do know such information?
3
votes
1answer
64 views

Is it possible to easily find the Command Prompt equivalent of a context menu item?

For example, Comodo Internet Security has added two items to my right-click menu, "Scan with Comodo" and "Run in Comodo Container." I don't particularly want both of them to be there clogging up my ...
0
votes
1answer
71 views

Windows: copy files and change extension without duplicates

I have a directory that has image files without extension. Let us say it to be D:\initial\. Now I want to copy those files over to D:\final\ directory and change the extension to .jpg for each file. ...
0
votes
1answer
96 views

CMD window size

Every time I open cmd the window size is 20x5. The problem is that even though the default settings are set to 80x25, it doesn't do anything and the properties need to be changed every time the cmd is ...
41
votes
1answer
6k views

Why does a file get opened when I write its name, without extensions, in the command line?

On Windows 10, I have a file called truffle.js in my current folder. I write truffle in the cmd window, expecting to invoke the truffle program which resides elsewhere on my path. Instead, truffle.js ...