Category "cmd"

How to get process ID of a specific process using wmic and check on error?

I created a batch script which runs WMIC to get the PID from a specific process. If I open the bat script I see 'ProcessID 1234' or 'No Instance(s) Available.'

How to randomly generate names for each file in folder in batch file?

I want to rename all files in folder to random name but it wants to rename all the files to the same name: ren "c:\Test\*.txt" %Random%.txt pause Output: C:\Us

Switch JDK version in Windows 10 cmd

Is there a way to change JDK version easily in cmd? like the version on mac. Change Default JDK on Mac.

Set 'Local Group Policy Editor' settings from code

Some things are set through the Local Group Policy Editor. Is there a way to set them in code? If not, is there a way through the command line (and therefore I

How do I change the prompt color of Anaconda Prompt (cmd) on Windows 10?

I've been trying to change the color of Anaconda Prompts(cmd), which is for now (base) E:\VSCodeProjects>. I googled for this extensively but seems like: The

pip install ecapture creates an error. How do I solve this?

I cannot install ecapture 0.1.8 Python version: 3.9.6 pip: 21.2.2 I am using Windows 10 I typed pip install ecapture and got a whole bunch of collecting and ins

CMD tree command limit number of levels

How do I limit the number of levels that the tree command goes through in Windows? I need to output the results to a text file for work, but because by default

CMD tree command limit number of levels

How do I limit the number of levels that the tree command goes through in Windows? I need to output the results to a text file for work, but because by default

How to process pathnames with ! within an for /F loop?

In a complex batch file I want to read in files with paths, among other things, to read them into a variable one after the other separated by spaces. This works

cmder - Command to open split cmder

I've searched everywhere and I can't seem to find (what should be simple) a command that opens 2 cmder windows side by side: And run my own commands in each o

Flutter stuck on 'flutter' command - no output to console and it doesn't ever finish

I started following this tutorial about Flutter, and I followed each step until the installation of Flutter on windows, even added flutter to PATH. Now, once I

Flutter stuck on 'flutter' command - no output to console and it doesn't ever finish

I started following this tutorial about Flutter, and I followed each step until the installation of Flutter on windows, even added flutter to PATH. Now, once I

Using call <file.bat> results in "sleep is not recognized as an internal or external command.."

I have a script that calls other commands in a for loop: for %%x in (%CMDS::= %) do ( call C:\%%x %1% echo "%%x complete" ) However, running this results

Are all CMD commands available within powershell?

Similar to other questions, but are ALL CMD commands usable within Powershell? In short, can I use a Powershell window to supplant CMD prompts, and do both CMD

Installing list of programs using batch files [closed]

I wish to make a batch file that installs multiple programs :INSTALLER 1. 7-Zip 2. Adobe Creative Cloud ... ... 44. WinRAR 45. WizTree 46. Zoo

Is it possible to check if a two files shares the same name using batch file?

I have here a example directory that contains files with the same name but different extensions. - MAINFOLDER ˪ TEST.JPG ˪ TEST.PNG ˪ RAN

Time maximums in Windows shell and Why?

I made a simple countdown in Windows Batch Scripting: @ECHO OFF MODE con: cols=13 lines=2 COLOR 4f TITLE Countdown Timer SET /p m=? Minutes: SET /a s = 60 * m

calling devcon from inside windows forms not working

Plan The plan is to disable and subsequently enable a device from inside a windows forms application. To test the first building block of my plan, I open cmd wi

How do I kill the process currently using a port on localhost in Windows? [closed]

How can I remove the current process/application which is already assigned to a port? For example: localhost:8080

psexec remote computer name

I am mostly new to this kind of stuff and running into a problem I don't know how to solve. Basically, it's looking at test.txt and using the list of computer n