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

learn more… | top users | synonyms (1)

5
votes
3answers
118 views

How to move content of removable drive to folder on the same drive using CMD?

I want to move all the content (including sub-folders) of a removable drive to folder which is inside the drive. This is how it looks in Windows Explorer:
1
vote
1answer
13 views

how to delete reserved URL in Powershell?

how to delete reserved URL in Powershell? I am attempting to delete all the reserved reporting related URLs by using powershell because Report Server Webservice is not properly configured and I need ...
0
votes
1answer
24 views

keyboard shortcut to preserve un-entered cmd line typing

You've got most of a command typed out then realize you forgot a step, need to run a different command first. Without touching mouse, in quick edit mode, how not to lose the typing of a command not ...
0
votes
0answers
26 views

Delete column from csv file with only cmd [duplicate]

Looking for some way to delete specified columns from csv file using only batch command file
-1
votes
1answer
20 views

Missing HKLM\Software\Policies\Microsoft\SystemCertificates--AuthRoot

I cannot find this HKLM\Software\Policies\Microsoft\SystemCertificates--AuthRoot in my Registry. Please help.
0
votes
0answers
27 views

How can I make a bat file run as admin? [duplicate]

I want make a bat file to connect/disconnect a LAN connection. I know I use this code: netsh interface set interface name="Local Area Network" admin=enabled or this: netsh interface set interface ...
0
votes
2answers
21 views

Search through a large text file and get the line numbers which the text is found [on hold]

I need to be able to search through a text file and need the output the line number which the email address I searched it for is on. I've experience a few recent data breaches and I need to: check ...
0
votes
0answers
10 views

Command prompt : Move running process to backfround

In most Linux shells, you can "stop" a running process foreground with CtrlZ and use bg to move it into the background. What's the Command Prompt equivalent? This should be a duplicate but I couldn'...
0
votes
1answer
17 views

CMD with icacls issue for windows 10 upgrade - invalid parameters

I'm trying to upgrade my laptop to windows 10 but it says my system reserved partition is low on available size so i'm following microsoft solution on the internet and somehow got stuck with these ...
3
votes
1answer
17 views

Windows 7 'netsh reset' without rebooting?

Frequently we are required to reboot after installs or commands because specific services have to start or restart. Is there some service I can restart to avoid rebooting the whole PC after "netsh ...
0
votes
0answers
12 views

Does whoami /groups query the DC?

How does whoami /groups work? Does it connect to the DC and get the information from there or is that information cached on the computer somewhere and retrieved by the command? If it is stored ...
1
vote
2answers
49 views

Add Local group restrictions with cmd

How I could add Additional Rules in Software Restriction Policies with cmd using a script that'll work with both Windows 7 and Windows Vista. I would like to create some path rules with security ...
1
vote
1answer
33 views

How do I shift the execution of a batch file from one CMD to another CMD?

This is my batch file script: ::opens new cmd in admin mode powershell.exe -Command "Start-Process cmd -Verb RunAs" ::this needs to execute in the previously, newly opened cmd wmic product where ...
0
votes
2answers
35 views

Obtaining all command line parameters in CMD prompt

What command would I use in CMD to get all of a program's available switches/arguments? For example, program abc.exe might have a switch of /o that starts the program in offline mode. Assuming I did ...
0
votes
1answer
33 views

What's the difference between gitcmd.exe and cmd.exe?

I use Windows and my question is: what's the difference between git-cmd.exe and cmd.exe? I tried to run some tools on both and git-cmd.exe seems better and seems a bit faster, why?
0
votes
0answers
18 views

How to Compare Files in HDDs

I made backup of my external HDD (I call it HDD1) on another HDD (I call it HDD2). The two HDD are the same physically, same model. My problem is that the HDD2 has less of the HDD1 file. Something was ...
0
votes
2answers
30 views

Looping through subfolders to run command in many directories

I am on a Windows machine. However, I installed Cygwin and updated my environmental variable path which allows me to run Linux commands through a Windows terminal. I would like to perform the ...
1
vote
1answer
49 views

run bat with a copy of cmd.exe in another path

I have a test.bat and a copy of cmd.exe (rename cmdnew.exe), both in a same folder. Question: How can i run test.bat with a specific "cmdnew.exe" (not with cmd.exe)? (how can i register the new path ...
0
votes
1answer
40 views

send message to whole windows network?

I've just discovered that you can use this command to send a message to one pc on the network msg username /SERVER:hostname /V message to send is there some command (something like below that i'...
0
votes
1answer
23 views

Can't connect to telnet altough the service is active

I can't connect to the telnet when I write telnet 192.168.0.1 in the console, it says could not open connection to the host, on port 23:connection failed Before asking the question I found a ...
0
votes
1answer
11 views

How do I search for files containing a range of numerics using windows DIR command?

I want to be able to isolate and search using the windows DIR command for only the files that contain an extra numeric at the end. How do I do this? I have attached a picture that shows an example ...
0
votes
1answer
51 views

How I get normal colors in c:/windows/system32/cmd.exe without reseting others settings [duplicate]

Currently when I use cmd.exe the red color is too dark and the blue and green colors don't apears. In other computers I don't have this problem. Using c:/windows/syswow64/cmd.exe in my computer I don'...
0
votes
1answer
26 views

What I must do for taking cmd(64-bits) when I type cmd

Now when I type cmd I obtain cmd (32-bits). I need to get cmd (64-bits)
0
votes
0answers
15 views

Commandline (and server) pauses until updated

Context: I'm running a Minecraft Forge server with a standard .bat to start it with specified memory constraints and 'nogui'. The server will run, and the console window will appear, but occasionally ...
2
votes
2answers
41 views

Rectangular text selection in Command Prompt

From all the interpreter programs I have used, cmd.exe was unique in that it allowed you to select a rectangular block of text. Source Q1. Why did it use this method, as opposed to standard text-...
3
votes
1answer
29 views

Cannot use dot before redirect to file in batch file

I cannot tell why the context of an if would change my ability to run the same code. While this: @SET FILE_MAIL_BODY=mail.body @echo The build FAILED because of a lock on the 'classes' folder (or ...
-1
votes
0answers
18 views

Move all sub-folders files to its top parent, but not root

I have to move all children files to their parent, but not to the root folder. So need to loop through all sub-folders of root folder, and select all folders' sub-folders files and move them to the ...
0
votes
2answers
40 views

How do you re-source the environment variables in a command prompt in Windows?

In a bash shell, you can edit your environment variables, run source ./.bashrc and refresh the values of environment variables in an already open shell. Does Windows have a similar command that you ...
-3
votes
2answers
52 views

Batch file to Check and Compare size of .log file in a folder [closed]

I have to find the files from a folder whose size is greater than 10 MB. Please guide how can i complete this task.
0
votes
0answers
37 views

How to open the SnippingTool (Win Tool) passing a parameter to start automatically?

I'm trying to open the Windows tool called SnippingTool and look for an option to start a new snip automatically. Something like this: cmd c:\Windows\System32\SnippingTool.exe /new Some ideas?
0
votes
1answer
27 views

How to show spaces in CMD?

So I wanted my cmd to select random sentences. set /a rnd=%random%%%5 for /f "tokens=1,2" %%a in (list.txt) do if %rnd%==%%a echo %%b Im using this but inside the list.txt file I have sentences ...
0
votes
0answers
32 views

making buttons with notepad

im runing a win 10 install on a laptop that originally shipped with 7. i am having problems with the audio drivers that when the laptop get shut and reopened the sound still works, but it will no ...
0
votes
0answers
28 views

How to save whole cmd.exe output to the specified file

Is there any way to save whole cmd.exe output to the specified file? I can't just use the redirection operators (>, >> etc) cause the application I'm working with launches child processes and these ...
-2
votes
2answers
47 views

Add user to domain via local admin? [duplicate]

I tried connecting a few PCs to a domain and they all seem to be accessible, however there are no accounts on the domain. How do I add user to a domain using local admin cmd?
0
votes
0answers
17 views

How can I use the START command to open Netlimiter's NLClientApp.exe in minimized mode?

I have placed this 3-line script in my Startup folder: @ECHO OFF TIMEOUT /T 45 START "" /MIN "C:\Program Files\Locktime Software\NetLimiter 4\NLClientApp.exe" I want to delay the start time of ...
0
votes
1answer
34 views

2 cmd windows flash after boot

For some reasons after the boot 2 cmd windows popped up and closed very quickly. I've managed to take a screenshot As you can see it's prompting for some access denied error regarding OneDrive even ...
1
vote
1answer
14 views

XCOPY /exclude reference a ext file that is not in the working directory

I have tried to reference the directory of the text file after /exclusions. What is wrong with my syntax? xcopy "J:\Common\NY SERTIFIKATBANK\18 Buoyancy Reports\Nav Lights\534515" "534515" /I /...
0
votes
1answer
82 views

CMD command redirection (pipes) in shortcut/link on Windows 7?

I'd like to run a Python 3 script silently on system start using a shortcut/link (.lnk) in Autostart. Python's pythonw.exe will run as windowless process with my script only if piping stdout and ...
0
votes
0answers
26 views

Prevent programs from opening

I'm writing a batch file that kills background processes, but some processes keep starting back up again. (Using Taskkill) I could loop the taskkill command, but that would use more CPU power than it ...
1
vote
2answers
27 views

What is the equivalent of Linux's (bashe's actually) “&>” in Windows?

How can I redirect (to one file) stdin and stderr of the program? I look for something like &> in bash for Windows.
0
votes
0answers
25 views

Why OneDrive displays itself incorrectly in wmic?

Try following line in command prompt with OneDrive working: wmic process get Caption, ExecutablePath, ParentProcessId, ProcessId You will see that there is one space difference after ExecutablePath ...
0
votes
2answers
40 views

From Cmd Prompt - How to Time a Program to be exited?

I want to figure out a way to use command prompt to close a program in say... 60 seconds. Similiar to the computer timed shutdown (shutdown /s /t ) and the taskill. Any ideas? Is this possible?
0
votes
0answers
11 views

how to expand to full path file name according to path variable in cmd

As I thought, the variable expand command: %~dp$PATH:I is used for iterating through the paths in %path% variable and find the first occurrence in which contains the file name specified by the ...
14
votes
2answers
3k views

Does using Windows CMD to shut down a computer cause any damage?

When you launch shutdown -i to shutdown a computer from the command prompt (CMD), does it damage the computer that is being turned off (either local or remote)?
-2
votes
1answer
23 views

how to move files from sub-folder to folder

I've got: C:/PICS/ASF/photos/files (.jpg) C:/PICS/DFS/photos/files (.jpg) C:/PICS/HGD/photos/files (.jpg) C:/PICS/FTG/photos/files (.jpg) .....etc In every "photos" directory is more than one ....
-1
votes
1answer
43 views

Using wmic to Find if Product Exists

I'm looking to write a batch file that checks to see if a program exists, and if it does exist I'd like to have it uninstalled. This is what I've got so far. @echo off (wmic product get name| ...
0
votes
2answers
34 views

Why doesn't my for loop find any files?

I have a really simple for loop I'm trying to do in a windows CMD prompt/batch file (I've tried both with %i in command line and %%i in batch file): for %%i in (workspace\*) do echo %%i I wan't to ...
3
votes
1answer
55 views

How to connect WinSCP through command line not in GUI mode?

Connect WinSCP console through command-line. Run batch file in it. Commands should be included in batch file for connecting with the server.
1
vote
3answers
58 views

Batch script (cmd) resulting in DD-MM-YYYY_weekday format

I need to use date /t command and convert the date format to DD-MM-YYYY_weekday with all the "-" and "_" as listed I can't find an answer on my question. Could you please help me?
1
vote
0answers
16 views

alias to programs in cmd? Where are they stored?

How do I add "shortcuts" (aliases) into cmd? For example the shortcut to HypersnapDX. On one computer I can simply enter HypSnap6.exe and Hypersnap openes. From any location. On the other computer ...