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
10 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
29 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, ...
0
votes
1answer
27 views

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

So 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
19 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
102 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
12 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 ...
-1
votes
0answers
18 views

Associate many filetype [closed]

I have script for change file type extensions and changed all filetypes but TXT without only. @echo off rem --> Check for permissions >nul 1>nul 2>nul "%SYSTEMROOT%\system32\cacls.exe" "%...
-2
votes
0answers
15 views

Wget follow images to their full resolution and download all to one folder

I want to download the full resolution to every photo on this ArtStation profile: https://www.artstation.com/cedricpeyravernay Is there a quick console command that would do this?
0
votes
2answers
84 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
11 views

Dos Xcopy - Empty parent directory in Root will not copy to another empty directory in root

What I am trying to do is copy an empty directory located in the root of a drive to another empty directory located in the root of the same drive as the source. Eg. xcopy C:\example2 C:\example /E /...
0
votes
0answers
26 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
49 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
53 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
80 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
39 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] @="...
0
votes
0answers
19 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
35 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
33 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
83 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
82 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
40 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
37 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
31 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 ...
2
votes
4answers
60 views

In Windows, add a prefix to multiple PDF files

I have a folder with 100 invoices & they all need to carry the prefix "INVOICE_" in front. I tried to run a command but it doesn't seem to be working. I've tried ren * INVOICE_*.PDF but it doesn't ...
2
votes
0answers
50 views

Terminating a Process from CMD: Softest to Hardest

I was wondering if anyone had experience using command line to terminate processes using taskkill and WIMC. I was wondering if anyone knew the order of how "hard" of a close/terminate these commands ...
0
votes
1answer
83 views

telnet connection failed on port 23 [closed]

i'm suppose to log into remote machines using telnet but in the task i have, there's no ip adresses for that ! instead i have hostnames. i'm a bit new in this and i don't know what i'm suppose to get. ...
1
vote
1answer
84 views

Is there a reason cipher /w fills up temporary files instead of writing to the raw disk?

The Windows command cipher /w can be used to securely wipe a hard drive's free space without the use of third-party tools or GUIs: cipher works by creating a folder called EFSTMPWP on the root of the ...
7
votes
1answer
151 views

How to wipe free space in Windows natively

Due to the nature of how filesystems like NTFS work, files that are deleted "permanently" from within Windows aren't immediately deleted - they're simply marked as deleted from the Master File Table (...
0
votes
0answers
18 views

is there a way to use a Bash/Powershell script to send hotkey commands to terminal

I have been working on a project and have gotten it to the point where I need to be able to send hot key macros to the terminal in order to invoke or stop a process. I have been using python up until ...
0
votes
1answer
43 views

plink - Password change required but no TTY available

I have 1000 servers to work with, but today all the server passwords expired.  I regularly use plink (PuTTY) to connect with 1000 servers.  Today I got error “Password change required but no TTY ...
2
votes
2answers
269 views

List all user accounts in a Windows Domain group via Command Line?

I would like to find\create a command to list all user accounts with all details on a Windows Domain Controller (Server 2012 R2) from a specified group. Using "net users" would be perfect, but I have ...
0
votes
0answers
36 views

REG add ignores half data

I want to add the following registry key using cmd/batch file Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce] "RenameComputer"="c:\\...
2
votes
0answers
41 views

Can I upgrade cmd.exe on Windows 8.1 to the Windows 10 version? [duplicate]

I work on a Windows 8.1 Enterprise PC. I Would like to upgrade my Command Line terminal (cmd.exe) to the one offered in the latest version of Windows 10, which has many handy features that the old one ...
0
votes
2answers
57 views

how to close and start a program from cmd in Windows XP?

I've been trying cmd commands such as "taskkill" on Windows XP and apparently they don't exist. I'd like to be able to close and open a program from the cmd because I need to connect to the Windows ...
0
votes
1answer
96 views

How can I remove the service and folder permanently?

takeown /f "C:\Program Files (x86)\AlibabaProtect sc delete AlibabaProtect I ran the above and killed "Alibaba PC Safe Service" via Task Manager. Then I ran the following: rmdir /s /q "C:\Program ...
0
votes
1answer
43 views

Assign aliases using FOR in Windows cmd.exe

I've been trying to use a loop to create multiple aliases without success. I'm not a professional, please bear with me... Does anyone know what's wrong in my code or how I can implement this in the ...
0
votes
0answers
89 views

Correct convert batch file from vlc command line

I am using VLC to transcode stream from enigma2 satellite Dreambox to be able to watch my channels over the Internet anywhere. If I set up VLC by GUI all is ok working. Because it is too much steps to ...
0
votes
0answers
36 views

What is causing these unwanted key presses from my keyboard?

I use this mini keyboard most of the time on my Windows PC. I'm usually gaming with a controller on the couch with my PC hooked up to the projector and a full-sized keyboard just gets in the way. It ...
0
votes
1answer
59 views

How do I check what a txt file contains, and if a fixed number of the last characters match a variable, then delete those who match?

I have a batch script that need to check what a textfile (.log or.txt) contains. When it's done checking, it needs to delete those lines that contain the same configuration of charachters that is ...
0
votes
3answers
55 views

How do I return from an awk script back to the command line?

I have a simple awk script, test1.awk: { x=temp; print x; } When I run it from the Command Prompt with: awk -v temp=hello -f test1.awk I get just a cursor.  I hit Enter, it writes “hello” ...
0
votes
1answer
87 views

How to remove a file named `con`? [duplicate]

I have a file named con.php. I tried to remove it through the Windows command line but it returns an error: Syntax for filename, directory name, or volume label is incorrect.
0
votes
0answers
34 views

What is a session in the context of Windows OS?

I am trying to learn this dos command, but I get lost about what is defined as a session here. https://ss64.com/nt/query-process.html I understand that a session is a timeframe of information ...
0
votes
0answers
16 views

wingnu32 env tool does not print variable

I found the tip to use the wingnu32 tool env from , which is installed on my Windows 10 device anyway, as Git and Docker are installed. However, I don't get it working as wished. It behaves as ...
0
votes
1answer
45 views

want to add reg using vbscript

vbs code are as following : Set oShell = CreateObject ("Wscript.Shell") Dim strArgs strArgs = "cmd /c REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RUN" /v "...
0
votes
1answer
35 views

Batch file not working

I am trying to run some commands in batch file on windows server 2012 but it's not working properly. What i am doing here. Get all files(.docx) from current directory in loop, convert file into pdf ...
1
vote
1answer
47 views

Highlight all the numbers in Cmd

How can I highlight the numbers in cmd? i.e, I want to highlight the numbers automatically when typing and in the old commands. How can I achieve this? I want to differentiate numbers from other ...
1
vote
1answer
21 views

No output from FOR loop over command

I've got some files I just committed in my git repo: C:\core\guidewire\Release\5.3_MT1\ClaimCenter>git diff --name-only head^^ ClaimCenter/modules/configuration/config/web/pcf/TabBar.pcf ...
0
votes
0answers
6 views

Auto highlight a custom syntax in cmd [duplicate]

I am trying highlight a syntax in cmd automatically when typing. Like in: C:\Users\User>echo "Hello" "Hello" C:\Users\User> In above command (echo "Hello") , I would like to change the color ...
0
votes
0answers
13 views

converting cmd commands into windows version

I started learning cURL and graphQL. Book tells me I need use this command line in terminal $ curl -H 'Content-Type:application/graphql' -XPOST https://www.graphqlhub.com/g\ raphql?pretty=true -d '{...
0
votes
1answer
36 views

Win10 python called from 'cmd' different than 'run' (2 versions installed)

I installed python 2.7 then needed to switch to python 3.5. I changed all my environment variables (system & user) to remove 2.7 from PATH (I don't want to remove python 2.7, just keep it in ...