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.

0
votes
0answers
7 views

pip install pyaudio error code 1

hello so when I run. pip install pyaudio --allow-external pyaudio --allow-unverified pyaudio I get this back and would rly like some help rn. Command "c:\users\ramyar.mohamed\appdata\local\programs\...
0
votes
1answer
16 views

How do i make a folder like C:/“folder name” go to D:/“folder name” without changing the location. (Linking)

I had a folder at C:\Steam\steamapps\common\ that was located on to D:\Steam\steamapps\common. So steam would download files in the C drive but the games would get installed on D. I fixed this ...
1
vote
0answers
18 views

tasklist.exe gives incorrect errors

Running tasklist.exe to check the running processes on a remote system. I sometimes get spurious errors (listed below). Command: tasklist.exe /nh /s \\RemotePcName /fi "memusage gt 200000" ERROR: ...
1
vote
0answers
23 views

Why Windows 7 display an error message when I double click on file named as INIT.BCP.BAT

I have created a BAT script file named INIT.BCP.BAT on my desktop that contains (to be simple) only following lines echo Hello pause When I doubleclick on it, Windows 7 displays following message. ...
0
votes
0answers
18 views

Check windows remote desktop availability from command line

How can I check from command line whether a server accepts RDP (windows remote desktop) connections? without using user/password login credentials I am trying to run automated network sanity checks....
1
vote
1answer
31 views

How can I share only my CMD Prompt window remotely to other computers?

I have recently been setting a server and when I start it with its files in the folder with a .bat file it opens up terminal with a command line for it. It is very similar interface to what a regular ...
0
votes
0answers
17 views

How to detect that `python.exe` has crashed when started from `cmd`?

I'm running python tests using this cmd command on windows 7: D:\bin\python.exe -m pytest --junit-xml=results.xml C:\Users\my_username\.jenkins\workspace\FirstPipelineForOrigin\test\project_test I ...
14
votes
1answer
1k views

What does ^& represent in Windows command line?

I've noticed the usage of ^& in: (robocopy c:\dirA c:\dirB *.*) ^& IF %ERRORLEVEL% LSS 8 SET ERRORLEVEL = 0 I am wondering what does it do?
0
votes
1answer
24 views

Windows execute winword from it's path

If I type winword (winword.exe and probably other variations work too) in the cmd anywhere on windows, it opens Word (default Office application). But if I am on the actual folder that contains ...
0
votes
1answer
10 views

Can't close a program via .BAT after printing PDF document

I need to print copies of PDF document with a delay before printing each copy. I created a new task in the Windows' Task Scheduler and in the Actions tab of the Scheduler I selected my BAT file with ...
0
votes
0answers
36 views

Recursively move deepest folder to top level(windows)

Friends computer had a virus which moved his external hard drive content into a folder structure approx 2000 levels deep. How I do recursively move folder from the deepest level to the top level
1
vote
1answer
21 views

CMD Find a filename in directory with patter as ABC-[*].zip

How do I find all the files in the directory starting with ABC and ending with .zip in CMD?
0
votes
0answers
11 views

PsExec launched batch file from host windows 7 to guest Windows 7 to copy shared folder path not recognized

I use Virtualbox with host Windows 7 and guest WIndows 7. I created a batch file to move a folder (with files and subfolder inside) from E: shared folder of Virtualbox to D: (My Hard Drive) This ...
1
vote
2answers
28 views

Is there any way to create bash like aliases in windows (powershell or cmd)?

I want to create an alias that can still take input, like: alias ytx='youtube-dl -ciw -f bestaudio --yes-playlist Is this possible within windows? I tried bash aliases equivalent for powershell? ...
0
votes
0answers
21 views

Login analysis service (ssas) using command prompt

I want to login SQL Management Studio (ssms.exe) using command prompt, but want to connect to analysis service server. I tried ssms.exe -S servername -U username -P password in cmd, which connected ...
2
votes
2answers
136 views

What is the difference between Total Physical memory and RAM ?

I believed both terminologies represent same thing however I see different values and makes me wonder is Total Physical Memory = RAM + something ? Total Physical Memory output using- "wmic ...
0
votes
1answer
76 views

Enable-WindowsOptionalFeature is not recognized in Windows 10

When I try to run Enable-WindowsOptionalFeature windows throws ''Enable-WindowsOptionalFeature' is not recognized as an internal or external command, operable program or batch file.' I am running ...
-2
votes
1answer
63 views

CMD command to download a file

I'm looking for a cmd only command that will allow me to download a file. No bitsadmin, no powershell, no .vbs scripts. My own research has lead me nowhere, there only seems to be things about ...
0
votes
1answer
68 views

How to Write a CMD Script to Mount and Use ISO File

I have an ISO file name lfs-ms.iso located at the following directory: F:\MS\lfs-ms.iso This ISO file contains an executable called lfs-inst.exe. I use this file many a times so I have to mount the ...
0
votes
1answer
36 views

dir / ls not displaying files outside of root directory in Windows 10

I've been trying to point to files and directories via my command line or powershell in windows, but for whatever reason the dir or ls command will not display files or folders within the directory ...
-1
votes
0answers
26 views

How to enter WSL automatically whenever cmd.exe is lauched?

Is it possible to let cmd.exe run wsl whenever it is lauched? I am asking this because I use a program (Stata) that can run shell script by opening cmd.exe. But, all the shell scripts are written for ...
0
votes
1answer
34 views

Ntfs partition is broken and needs repairs. Why does the troubleshot in Winre/Winpe menu is disabled as consequence of that?

Well looks Windows live always look at all disk because even from the install dvd I am landing on this screen Not only text does not appear but this menu is disabled for an unknow reason. Which ...
0
votes
1answer
61 views

copy files only when they do not exist at destination

I want to copy many files in many folders form one hard disk A to another harddisk B. How can I copy only files from A to B and skip the copy if the files already exist at B? Is this possible with ...
1
vote
2answers
38 views

copy a single file to many folders which contain as condition another single file

I have many folders on my hard disk which contain the file "output.txt". Now I want to copy in each of this folders the same single file "info.txt". How can I do that with the command shell of ...
0
votes
1answer
35 views

How to keep original name after running command line tool?

I am running imagemagick (CLI tool) to splice an image into 16 equal parts. I am using it like so : convert inputfile.jpg -crop 4x4@ +repage +adjoin -resize 256x256 output_4x4_%03d.jpg I'd like to ...
0
votes
0answers
18 views

CMD closes immediately after opening it

My problem I am trying to open a command prompt like this: Step 1 press windows+run Step 2 Write cmd Step 3 Press enter Result Cmd briefly opens then closes Causes Recently i had a ...
-1
votes
1answer
49 views

How to sort files into folders [closed]

i need CMD / PowerShell commands? for this problem. i have this files and i want to put him in folders from : user_EasonX_72090919_p1_title_伝説の花魁 ゆうぎり.jpg user_EasonX_72176814_p0_title_ルザミーネ.jpg ...
1
vote
1answer
34 views

ASCII art won' t show and stay open

why cmd code won't stay on after I try to open the files to keep close quickly @echo off color a cls echo |------------------------------------------------------------------------------------------| ...
0
votes
1answer
47 views

Difference in files and folders at two different times (Windows)

I would like to see how many files and folders have been changed (including created, deleted and modified), list of changed files and folders with their size before and after. So is there a utility ...
0
votes
1answer
43 views

Setting a variable based on the time of day

I cannot seem to get the if %day% EQU lines correct. I am trying to get the autoShutDown variable to "T" when the script is run between Friday night 8:30 PM and Saturday at 5:15 PM. But it seems like ...
0
votes
0answers
18 views

Ghostscript 9.25 freezing/locking in command prompt console

I am seeing some freezing/locking in using Ghostscript 9.25 in the command prompt console. I am batch converting PDF to TIFF. It seem very sporadic but at some point during the conversion it will ...
2
votes
1answer
90 views

Is there an autoexit for cmd.exe like there is an autorun?

In windows when you create a value autorun in registry key HKEY_CURRENT_USER\Software\Microsoft\Command Processor and set it to, say, echo Hello from autorun, invoking cmd.exe will, on invocation, ...
2
votes
1answer
67 views

Running “net” commands with /domain flag outside of the domain

As a part of my work I sometimes connect to a network with an AD environment/Domain, and receive domain user credentials. However, my machine is not a part of the domain. So when I try to query the ...
0
votes
0answers
21 views

CMD Fileless equivalent of < redirection

I have a batch that wraps AnyConnect Mobility Client CLI (vpncli.exe) and asks username and password to later handle them to vpncli. Simplified code: set /p user_id=Username: set /p pwd=Password: ...
1
vote
3answers
117 views

Delete content of folders with same name in different subdirectories

I am using Windows 10. I have many same named folders (suppose the name "data") in different subdirectories of a base directory (here "d:\dir"). How can I delete the content (containing only files) ...
0
votes
1answer
15 views

windows command prompt - execute command in new process

in command prompt I execute this line java -jar <path_to_jd_gui_jar> <path_to_jar_file> which opens a the jd-gui (jar viewer) to view a jar file. But if I close the cmd window it ...
0
votes
2answers
123 views

sudo !! equivalent on Windows cmd

I'm looking for a cmd.exe equivalent to Linux's sudo !! and other bang-commands such as !x, !?x, !!:p and !!* mentioned here.
0
votes
0answers
38 views

Taskschd.msc / SCHTASKS “The user account you are operating under does not have permission…”

Been receiving the following error when trying to modify tasks with taskschd.msc and SCHTASKS (in CMD prompt). Specifically in the UpdateOrchestrator folder/directory of "C:\Windows\System32\Tasks\...
3
votes
2answers
50 views

Pipe executed command into the same output file of the command

I've had a look at various tips (ss64.com Command Redirection) and tricks but couldn't find an answer to my question: Question Is it possible to pipe the command I am going to execute into the same ...
0
votes
2answers
76 views

Opening a wsl shell from another windows application

I'm trying to configure Tower (git client) to launch a wsl bash shell. I've tried a whole bunch of things, but it seems this isn't intended. What I tried: command: c:\windows\system32\wsl.exe ...
0
votes
2answers
109 views

How to I export filenames, filepath and properties of a directory tree to CSV?

I have a hard drive full of backups that I need to detail on a spreadsheet quickly and in the following specific way. I'm hoping there's an easy way to do what i need via some sort of .bat or .cmd ...
0
votes
2answers
44 views

How can I create a new .reg file from the CLI

I'd like to create a new .reg file and add it to the registry, as suggested in this article. REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf] @="...
-1
votes
0answers
49 views

Pnputil is not recognized as an internal command

I'm trying to use pnputil.exe within a command prompt on a brand new Windows 10 Virtual Machine using Virtual Box. PnpUtil is a native windows application to install drivers. Located in C:\Windows\...
-1
votes
2answers
43 views

how to duplicate a folder and its subfolders in the same directory using cmd in Windows 10

I want to duplicate one folder with its subfolders in the same directory using the command prompt. But I am stuck as I cannot find a way to rename the duplicate folder. I have tried xcopy "TEMPLATE ...
0
votes
0answers
86 views

Windows 10: bat files not being run when double clicked

somethings has been changed in my win10 pro (Microsoft Windows [Version 10.0.17763.134]) box, and now I have issues with bat files: when I double click on them, I get a cmd, empty that shows up for a ...
0
votes
2answers
93 views

Windows cannot find .bat. Make sure you typed the name correctly, and then try again

I have no idea when this started to happen but it is preventing me from opening .bat files on double click. I am only able to run it as administrator. Is there anyway to fix this so i can double click ...
1
vote
0answers
87 views

How do you kill a tree using taskkill /T in CMD, but exclude some process in the tree? [closed]

I want to terminate explorer.exe's tree in a batch file and continue with its commands, but it seems to kill the batch file also. I was wondering if I can exclude the processes that CMD/ the batch ...
1
vote
1answer
41 views

Same cmd command returns different results for different users

I am typing this same command from two different accounts: query process <process name>.exe /server:<server name> From account A, it returns the list of processes on the server as ...
0
votes
2answers
40 views

cmd.exe launched from another cmd.exe

I'm doing a script that I start with bash.exe from Cygwin on Windows: C:\bash.exe my_script.sh It changes my Python Virtual Env depending of some conditions. For those who know Virtualenv, I need to ...
0
votes
1answer
35 views

How to shorten the displayed directory in the windows 7 cmd prompt [duplicate]

I know that the PROMPT command can be used to alter the command prompt but sometimes the directory path gets too long. Most of the time I'm not interested in the entire directory, just the last folder ...