Questions tagged [cmd]

Command Prompt (executable name cmd.exe) is the Microsoft supplied command line interpreter on OS/2, Windows CE, and all Microsoft Windows operating systems. Use this tag for questions regarding programming scripts or on commands available to run from the Command Prompt. Add tags for which version of Windows, and tags describing the task or issue.

Filter by
Sorted by
Tagged with
0 votes
1 answer
41 views

Fatal error in launcher: Unable to create process using '" [closed]

I was installing pip in my windows, and when I checked the version they gave me the result this C:\Users\misba>pip --version Fatal error in launcher: Unable to create process using '"C:\Users\...
Misbagas's user avatar
-1 votes
0 answers
23 views

How do I install pygame library [duplicate]

I want to use the features of pygame library but quite not sure how to install it I tried using pip install pygame but it shows 'pip: command not found' I'm not sure what to do now. I have tried ...
Aashish Raj's user avatar
-1 votes
0 answers
21 views

Cannot build Attendize using Docker [closed]

When i run: docker build -t attendize . in my cmd i get the following output: Microsoft Windows [Version 10.0.22621.2715] (c) Microsoft Corporation. All rights reserved. C:\Users\camie>cd ...
Schmeitzke's user avatar
0 votes
1 answer
31 views

Imagemagick: How do "-define" with several parameters in it?

When using a batch-file with IM, I have a need of defining several parameters for "-define". My original code-line is: magick "inputfile" -colorspace RGB -filter Lanczos -define ...
Kaley's user avatar
  • 1
-1 votes
0 answers
40 views

failed to create process. when run websploit in command prompt [closed]

why when I run websploit i get messages like this failed to create process. so I start it with the type websploit and the result like this 'failed to create process.' this is my process for running ...
Misbagas's user avatar
1 vote
2 answers
72 views

How to start a Frida server from cmd?

I'm trying to start Frida from Windows cmd but its hanging and not proceeding to the second & command: >adb -s 127.0.0.1:16480 shell "/mnt/shared/frida-server &" & frida -U -n ...
Luma's user avatar
  • 11
-3 votes
0 answers
60 views

C# use timer delay between ipconfig /release, /renew [closed]

I want to know how to use cmd.exe ipconfig /release and after 5 seconds cmd.exe ipconfig /renew in C#. I can only do ipconfig /release. But I don't know how to do timer with ipconfig /renew together. ...
Avril14's user avatar
2 votes
0 answers
49 views

How is multiplication in Libfixmath performed?

I am porting the library mentioned by Wikipedia https://en.wikipedia.org/wiki/Libfixmath in CMD Batch. The library uses an Q16.16 format. I am trying to port it in Q16.16 or Q15.15 format. What I can'...
Einstein1969's user avatar
-1 votes
0 answers
44 views

How to find large files in sub directories with Windows batch?

I try to detect large XML files (over 500 MB) in subdirectories of my batch file. Here is my script. It actually lists all files. There is used the comparison operator GTR. But it looks like there is ...
Gwenael's user avatar
  • 19
-1 votes
0 answers
24 views

"Warning: MaxListenersExceededWarning while creating React app with 'npx create-react-app'"

I am facing an issue while trying to create a new React app using the 'npx create-react-app 'command in the terminal. I am encountering the following warning: This warning seems to be related to the ...
Sneha's user avatar
  • 1
0 votes
1 answer
52 views

Batch: Action in a for loop depending on running processes

What's the best way to periodically check using a Windows batch script whether one or more processes are running, and then execute one block of code if any of those processes are running and a ...
velw's user avatar
  • 11
-1 votes
0 answers
66 views

Why is NuGets.Targets unable to load the service index?

I try to create and run .NET console application from CMD. I run into an error with following text output: C:\Users\user_name\gradebook\src\GradeBook>dotnet run C:\Program Files\dotnet\sdk\8.0.100\...
RAJEEV RANJAN RAJ's user avatar
0 votes
2 answers
73 views

Download internet file using batch file with rename issue

I am trying to write a Batch file to download different jpg files from the internet. The path is in the format: "https:\abc.com\def\ghi.jpg\jklmno.pqrstuv.wxyz". I would like to use a batch ...
Alex's user avatar
  • 1
-2 votes
1 answer
55 views

How do I rename files with list of names using command prompt? [closed]

I have a .txt file with a list of names such as: george_washington thomas_jefferson meshach_browning I want to use the names list to rename the .xhtml files within a directory. For example: 00001....
WV-Mike's user avatar
-2 votes
0 answers
12 views

How to run keyboard shortcuts with command line? [closed]

I am using KDE Connect's command function to add control features to my connected devices. For example, I want to adjust YouTube video speed (Shift + ./, for slow down/speed up) but I don't know how ...
myriadofmistakes's user avatar
-1 votes
0 answers
26 views

Can't paste a complete mongosh command on cmd prompt. It gets incomplete or unformatted. Why?

I have a list of commands (more than 1000lines) in a txt file that I need to input in my db, on MongoDB: use atp; var duplicates = db.atpplayers.aggregate([{$group: {_id: {PlayerName: "$...
Pedro Canelas's user avatar
0 votes
0 answers
39 views

C#: how to start custom executable from current dir

I've the situation: I made c# program, that runs program interface. Also I made python script, made an .exe with pyinstaller. My goal is to run this python exec from c# code. I wante to use smth like &...
Kostia Koval's user avatar
0 votes
0 answers
36 views

cmd file not working on startup, only if manually started

I have a cmd file that is supposed to start a ps1 script on startup. If I run the file manually, meaning that I navigate to the ...\Start Menu\Startup folder and double click the file, it runs without ...
Gaga02's user avatar
  • 3
0 votes
1 answer
52 views

How to read an output of filezilla-server-crypt command with a cmd/batch script?

in order to migrate an FTP database to an SFTP database, I need to create a script that modifies the filezilla server pro enterprise xml file. For the user, I need to encrypt the password. I've found ...
Andréa Madrid's user avatar
-2 votes
0 answers
24 views

Remove all number from a text file content CMD Windows [closed]

Dears I have a text file containing the below lines and others Hello23112023202 HI_50902211 etc how I remove all number using cmd windows or bat file to be Hello HI_ i tried with "type" &...
Mostafa Elsayed's user avatar
-1 votes
0 answers
25 views

curses.addstr not showing output to console

import curses from curses import wrapper def main(stdscr): stdscr.clear() stdscr.addstr("Hello!!!") stdscr.refresh() stdscr.getkey() wrapper(main) Well, i tried to run a ...
Sarowar Shouvo's user avatar
-4 votes
0 answers
34 views

Exception has occurred: ModuleNotFoundError No module named 'kafka.vendor.six.moves' [closed]

CAN SOMEONE HELP ME WITH THIS CODE? THIS IS MY ERROR:Exception has occurred: ModuleNotFoundError No module named 'kafka.vendor.six.moves' I AM USING VISUAL STUDIO CODE and the error said "...
Micah Arayan's user avatar
-2 votes
0 answers
25 views

External terminal (cmd) closing after running c++ code using mysys mingw [closed]

When I run the code, cmd opens for a second and closes immediately. Works fine when using internal terminal. (I'm using Visual Studio Code). I don't want to add system("pause") or anything ...
Verox 2903's user avatar
0 votes
1 answer
37 views

How to run a command on Stripe CLI? (to edit the checkout page) [closed]

I'm trying to add a tax ID field to my Stripe-hosted checkout page and I was told by the Stripe support that this is only possible via the Stripe CLI. So I have successfully installed the Stripe CLI ...
andrej33's user avatar
-2 votes
0 answers
32 views

How to pipe midi files into midi to csv converter in batch?

I am using https://www.fourmilab.ch/webtools/midicsv/ to convert midi files into more easily readable csv files, but don't want to go through them manually. I tried piping the input of pushd somedir ...
Thor Howell's user avatar
0 votes
1 answer
43 views

Using JNR-FFI to output a char table to CMD screen buffer crashes

I'm trying to write a library in Java that'll use C++ code to access an write directly to console screen buffer in CMD. I've managed to print out one time, but it crashes after that with exit code ...
SX12C's user avatar
  • 1
0 votes
0 answers
51 views

Websocket r script won't stream on cmd

Can a websocket R script run from a Windows command prompt? Developing a websocket app in R that streams data 24 hours a day from a remote server. The app runs fine in RStudio. When I try to run it ...
fip's user avatar
  • 53
0 votes
0 answers
40 views

How can I use Python to interact with a command line multiple times without losing instance specific variables like working directory (Windows)?

Is it possible to send multiple commands in cmd without opening new instances? I tried several modules. I even found several solutions, but all of them are only applicable on Linux. For example, this ...
Victor's user avatar
  • 11
-1 votes
0 answers
41 views

Retrieving Windows Service Status Across Multiple Computers via PowerShell or CMD [closed]

I am looking to create a PowerShell script or CMD batch file to check the status of a specific service on various computers remotely as part of my daily routine. Is there a way to generate a report ...
mahesh's user avatar
  • 11
-2 votes
1 answer
50 views

Create a loop on a batch file [closed]

I want to create a while loop on a batch file. The file should run repeatedly the following two lines (one is a fortran code and the other a matlab): main.out matlab -batch "path\matlab_code.m&...
phdstudent's user avatar
  • 1,058
0 votes
0 answers
29 views

Running unelevated SUBST from an elevated command prompt/shell

I need to run SUBST from an elevated shell until the elevated shell kills it or runs SUBST #: /D without being elevated. I need such an approach because I need to both: Run elevated commands Run ...
Cpt Dingus's user avatar
-3 votes
1 answer
60 views

Execute a application in EC2 instance using cmd ssh from local PC

I have created a EC2 instance in AWS. I have acquired the cmd of the windows EC2 instance using ssh into it. the following is the command i have used to login, ssh <user-name>@<ip-address Eg: ...
Dhanush Kannan's user avatar
2 votes
1 answer
57 views

WMIC LastBootUptime format problem, total number of days required

I am trying to calculate the last time the computer was restarted with CMD. But I don't want it in Year/month/day format. Send the total number of days, hours and minutes Here's what I've been able to ...
Hakan DAŞTAN's user avatar
0 votes
1 answer
84 views

How to view the running JAR path in cmd or PowerShell?

JAR path is "D:\AA\BB\Test.jar" Change CLI current path to "D:\AA\BB" Execute javaw -jar Test.jar Close CLI In the task manager, there is only the "javaw.exe process", ...
Shire's user avatar
  • 21
-2 votes
1 answer
86 views

Is it possible to avoid pressing Enter in the CMD? [closed]

I don't have enough programming knowledge to discuss in detail, but I will try to describe the matter as best I can. I have a small game using the CMD as a graphical environment. The character moves ...
Bryantcore's user avatar
0 votes
1 answer
53 views

Replace portions of a string in a batch file

As a CAD Manager for a small firm, I often have to set up Project folders with Client specific resource files for each new project. It can be a tedious process with files and folders in various ...
AndCAD's user avatar
  • 1
0 votes
1 answer
68 views

How to use the output of a command in another

I'm trying to write a batch script to extract both audio and video from some mp4's in a same folder using ffmpeg, then remerging them in an mkv, but trying to conserve the audio language. I got a ...
jaimepm's user avatar
  • 15
-1 votes
0 answers
29 views

Echo Date and Time in YYYYMMDD HH-mm-ss in Windows Command Prompt [duplicate]

I have been trying to use the Windows Command Prompt to echo the date and time in this format: YYYYMMDD HH-mm-ss. The command I have so far is: echo %date:~-4,4%%date:~4,2%%date:~7,2% %time:~0,2%-%...
GTS Joe's user avatar
  • 3,712
0 votes
0 answers
38 views

Windows offline - Change User Language with downloaded language packages

I have a Windows PC, with Windows 11 Enterprise 23H2 installed, and an English System language. I want to add a new language, for example, Chinese, and make it the System language instead. This PC has ...
Felix Waltl's user avatar
0 votes
2 answers
80 views

Win Batch File - Remove First File Extension

Using rename command in a batch file in Windows is there a clear way for remove the First File Extension from all files in a directory. For example 1.txt.png => 1.png 2.txt.png => 2.png Now I ...
tecdoc ukr net's user avatar
-1 votes
1 answer
54 views

How to read "Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options" value?

I want to read security settings value programmatically using command prompt and wmic.exe tool. Specifically value "Computer Configuration\Policies\Windows Settings\Security Settings\Local ...
kopiev's user avatar
  • 19
1 vote
0 answers
34 views

Get id of running node.js process from C# process - Windows desktop

I use Visual Studio C# Windows Forms. With this code, I real kill cmd.exe process from tasklist but node.js [which was started from cdm.exe] is still running. cmdKillerProc.txtBxStdin.Text = @"...
Nikola Lukic's user avatar
  • 4,067
-1 votes
1 answer
30 views

How do I solve this problem in github please [duplicate]

I'm getting this warning anytime I try to git add . all my file in my folder: warning: in the working copy of 'calculator-app-main/.gitignore', LF will be replaced by CRLF the next time Git touches it ...
kehinde oluwaseun Emmanuel's user avatar
-2 votes
0 answers
61 views

"It was not possible to find any installed .NET Core SDKs" Shows up when I run dotnet --info. And when i run dotnet --list-sdks it shows nothing

I have tried deleting, reinstalling and fixing the files with the setup of Net. When I run the commands, it shows up like if I do not have any sdk installed. Tried running dotnet --list-sdks, dotnet --...
Tomás Arrativel's user avatar
-4 votes
0 answers
69 views

Error saying "git is not installed" but it actually is [closed]

This error appears Image of error when I open "gradlew.bat" from the baritone repository "https://github.com/cabaletta/baritone/tree/1.20.2". Also it is definitely not the file's ...
Justas's user avatar
  • 1
-4 votes
0 answers
142 views

How to bypass human verification for sites that use CloudfLare or captcha when using chrome's download as PDF function

I'm trying to automate the download of sites as pdf and thanks to @KJ I found a cmd script that works just fine, the problem is that it's a site protected by human verification, in particular ...
CoccoBlu's user avatar
0 votes
1 answer
22 views

Open cmd.exe on the computer from an Arduino Uno

I am using an Arduino Uno. I want to know whether it is possible to open cmd.exe and run dir /s when I plug in the Arduino to my PC. This process should be automatic. Current, I am trying to do this ...
Coding with Ayush's user avatar
0 votes
1 answer
105 views

How to convert a string to fixed point format?

I'm doing basic fixedpoint math in batch. In batch there are only operations on integer mathematics and the internal format of the variables is 32 bit maximum. I'm trying to implement Q16.16 by ...
Einstein1969's user avatar
-1 votes
1 answer
65 views

Prevent new cmd window from closing

My questions are: How can I prevent a program that I execute in the cmd from opening and closing a second cmd window without changing the original source code? (I only have the .exe file) And: Is ...
Hikikomori's user avatar
1 vote
1 answer
57 views

Python, tkinter - Momentanously open a cmd or similar and print "live" output to it; then close it

I have the following problem/doubt. Maybe there is already an answer to this question in the forum, but I am struggling to find it because I don't know how to define my question with not many words in ...
diegoperez01's user avatar

1
2 3 4 5
530