Category "cmd"

Call multiple .bat from another .bat without waiting for one to finish

So, I want to make a script that will execute 2 .bat files and start some .exe files. However, the .bat files are supposed to keep running. I have something l

How to parse/pipe cmd line output using Powershell to an object

I have an *.exe that outputs this data when I run this PowerShell command: & $myExe list Where $myExe is something like C:\Temp\MyExe.exe and list is an a

How can I split text when there's an uppercase character? [closed]

I am making a batch file where I want to say "welcome <username>" but the username could be, for example, like "HiThere" and I want to p

How to execute a batch file on uninstall in Inno Setup?

I'm using code from How do you execute command line tools without using batch file in Inno Setup response to execute all my batch files on installation (before,

(Python) Hash function returns different values depending on how the script is called (cmd vs IDE)

I have a script that scrapes cell value data from an excel workbook into nested tuples. Then it returns the hash of that tuple. I can run it in my IDE (Spyder

Is there a way to hash a command output without the use of a temp file?

In command-prompt you can see the md5 or other hash of a file using certutil -hashfile <filepath> <hash algorithm>. This was the only option I can f

get "wevtutil epl test.evtx /q:" to utilize multiple selects to save one event log file

Im trying to basically do the same thing event viewer can do by creating a custom view and then save it as a evtx file. Here is what I have so far as well as th

Could not import "D": FLASK_APP

from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' I am new to Flask. I wrote this basic code and sa

Python not recognised as an internal or external command in windows 7

I have installed python 2.7.11 from this link and then restarted my system. However when I go to cmd and run python --version. It gives me an error that py

Opening project in VSCode using batch file

Disclaimer: I read this and this before, but it doesn't work as I want. Description: I decided to create set of batch files for convenient way to run different

CMD batch - encode file to base 64 and trim characters and new line

I'm trying to make a batch file from CMD with the following commands: Convert file to base 64 - using certutil command this is how the contents of the base 64

How to run devenv.exe command line switches (for Visual Studio 2019) from git bash

My primary use case is I'd like to use devenv.exe /edit command to open files in an already running instance of Visual Studio 2019, using git bash. The issue I

Why is %random% in Windows time based and how to get a real random number?

I use the following script: set /a num=%random% %%1000 +3000 timeout /T %num% taskkill /F /IM chrome.exe I trigger it using Windows task scheduler on multipl

Get DNS resolution time with BATCH (cmd)

I'm trying to obtain the resolution time of my DNS server, but I'm not sure that I'm doing it well. First of all I tried to make a ping to my DNS server IP, a

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