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

learn more… | top users | synonyms (1)

1
vote
1answer
26 views

cmd.exe being executed during boot cycle

I have a problem during the boot cycle. This problem started after the April 2015 Updates. I see a cmd box appearing, a cmd line appearing and before I can see what the command is the box disappears. ...
1
vote
1answer
16 views

Error when trying to copy over the network using robocopy

C:\Users\Alex.Newton>robocopy /"\centlpf01cz6c\c$\Program Files\ProgramName\/" /" \centlpf01cz6c\Program Files\TestBatch\Test\/" ...
-2
votes
2answers
20 views

Hiding DVD / CD - RW files from CMD

I am trying to change attributes of files in my DVD by using the command attrib, but "Access denied" occurs every time I do so. I am using DVD-R and DVD-RW.
1
vote
1answer
45 views

How to make uppercase all files and folder on a directory?

How does one rename all folders and files in a folder into UPPERCASE? (if it is possible in its subfolders too) I have this code, but it converts only files, not folders. @echo off setlocal ...
0
votes
2answers
35 views

What is the difference between REN and RENAME?

I typed help into cmd and the following lines were part of the output: REN Renames a file or files. RENAME Renames a file or files. Next I typed help ren and help rename and got ...
50
votes
2answers
12k views

Is typing %^ into cmd.exe a Windows easter egg?

I randomly typed %^ in cmd and it said More? When I pressed enter it gave the same response. What is this?
0
votes
2answers
25 views

Is there an equivalent to source which allows me to have a batch script alter environment variables of the parent bash process?

My situation is this: I use python with conda on a windows machine, and work mostly in cygwin when on the command line. Now conda allows for different python environments, similar to virtualenv, but ...
0
votes
1answer
18 views

What is the number after `shutdown /a`?

I noticed when I tried to abort a shutdown it gave me Unable to abort the system shutdown because no shutdown was in progress.(1116) What's 1116? Also I noticed the command runs with -a or /a is ...
-1
votes
2answers
19 views

Why are my pings to websites now being timed out?

Only recently, pinging a website through the CMD will result in a timeout for all four attempts. As I mentioned, this has only started happening within the last week or so. Before I could ping google, ...
0
votes
0answers
28 views

Windows CMD make directory hierarchy 1 command

I can create different subdirectories using "mkdir test\an test\bart". But if i want to create a lot more folders the command gets too long. How can i make the command shorter (not a loop)? Or is it ...
0
votes
1answer
36 views

/How do I tell how many devices are connected to my Windows 7 PC?

According to the Windows 7 EULA and Net Config Server the maximum number ofconnections allowd to my windows 7 PC i 20. Netstat -a returns way more than 20 connections. I am trying to set up a business ...
0
votes
1answer
34 views

How to change CMD start directory [duplicate]

I want to change the CMD startup directory when I launch it via Start+R Currently, it points to my users folder. I need it to point to C:\Windows\System32\ When I navigate manually to ...
0
votes
2answers
43 views

My L3 cache size showing zero in wmic (cmd)

I purchased a desktop system which has 6 MB Cache. When I checked the L3 cache in the BIOS I didn't find a L3 cache. I the tried to use another method in from the command line to confirm the L3 cache ...
0
votes
0answers
25 views

Ampersand & special character on a Active Directory Name and CMD commands

I have a group that part of its name contains an ampersand & I am trying different commands for example dsquery group -name A&I-group but it does not work I tried escaping it using the ...
1
vote
0answers
34 views

Why %USERDOMAIN% is not “NT AUTHORITY” for SYSTEM user?

Running the following command set USERDOMAIN set USERNAME in a Windows service will return USERDOMAIN=MY_CORPORATE_DOMAIN USERNAME=SYSTEM . But my service was running in "NT AUTHORITY\SYSTEM". ...
0
votes
1answer
22 views

How do I correctly return context from a gnuwin32 grep (grep in windows cmd)?

I want to return a line of context after the string I'm searching for as per grep --help Context control: -B, --before-context=NUM print NUM lines of leading context -A, --after-context=NUM ...
0
votes
2answers
41 views

How do you convert an SSH private key to a .ppk on the Windows command line?

I have generated a key pair with ssh-keygen. I now want to use the same key pair with PuTTY-based applications. Because I'm working in a CLI environment, I want to convert the key to the .ppk format ...
0
votes
1answer
57 views

Double Clicking Batch File Windows cannot find file

I've found variants of this question being asked all over the place, and I've attempted all of the actual answer I've found out there (including changing the registry for associations). The basic ...
0
votes
1answer
19 views

Scripting Shell Settings

I really hate manually setting up cmd and powershell cmd shell properties like window height/width, font, coloring, enabling Quick Edit. Doe anyone know if there a script I can run to set things up ...
1
vote
1answer
29 views

IF statement in batch file not working properly

@ECHO OFF PAUSE IF EXIST "C:\Program Files\NexphaseV6\ECF" ( ECHO Directory exists! PAUSE ) ELSE ( MKDIR "C:\Program Files\NexphaseV6\ECF" ECHO Directory made! ) PAUSE When I run ...
1
vote
1answer
40 views

Evaluate %PATH% as the system-scope environment variable exclusively

In Windows' command line, echo %PATH% appears to merge the system and the user variables PATH in such order before printing. That seems reasonable, but I would also like to be able to print only the ...
1
vote
2answers
48 views

Why does the set command display more environment variables than the environment variables gui?

When I run the set command in command prompt the first variable I see is But when I open my Environment Variables GUI I don't see ALLUSERSPROFILE Why is that? There are numerous other ...
-1
votes
1answer
45 views

Xcopy - Invalid number of parameters

I'm trying to create a bat file that will relocate some ECF Files from a folder to a new folder I have successfully set up a XCopy bat file for other documents (.doc, .ppt) etc and i've copied the ...
0
votes
1answer
13 views

pushd with rd dont work as I want

have done like this pushd \\somedrive.se\Install\Paket\XXX\ echo "start..." for /f %i in ('dir /a:d /b bu* ') do echo /q %i popd and get this output when running from a script: ...
0
votes
2answers
50 views

A seemingly impossible to terminate process

I'm running Windows 7 64-bit. Avast simply does not want to be stopped. Even SYSTEM does not kill it. I'm using these tools to run CMD as SYSTEM: ...
1
vote
1answer
34 views

How to call environment variables in runas command for right click context menu

I am having trouble with using environmental variables with using runas when using the command in the registry for a right click context menu command. I have tried different methods of escaping the ...
0
votes
2answers
47 views

In chkdsk, what is an online scan?

Running Windows 8.0 Pro, chkdsk has a /scan option that Runs a online scan on the volume (sic). What is an online scan? My guess is that it runs it while letting you use the drive, which is good if ...
0
votes
0answers
12 views

Clone Failed: Checked Win7 in USB tray: but now no drive letters. Nothing

BSoD Windows 7 exists but is Invisible. I had done a re-size partition with EaseUS to do a clone. So, I am drowning in dozens/hundreds of web pages I have listed trying to fix this (I am not ...
1
vote
1answer
18 views

Invert cmd.exe colors

cmd.exe is by default black background and white text. I want to invert this color scheme to be white background and black text. I know you could do it in colors tab in properties, but sometimes it ...
1
vote
1answer
65 views

youtube-dl through Proxy ( need to escape @ sign)

I am trying to use youtube-dl , using the bellow command, in windows 7. youtube-dl.exe --proxy "http://a12345:A@1@proxy.com:8080/" https://www.youtube.com/watch?v=XzZJuEDQ1a0 username:a12345 ...
0
votes
0answers
26 views

How can I make an outbound rule specifically for ping.exe on Windows 7?

I have all outbound traffic on my Windows 7x64 system blocked. How can I specifically allow only ping.exe to be used in the command line (cmd.exe) without making a blanket exeption rule for all ...
0
votes
1answer
43 views

What is a simple way to prepend a UTF-8 character to a text file using cmd?

Something like: echo \ufeff > output.csv type input.csv >> output.csv Where \ufeff is the UTF-8 BOM, and input.csv is a UTF-8 text file. How do I indicate a UTF-8 character in cmd?
0
votes
1answer
31 views

Connecting to app server using plink

I need to connect to psadmin using plink. Try: plink -ssh [hostname] -l [user] -pw [password] psadmin When I run this I get error code 127 Command not found: psadmin When I enter into the shell ...
1
vote
2answers
47 views

ipconfig from the CMD opens and closes another CMD

I tried running ipconfig from CMD, both elevated and not, but instead of displaying it's output inline, it opens another CMD and closes it immediately after the output is listed. I've tried running ...
0
votes
1answer
27 views

How do i suppress a ssh-add passphrase prompt?

Whenever i run ssh-add in cmd it outputs a passphrase prompt. ssh-add "%~%\.ssh\id_rsa" Enter passphrase for C:\Users\Kristian Welsh\.ssh\id_rsa: I would like to suppress this text to add my own, ...
1
vote
0answers
42 views

make a c program run without opening a cmd window [closed]

how can i make a c program run without opening a CMD window, i tried -mwindows flag, used WinMain Entry instead of main, but without results, the cmd still pop up. i tried ShowWindow function by ...
0
votes
4answers
26 views

How do I extract a list of services AND what account they run as?

The emphasis of this question is on the second half. I know how to extract a list of all the services and how to filter on their state. However, what I am unsure how to do is to extract the user ...
2
votes
3answers
41 views

How can I find what a Windows PC thinks its name is, given its IP?

How can I find out what a remote Windows PC thinks its host name is, given its IP? From Windows cmd.exe or a Linux shell. I'm not interested what a DNS server thinks the host name is for an IP, just ...
1
vote
1answer
31 views

Windows cmd analog for bash $*

With bash I could make a file run-with-environment: export THISENVVAR=3 $* and run run-with-environment echo 5 to have echo 5 run with THISENVVAR=3. On windows with cmd.exe I can make a batch file ...
0
votes
1answer
37 views

Batch output filename with datetime

I have a batch file that look like this: set FOLDERTOZIP=c:\myfolder For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b) For /f "tokens=1-2 delims=/:" %%a in ("%TIME%") do ...
2
votes
3answers
90 views

How to go to a program directory?

I need to go to a program directory (e.g. git). where git | cd does not work, because it returns a file instead of folder. What is the correct way to achieve that?
0
votes
1answer
39 views

How can I prevent a command run in cmd from opening a new cmd window OR how can I keep that window open?

I want to run some commands from a cmd window. Currently, they open a new cmd window which closes immediately. This is unfortunate, because I would like to read the output of those commands. I have no ...
0
votes
0answers
26 views

How to enter arguments that include a space in command prompt [duplicate]

I am trying to use mklink to create a directory junction, but both the target and the "fake" has a folder name that includes spaces. How do I enter the folder name in my command without the space ...
0
votes
0answers
92 views

Pause OneDrive sync using cmd

I would like to know how to pause onedrive from syncing using a command in the cmd. I am doing this because I have my .minecraft folder shared in onedrive and when I am playing minecraft, it is really ...
-2
votes
1answer
39 views

I need a batch to open an file whenever the workstation is unlocked

So the batch file I need has to open an excel file whenever the password is typed to unlock the computer.I know this thing can be done with Task Scheduler but I need a batch file because this action ...
1
vote
1answer
33 views

batch current directory when starting as administrator

Background: I like to have my computer clean. Especially I don't like programs and services starting with my windows, but I still want to use all my programs without having to manually start ...
1
vote
1answer
57 views

Windows Command to get all information/properties of a file

Is there any command get all the properties of a file including its encoding format (this piece of information is really important to me) on Windows ? I'm looking for something similar to stat in ...
0
votes
0answers
32 views

How to create a vpn with the cmd

How can i create a batch file to create a vpn connection , so that when the computer restarts the vpn connection is not available. I tried (rasdial "vpn" username password /phone:servername ...
0
votes
1answer
42 views

How do I use CMD to merge multiple text files and separate them with line breaks?

I know I can use copy *.txt newfilename.txt to merge all the text files in a folder. Is there a way to do this, but separate each merged file with a line break?
0
votes
0answers
20 views

Windows Remote Desktop how to show RDP original user name

My local user name is foo and I login to my remote machine as bar. I need a method that (when executed on the remote machine) lists the original users logged in per RDP (I expect foo, not bar). Do ...