Questions tagged [cmd.exe]
cmd.exe, or the Command Prompt, is the default command-line interpreter for many Microsoft-created operating systems.
3,013
questions
0
votes
0
answers
19
views
Source command in Mingw32 and Python [closed]
I need to use the command : source/c/msys/1.0/auto/07p/cmds/auto/env.sh in Mingw32 or in Python but the answer was: no such file or directory ? . I'm sure that the file is located in correct path.
any ...
0
votes
0
answers
29
views
Passing `Set /p _var=/irc:` when used by findstr, the colon does not get processed the same as if I typed `findstr /irc:` Example provided
I have search through the undocumented 'findstr' thread, SS64 findstr-escapes as well as SS64, Escape Characters for how to include the colon in the following way; no luck with either.
Example batch ...
0
votes
1
answer
21
views
Windows pipe curl output to cmd
can anyone help me out here:
curl -sSL https://pastebin.com/raw/CHCq9VQt | bash
I know this command will retrieve the raw text from pastebin(just python --version) and run that in bash(linux)
I need ...
-1
votes
0
answers
35
views
How to see all IP Addresses in the same LAN as mine? [duplicate]
I need to see the IP addresses of PCs in same LAN as mine (work LAN) to connect to my colleague's PC with SSH. I'd like to use PowerShell or Command Prompt.
0
votes
1
answer
27
views
Create a archive split into blocks of a maximum size using Windows shell
As example. I want to compress a directory of 100GB split into 10 archives of 10GB using cmd or powershell, non-interactive without installing additional tools. Using tar would be awesome but ...
-1
votes
1
answer
54
views
Uninstall SourceTree using cmd or powershell
I would like to use cmd or powershell commands to uninstall SourceTree from windows 10 machines on my network. The reason I need a terminal way is that I have to do this remotely and simultaneously ...
0
votes
1
answer
39
views
Trying to run some apps from cmd doesn't start them properly
Noob here.
I was playing around with ssh and was trying to run some commands (start some apps) on my ssh server (win10). Running anydesk.exe for example, actually opens the program and I can connect. ...
1
vote
2
answers
82
views
Passing a variable to a variable within a batch file
I'm grabbing a value from the registry assigning it to %%b and trying to pass %%b to another area within the batch file as shown below.
But it comes out as %b.
It does not pass the variable a second ...
0
votes
1
answer
788
views
What is wrong with this "move" command?
I am trying to use command in Windows 10 as administrator to move 27,000 HTML files from one directory to another. When I use the command it reports that there is a syntax error. So what is wrong with ...
1
vote
0
answers
86
views
How to pass a double quote as a command line argument in Windows CMD?
argc parameter in main function doesn't include redirection command [<, >], but I faced a confusing problem when using a double quote:
Shell: CMD
I expected argc is 3 and Yes!:
a.exe aa bb <...
0
votes
1
answer
61
views
Windows tar command: exclude folder in current folder but not subfolders
I am trying to archive some folders with the tar command in Windows, and I would like to exclude a directory in the current folder, but not in subfolders.
The example below is using the technique ...
-1
votes
1
answer
39
views
Start .bat file via php
I'm using
system('START C:\[address]\refresh.bat');
but when I start this I get:
C:\[address]>git fetch
'git' is not recognized as an internal or external command,
operable program or batch file.
...
0
votes
0
answers
41
views
Batch file output redirection to a text file; not complete
Examples:
Parent-Dir= 'USA zip-code', Sub-dir(s)= 'yyyymmdd'
Example filename= 139_7_IPC1_NVR16-8580_20230101104640.jpg
There are six-hundred and ninety-nine files in the directory-tree that the, ...
1
vote
1
answer
46
views
I get question marks whenever I try to list netsh interface names on cmd
Running windows 10 on a TOSHIBA for work. I am trying to manually set a specific MTU for my Wi-Fi, but whenever I try to run netsh int ipv4 set subinterface "Wi-Fi" mtu=1480 store=persistent,...
0
votes
1
answer
18
views
Anaconda Navigator opening and runing
Why is my Anaconda Navigator taking so long to open, and runs so slow? It is at loading applications status permanently. How to solve it?
I have already killed processes connected with Anaconda ...
6
votes
1
answer
827
views
Windows: cmd.exe history (F3, F7, arrow keys, etc) stops working when running cmd.exe nested within itself
It's a strange thing: I've just noticed that the command prompt history works correctly when running "cmd" nested within itself up to 3x, but fails at 4x and above. It seems consistent ...
0
votes
1
answer
68
views
How to Access and Inspect `edge://translate-internals` via CMD-Batch or PowerShell?
I've encountered a specific issue with the Microsoft Edge browser, particularly related to its translation feature. Similar to the situation described in this Reddit post, I am trying to find a way to ...
0
votes
0
answers
18
views
Esc fails on vim via ssh through git bash
I am a heavy user of vim and, by extension, the Esc key.
Today, for the first time, I've noticed that it sometimes sends a literal [ to the screen instead of changing to command mode as it should. ...
0
votes
1
answer
74
views
(SOLVED) how to enable and disable device in one batch file [duplicate]
I want a shortcut that enable/disable a network card according to its status. I figured out how to enable or disable using either devcon, wmic and pnputil or found some Q&As here that suggest ...
0
votes
1
answer
60
views
How Can I Change File Explorer's Default View to "Details" and Group by Type Using CMD/Batch or PowerShell?
I'm looking to customize the default settings of File Explorer on my Windows 10 system. Specifically, I want to set the default view mode to "Details" and have files always grouped by "...
3
votes
2
answers
812
views
Merge multiple files into 1 file with a newline character between the contents of each file in command line
I've got for example 2 files with the contents
test.txt
1
test2.txt
2
I want to merge these 2 files into one file.
I saw on related questions that it was recommended to use
type *.txt > merged....
0
votes
0
answers
43
views
starting chrome via WebDriver session wont use default profile - windows
I came from this GitHub but there are mainly linux prof. When I run the program via cmd chrome is opened but without any default profiles:
chrome via program
When I run chrome direct via cmd with &...
1
vote
2
answers
161
views
How can I put 2 different texts of 1 color each in a BAT file?
How can I put 2 different texts of 1 color each? Because when I tried to put, for example // color B to a text and then I put color A to another text, I took color A, which was the code below and the ...
0
votes
1
answer
280
views
How to get ASCII art text to be displayed when I opened my .bat file?
I wanted this ASCII art text to be displayed when I opened my .bat file, but the only thing that happens is that when I open the .bat file it closes instantly and I know that it is a problem with how ...
2
votes
1
answer
59
views
How to identify unrepaired corrupted files through the log created by dism?
If by running the command " Dism /image:C:\ /Cleanup-Image /RestoreHealth /Source:D:\install.wim /LimitAccess
", dism fails to repair some system files, does it create a log and mention them ...
0
votes
1
answer
64
views
How to connect to Wifi via WPS-PBC from win cmd
Have any ways to connect to wireless network by WPS PBC (push button) from command line in Windows OS?
May be needed add special profile in netsh?
0
votes
1
answer
139
views
Delay in Command Prompt startup After Windows 11 Update
I'm encountering an issue with Windows 11 where there's a noticeable delay (about 2 seconds) in the text appearance when I launch the terminal. The terminal window itself pops up right away, but the ...
0
votes
0
answers
68
views
Converted BAT to EXE Now Path to Temp Not Local
After converting Test.bat to Test.exe the Test.exe not finding local input file 360_2016.mp4 and the EXE file CMD Prompt displaying its path is to TEMP not local directory/folder. The EXE file is not ...
0
votes
0
answers
32
views
How to open the windows 10 keyboard with a batch file on tablet mode without minimizing current window?
I have a .bat file with the following:
start OSK.exe
This opens up a keyboard. Now the issue is that this batch file is ran when the PC is on tablet mode. Unfortunately this causes the current window ...
-4
votes
2
answers
100
views
If I changed my MAC address, does it effect my ethernet to internet in anyway?
I'm on a public network and I can connect to WiFi for free but to use internet I need to put username and password.
And when my card ended I usually see who's the network with me like I'm doing right ...
0
votes
1
answer
119
views
Why all the MAC addresses on my network is the same?
When I write arp -a on CMD I found all the devices that connected to me network. But the problem is they all have the same MAC addresses?
How can I get the MAC addresses for all of them? Is there any ...
1
vote
0
answers
250
views
Access Denied Error: Node.js works, but npm commands fail with 'Access is denied' on Windows
I'm encountering an issue where Node.js seems to be working fine (as evidenced by running node app.js successfully), but npm commands are failing with an "Access is denied" error on my ...
1
vote
0
answers
185
views
How to NULL output of Taskkill command
Sometimes Windows Update Service aka wuauservstarts on its own an and starts downloading updates even though I have already disabled it. So I created this command in task scheduler.
program: taskkill....
4
votes
2
answers
246
views
How do I persist windows variables set in a CMD file?
in windows I would like to have a cmd script that I can run which sets an environment variable. The variable should still be set after the script executes. The variable is a token of sorts and is ...
0
votes
1
answer
127
views
How can I find out what is causing cmd.exe to be called on startup?
Lately I've noticed that every time I boot up my computer a cmd window pops up trying to open some long-uninstalled software.
I was able to use Procmon to find out what the actual commands being ...
1
vote
1
answer
56
views
Weird effects when one CMD script runs another, from inside a function
When one BAT or CMD script runs another (without call), that should not return, right?
It sometimes does!
And it searches the same function label in that other script?!?
Example: (what do you think ...
0
votes
1
answer
141
views
"dir like" sorted by time in a batch file (.bat) using a piped string command: Get-ChildItem | Sort-Object -Property LastWriteTime, not working
I'm trying to build a trivial batch file in Windows for command line to execute a "dir like" command to list the directory contents sorted by time, avoiding typing: Get-ChildItem | Sort-...
1
vote
1
answer
289
views
Press any key to exit in command prompt?
I have an autohotkey script that runs cmd to check the hash for the selected file.
I use certutil command for that task.
#h::
hwnd := WinExist("A")
for Window in ComObjCreate(&...
0
votes
0
answers
89
views
jupyter notebook - ERR_CONNECTION_REFUSED?
I've been, stuck with this, issue, from many hours, recently instlled jupyter, and its not laucing correctly, it doesnt open chrome - default browser automatically either..
To access the server, open ...
0
votes
0
answers
40
views
Where did mklink go, it is not recognized in Windows-11 Home? [duplicate]
Following some hack for changing home directory name, you need to link the old directory to the new. Instruction said to use mklink. However, mklink is not recognized in Windows-11 Home.
Where did it ...
-1
votes
1
answer
102
views
Installing micropython gone wrong
I am trying to install MicroPython on my computer for microprocessor programming.
I used this instruction pip install esptool then the cmd printed out this error:
Using cached esptool-4.6.2.tar.gz (...
0
votes
2
answers
400
views
How to close cmd windows when I execute a batch file
I tried making a quick RDP connection as a batch file with ID, password, etc....
And I found this article:
How do I make a shortcut of a remote desktop connection and include the password?
From user: ...
0
votes
0
answers
290
views
Changing the windows theme using command prompt
i want to ask how to change the windows theme using command prompt? this is basically to fix a problem. someone likes light theme i like dark theme. to fix this hassle since time to use pc is random, ...
0
votes
1
answer
110
views
How to capture two audio sources on separate tracks with FFmpeg?
I'm currently using the following FFmpeg command to record my screen and two audio sources:
"C:\FFmpeg\ffmpeg" -f gdigrab -i desktop -f dshow -i audio="virtual-audio-capturer"
-f ...
0
votes
1
answer
710
views
How do I find CMD Properties window in Windows 11?
In Windows 10 and earlier, opening a CMD window and right clicking on the title bar brought up a Window titled CMD Properties.
When I do that in Windows 11, I get a new tab titled Settings, but with ...
2
votes
3
answers
694
views
Batch file running installation through intune
I have created a batch file that will run an installation through intune.
it will install the application
it will install the configuration file
And I need to add a 3rd step, which would then add a ...
0
votes
0
answers
45
views
console created scheduled task does not exist?
Creating scheduled task form command line with elevated privileges in windows 10:
schtasks.exe /Create /XML "FILES\test.xml" /TN "TEST" /RU "SYSTEM" /RP
it report
...
1
vote
1
answer
1k
views
How to run a PowerShell "multiline-oneliner" from cmd.exe?
I'd like to copy/paste some PowerShells commands from cmd.exe
Say Write-Output "first line" and Write-Output "second line"
The very basic way is:
powershell -NoProfile -Command &...
0
votes
2
answers
105
views
Windows taskkill not finding titled cmd.exe
I'm starting a lot of .bats, in which I execute, for example:
title Waterfall-Proxy
I do this, to have an easier closing the right cmds when I want to shut them down.
To shut them down, I'm using:
...
1
vote
2
answers
113
views
How to open a random picture in a catalog?
I have an unknown list of folders and subfolders containing pictures
I want to run 10 random pictures at 30 second intervals
If possible, close the previous one after the timer expires.
I tried to ...