Category "cmd"

open a specified path in cmd in windows

I want to open a specified path in vscode in windows 10 and I know there is a command that do this: path> code . but my problem is, how can I open a specifie

cx-freeze PermissionError: [Errno 13] Permission denied

I am attempting to use cx_Freeze as an alternative to my usual application for converting .py to .exe (auto-py-to-exe). When I run it in cmd I get: C:\WINDOWS\

How to fix errors occurring on installation of Jupyter Notebook?

I am new to Python and try to install Jupyter Notebook from within a Windows command prompt window using: pip install jupyter But after a couple of minutes of

Windows CMD life parsing (reading) and filter output with Python

I open CMD in Windows, go to C:\Users\OM\Downloads\DCS-COINS\Munt.G_DCS-COINS\ and there run command DCS-COINS -v and then I get instantly moving lines with inf

Anaconda installer not working - Windows 10

I have installed the Anaconda 3 in my windows 10 and it has not installed the Scripts folder and the Anaconda Prompt or Navigator applications. I have come he

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

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