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

learn more… | top users | synonyms (1)

0
votes
0answers
18 views

How to change title of cmd window without get user info first?

With the Windows title command it is possible to change title of the current cmd window, like: title Alfa But when logged in as "Administrator" this makes the title "Administrator: Alfa", so when ...
1
vote
1answer
15 views

can't remove Read Only + cmd not working

My windows files and folder in my laptop is turned to read only i tried : Right-click the folder > Properties Security tab > Advanced Click Change to the right of Owner Enter Users into ...
0
votes
1answer
33 views

Windows logoff user commandline

I would to logoff a user using command line witch should be done using username not session id it should be done forcefully i tried : shutdown -l but it works only for the current user also tried ...
0
votes
1answer
14 views

Command line (Windows) to update same xml file with trim

Currently I am using a curl command to grab data output to a text file and trim top 14 line away, convert the file to abc.xml @echo off call :sub >output.txt exit /b :sub c:\curl -X GET ...
0
votes
0answers
12 views

Send UTF-8 characters to Ubuntu over SSH via Windows CMD.exe

I'm on Windows, using cmd.exe and ssh (installed with Git for Windows) to connect to an Ubuntu box. I want to issue a command with a UTF-8 character in the name, e.g. mid3v2 -t "Hamārā" my.mp3 Is ...
0
votes
1answer
15 views

running a program in a subdirectory

Say my current working directory is C:\Users\neubert\Documents\ or something. Let's also say that I have a subdirectory in that directory - subdir - and a file in that subdirectory - filename.exe. ...
3
votes
0answers
23 views

Symbolic link doesn't work across drives

I'm on Windows 10. Running the command: mklink /D "G:\test" "C:\test" ...Is successful. However, in explorer when I double click the folder on G:\ and try to access any file in there, it says ...
0
votes
1answer
23 views

Listing folders in CMD which does NOT have a specific subfolder

I've an issue where i need to locate all folders on a drive which does NOT have a folder in them called "Arg".. I know how to do it in reverse using DIR, i.e to find all subfolder with a specific ...
0
votes
3answers
37 views

Windows password reset issue cmd [duplicate]

I tried using this command net user Alap Alap is my acc name Please tell me what password does this command sets because i cannot login to my computer. I used this command to remove my password ...
1
vote
0answers
15 views

Running an app as a Domain User on a non-domain-joined machine

I need to run an exe as a domain user from a machine that is not a domain-joined machine. I’ve attempted to use the following command (from cmd as Administrator): RunAs /netonly ...
0
votes
0answers
20 views

ConEmu QuickEdit mode

Is there a way to set ConEmu to use Windows CMD "QuickEdit" mode? For example, I want to be able to copy and paste with right mouse click.
1
vote
1answer
24 views

Windows cmd copy directories and content recursively if the files do not exist

The question fits in the title: I want to copy from local storage to a network storage directories and thier contant, but only the new or updated files with no prompt. My idea would be to use xcopy ...
0
votes
1answer
40 views

Using for and if commands for a list of strings in a batch file

I am making a batch file for windows. I have just started learning batch scripting and I have some problems here. @echo off set langList=("eng","fre","chi") :Get_ISOlanguage set "ISOlanguage=" set ...
3
votes
3answers
133 views

Batch command how to make a list for set /p

I am trying to make a batch script that asks for user input. The user input should be limited to certain words. If the user enters any other words than e.g. (eng, ger, fra) the user will get an echo ...
0
votes
1answer
29 views

What is the fastest way to remove a directory tree in windows?

I am trying to remove a directory recursively. I don't care about whether the files go into the Recycle Bin. When I open a command prompt and and enter rmdir C:\Users\myself\AppData\Local\atmp /s, it ...
-1
votes
1answer
34 views

How do I convert a setup.py file to an egg file for Deulge 3rd party plugins in Windows?

I do not understand how to change a 3rd party plugin into an egg file using python. An egg file is the only file the deluge will accept as a proper plugin. The problem is that all the third party ...
-1
votes
1answer
40 views

“net user administrator /active:Yes” gives me: “Error 5. Access is denied”

I need to give the administrator 's authorizations to delete a folder, I'm on Windows 7 ultimate x64. To do that I run cmd.exe and run the command below: net user administrator /active:Yes but got ...
0
votes
1answer
34 views

Set path variable and run command

I'm trying to do such task: Setup git in path environment Run bower I want to do that as single command: cmd.exe /c "set PATH=%PATH%;c:\git && bower.cmd" Unfortunately it doesn't work. ...
1
vote
1answer
37 views

How do I extract the IPv4 IP Address from the output of ipconfig

I'm attempting to have cmd copy only a specific set of character from a command output. I've been able to select the line that the phrase exists in but from there I am lost. Here is my command so far. ...
0
votes
1answer
76 views

In CMD.exe, “start sh.exe” creates a conhost process which takes 700 MB memory

Git bash (sh.exe) otherwise takes little memory, but when started with CMD's start sh.exe command, it creates a conhost.exe process that takes 3-700 MB memory. Interestingly start cmd /k sh.exe ...
0
votes
1answer
38 views

How to check if pppoe is already connected in windows through a cmd?

I have accomplished auto wifi connecting and then connecting pppoe as I have scheduled the script to run every 5 minutes so it disconnects my wifi when it runs if it's already connected..! I want to ...
0
votes
0answers
17 views

Why don't ALL Active Connection PID's show up in Task Manager INCLUDING those shown when using the “netstat -ano” command?

I am using Windows 7, but this may be the same in other versions of windows. Why don't ALL Active Connection PID's show up in Task Manager INCLUDING those shown when using the 'netstat -ano' command? ...
0
votes
1answer
34 views

Windows CMD.exe inserting new line after program runs

Does CMD.exe automatically put a new line on the terminal window after a program has run? My program is outputing one line of text, via .NET Console.WriteLine("TEXT"); However, I'm also seeing a blank ...
0
votes
1answer
23 views

piping command output to text files not working

Trying to use CMD to print the output of an executable to a file. The name of the program is adb (in my path). When called without arguments it prints the help text. I can't seem to capture it. adb ...
1
vote
1answer
67 views

Multiple random BSODs

I've been getting different BSODs lately. The most recent, last night was while I was playing Fallout 4, my PC got hung up and gave me a system_service_exception (win32k.sys). I checked event viewer ...
0
votes
2answers
420 views

Annoying popup cmd.exe “FINDSTR cannot find the path specified”

I recently installed a Driver Booster software to detect and install out of date drivers. since installing, I have been getting a popup for a split second every hour or so. as it appears and ...
1
vote
0answers
22 views

Creating a CMD Context menu to copy filepath

So I created a context menu in the registry HKEY_CLASSES_ROOT > * > shell > copy > commmand > cmd /c dir "%1" /b /a:-d /o:n | clip What this does is copies the file name when I right click on a ...
1
vote
1answer
20 views

How to spawn independent sub-cmds from Windows cmd script?

How to run a number independent Windows cmd scripts by making a Windows cmd script that launches the other scripts, e.g. having a do_all.cmd script with: alfa.cmd bravo.cmd charlie.cmd The running ...
1
vote
1answer
43 views

Move Files to an Alphabetically Cataloged Sub-Directory

I have a variety of "files" (not folders) of the same type (e.g. ".docx"), in the same directory. Also, in that SAME directory, I have a sub-directory named "catalog", and within it, alphabetical ...
0
votes
0answers
22 views

Error level of a for command in a batch script

I am trying to get the error level of the isql command executed in a for loop. But I always get 0. for /f "skip=4" %%i in ('echo SELECT COALESCE^(MAX^(ID^)^,0^) FROM LOG^; ^| %isql% -B -Q -U SYSDBA ...
0
votes
2answers
38 views

Running a script when I exit a program

I want to identify when a specific program is being shut down, and run a script when it does. Is there a way to do that on Windows? The thing I had in mind is running automated git commit + push ...
-1
votes
1answer
13 views

Find files between two specific sizes in Command Prompt

I want to find files that are bigger than 2 MB for example, and less than 10 MB. Thanks in advance.
2
votes
1answer
22 views

Command to delete files except those beginning with a prefix from another directory

Let's say I am currently in c:\test\user, but I need to delete certain files in a different directory, say C:\testb\data\diff. The files I need to delete are those that DO NOT begin with AD_. Is it ...
1
vote
1answer
63 views

Cmd.exe does not work from run

I have Windows 10 pro insider preview build 11099. The problem is that cmd.exe doesn't open a window when I start it from the run... It starts a process as I can see in the task manager but I cant ...
1
vote
1answer
22 views

Using netcat for a Minecraft server

I have started learning the cmd code. While I was learning I have discovered netcat and that with it, you can make servers. I tried making a server for Minecraft likes this but it didn't work. Here ...
0
votes
2answers
41 views

What is the default value of the PATHEXT environment variable for Windows?

What is the default value for the PATHEXT environment variable for different versions of Windows? Or even better: How can you reliably determine the original default system value for PATHEXT on a ...
0
votes
0answers
19 views

Generate title within printed download url via youtube-dl

I'm trying to get youtube video link with &title=Video+Title. I've tried to use this cmd line: youtube-dl "https://www.youtube.com/watch?v=YQHsXMglC9A" -q -g --get-filename -o ...
1
vote
2answers
24 views

Escaping “=” (equal sign) in for /f

I'm trying to run the following command in a "FOR /F" in Windows' shell... wmic process where ParentProcessId=%%PID%% get ProcessId The = between ParentProcessId and %PID% keeps gettings replace by ...
2
votes
1answer
73 views

Remove quotes in Forfiles output {cmd}

So I am running this command: FORFILES /S /M *.dmg /C "cmd /c if @fsize equ 1595694080 echo @fname" and the output: "058-26174-078" but the problem is that I want the name without the quotations ...
1
vote
1answer
41 views

OSPP.VBS cmd prompt

I am running into a problem with running the following command in cmd to retrieve the last 5 digits of my Office key. The command prompt is as follows: cscript “C:\Program Files (x86)\Microsoft ...
0
votes
0answers
10 views

Trigger event on LAN cable plugged in [duplicate]

Is there a way by which I can trigger an event (let's say opening notepad) as soon as I plug in the LAN Cable. I want to do this using command line.
0
votes
1answer
15 views

Force domain PC to sync time with another domain PC

I thought this would force workstation 12, at 14:53 (time) to sync with whatever time was on workstation10. at \\workstation12 14:53 net time \\workstation10 /set When I execute the command, the ...
0
votes
0answers
27 views

What is the symbol for all folders in a folder when you dir a path and export to .txt?

I have a folder called root\sound\weapons. In root\sound\weapons I have: ak, m4, m9, etc., and in each of these, I have five sounds. I want to dir root\sound\weapons\ak,m4,m9\*dist.wav /B /O ...
1
vote
1answer
42 views

How to create multiple subfolders in a particular folder with an iterating loop

I want to create 25 different folders with specific names into one particular folder. I know how to create a folder with subfolders but not with multiple folder names in an iterating batch or command ...
1
vote
1answer
18 views

How to execute a folder (vpk.exe) with cmd

I have a vpk.exe application which if i drag a folder onto the vpk.exe the folder gets nameOfFolder.vpk file. Its for game moding. How can i do this with batch. Batch drag and drop onto the vpk.exe.
1
vote
1answer
56 views

How to copy a specific file from sub folders to one other folder

I have a folder named Mods and in that folder I have: root\sound\weapons\ak47\ak47_dist.wav root\sound\weapons\m1\m1_dist.wav root\sound\weapons\m4a1\m4a1_dist.wav etc... In every ak47, m1, ...
3
votes
2answers
39 views

How to export the paths of folders which are inside a folder to an txt with batch or cmd

I have a folder that have folders root/sound/weapon/ak47, root/sound/weapon/m1. root/sound/weapon/m4a1 etc. ak47,m1,m4a1 folders is in root/sound/weapon. I want to export these paths to .txt with ...
0
votes
1answer
17 views

Feeding multiline input (here documents) to commands in cmd.exe scripts

In Bash, I can do something like this somecmd << END a lot of text here END to feed input to a command directly from a script. I need to do the same in CMD.exe batch files (.cmd scripts). Is ...
1
vote
4answers
54 views

How to list open ports and application using them in windows?

I have trouble identifying the application using port 25 on my Windows-10 system. Any useful hints to list used ports and using applications without 3rd party applications ?
0
votes
1answer
32 views

How do I run an app/file using cmd in Windows 10?

This is the path of the file I want to open: C:\Program Files (x86)\D-Link Connection Manager\a.txt All control panel apps opens using start command, but this one is not opening. What's the ...