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

Questions tagged [cmd.exe]

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

1
vote
1answer
272 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
38 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
2k 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
31 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 ...
1
vote
0answers
365 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
35 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
100 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 ...
12
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
122 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
175 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
349 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
126 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
2k 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
157 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
68 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
657 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
87 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
1answer
217 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
327 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
290 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 ...
1
vote
2answers
2k 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
242 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
69 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
265 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
127 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 ...
0
votes
0answers
48 views

wine notepad++ 'Open Containing Folder in cmd' set terminal

I'd like to be able to open a folder in a different terminal that the one set by default by wine. Is it possible to modify this option?
2
votes
0answers
415 views

run program at startup without entering administrator password

I am trying to run programs, which require administator password on accout without administrator rights, without entering password everytime they launch for each program. https://www.howtogeek.com/...
1
vote
1answer
392 views

Windows 10 fc command : Comma separated file comparison

I have two file's with 3 GB each to do a comparison and store the difference data into third file. Following is the sample data. File 1: June_01_2018.csv File 2: June_02_2018.csv Note: I want to ...
0
votes
1answer
102 views

How to override environment path variable to call curl from custom path instead of system32 path?

I have a path for folder containing curl.exe file (C:\My\Custom\Directory\) added to Path Environment Variable. The problem is that when I call curl from command line, it runs another curl executable ...
0
votes
0answers
451 views

Windows 10: move/copy file by command prompt?

I was an idiot and deleted EUBKMON.SYS to waste bin since it was always causing a blue screen. Now Windows 10 doesnt boot. The file was in the waste bin, now i managed to open command prompt via ...
0
votes
1answer
2k views

Using SendKeys from vbs in a total hidden way?

Here is what I am planning to do Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run"cmd" WshShell.AppActivate"telnet 192.168.1.1" WScript.Sleep 50 WshShell.SendKeys"...
0
votes
1answer
60 views

i beam cursor for windows command line

On Windows 10 Pro: Is it possible to change the underline _ to an i beam cursor | in windows command prompt? I know this is possible on *nix but don't see anything in the Properties for Command Prompt....
0
votes
1answer
64 views

Are the Windows 10 and Windows 7 Command prompt commands identical?

I know Microsoft likes to add commands to windows cmd as they go along, however, I was wondering if there are any differences in commands for Windows 10 versus Windows 7? I'm referring to commands ...
0
votes
0answers
59 views

How do I partition my internal HDD through Ubuntu command lines?

While I was trying to reinstall windows, I was getting some errors and I tried to clean the HDD through command prompt using "list disk" and "select disk 0/1" and "clean". I accidentally selected the ...
0
votes
2answers
275 views

How to use .bat to open default program?

Is it possible (using cmd or .bat) to automatically open a text file using the default Windows application? For example, when opening a .html file, if Chrome is my default browser, the .html will ...
1
vote
1answer
55 views

How to stop the automatic run command?

There was a virus(.exe) which was running randomly through cmd. I managed to delete the executive file which was infected. But the command still runs randomly and I keep getting the error that Windows ...
0
votes
0answers
162 views

Open the latest modified file in other folder

I have a folder which has some log files. I want to open the latest modified log file through batch file. I got the below ans, but it works only when the batch file is in the same folder where logs ...
2
votes
2answers
1k views

Windows 10 high CPU usage unless task manager is opened

A desktop gadget I am using indicates 100% CPU usage. But every time I open Task Manager to find the cause, it suddenly drops to 10-15%. If i close it, it spikes back to 100%. Also Command Prompt is ...
0
votes
1answer
107 views

how to chain batches properly?

I'm trying to biuld a chain from batches but something prevents to start my 2nd batch from executing because it brings stuff from the first batch (I guess) this is my folder structure: %~dp0..\× H\ ...
0
votes
1answer
160 views

how to prompt for number to create folders based on the input?

I have a BATCH.BAT and when I run it I need to ask my how many folders I want to create: echo How many folders you want? (enter below) SET /P "ANSWER=" then I need to input number (that is not ...
0
votes
0answers
60 views

how to send whole :MENU2 into .txt file?

is it possible to make output from whole :MENU2 label of a batch (from within a batch) into .txt? :menu cls echo welcome echo label1 loading... timeout /t 9 > nul goto ...
0
votes
1answer
571 views

Unable to open a folder with space in cmd [duplicate]

I'm unable to open a folder in cmd. The folder name has a space The script that I'm working on is start D:\My Data which does not work. However start D:\MyData seems to work but I need the space ...
0
votes
1answer
45 views

Find a file under a partially known folder path

I am very new to batch files. I am trying to write a script to find this file: <A>\Org\App\<B>\<C>\SQL Scripts\Miscellaneous\CRErrorFinder.exe where A is any drive, B a folder ...
1
vote
2answers
349 views

Inserting \r\n into parameter on Windows

I'm using FFmpeg on Windows where I need to insert an \r\n in a parameter itself. ffmpeg … -headers "X-Test: Test\r\nX-Test-2: Test 2\r\n" … While this will work fine under Linux and such, it does ...
1
vote
1answer
45 views

How to extract final line from this IP list?

I am trying to get the external IP address of a network to see if it is on the same network as other PCs, but my script isn't working. My main problem is that: No matter what I do I can't seem to get ...
0
votes
3answers
482 views

how to use output as VARIABLE and put trimmed value into CLIP?

can anyone teach me the right way? here is my attempt code: @echo off SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION "%~dp0..\x64\mediainfo.exe" --Inform=General;%%UniqueID/String%% "%~dp0..\files\...
0
votes
2answers
1k views

What is the alternative for source command in cmd?

I want to run the Windows (Command Prompt) equivalent of source myvenv/bin/activate so as to activate and enter into my virtual environment.