Category "cmd"

How to exit telnet session via command line using azure devops

I am trying to test connectivity from source to a FTP server on port 22 using azure devops commandline tool in pipelines Command for testing: telnet TestSFTP02

Why does this cmd oneliner only work the second time it is called?

Consider the following code executed on a Windows (10) cmd (this is actually a simplyfied version of a script that shows an erronous behavior): type nul >>

npm - The system cannot find the path specified (But then shows the result)

I am using npm after installing nodejs. I have installed it once before and I just finished deleting all the components because it kept giving the error in the

System cannot find path even though it exists in paths

Working on a batch file that calls another batch file. K:\Market Risk>call "K:\Market Risk\activate.bat" The system cannot find the path specified. So I s

How to convert .py to .exe and run as a background function on windows while retaining args?

I'm looking to run a python script that calls commands through subprocess depending on various arguments that are given to it. For ease of use it would be valua

File name pattern matching in Windows command line

I have several files like: a.txt a$.txt a$b.txt b.txt b$.txt b$c.txt I would like to print file whose name does not contain '$' using Windows command line fo

CMD/BAT get date modified of all filenames and append to their filename

I am having trouble with this script. I'll explain below the codeblock. @Echo off pushd "\\server\folder" SETLOCAL EnableDelayedExpansion @FOR /F "TOKENS=2"

'azsphere tenant list' command error occurred

To check Azure Sphere tenant list, I used azsphere tenant list command, but an error occurred like below. >azsphere tenant list --verbose The command failed

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