Category "cmd"

Is it possible to write to Command Prompt with python?

Im opening Command Prompt with os.startfile('C:\\WINDOWS\\system32\\cmd.exe') and after opening the program id like to write the python file for it to run C:\U

How do I echo a greater than sign in Cmd?

How do I echo the "greater than" character in cmd? I would like to escape the "greater than" sign (>) because I need it to echo to another .bat file. Echo ne

Command prompt not opening in windows 10

I am trying to open the command prompt but if I open it just opens for a second then gets closed. I also use the command prompt for vscode and I am not able to

On Python, How to open multiple command windows simultaneously (in cascade)

I intend to monitor connectivity (by ping ) 3 devices into the net. So far I tried the follow scripts but in some, the commands run in a single windows import

Using ssh to login to linux terminal from windows and run command in a logged in shell

First of all, this may seem like a duplicate question but I have searched stack overflow/various other forum sites and still haven't managed to find a solution.

Notification in CURL command

i am running one curl command to generate token. This command i am running on commandline. Is there any way to have notification (in email or like prompt or pop

how to return result in cmd if you use adb to send a broadcast

I have a BroadcastReceiver like this: class PlatformAccountReceiver: BroadcastReceiver(), CoroutineScope by MainScope() { override fun onReceive(co

Tensorflow is partially imported

When I run a script and import Tensorflow from cmd or Visual Studio Code it throws me the error but when I run it from Anaconda prompt or Spyder it works well.

Delete old entries of the event-log with PowerShell or CMD? (Not all of them | With period of time condition)

Please take a look at these two threads : how-to-clear-eventlog-with-powershell-or-wevtutil delete-old-entries-of-the-event-log-with-powershell Some days ago so

Windows10 connect network folder and find files with keyword in path

Newbie in windows command. I am trying to connect network folder in windows10 and find the most recent files(created in says past one day) with path includes sp

Read a value out of a "complicated" JSON file [closed]

I'm using jq, but I didn't manage to get a value extracted from a .json-file (I got generated by mediainfo) in my batch-script. How can I get

Why does cmd DIR search include files that start with the 3 searched letters but then differ?

If in a directory I have two files, test.pro and test.properties, and I run dir /s *.pro to find all files with the .pro extension, it lists both files. However

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