Questions tagged [command-prompt]

The command prompt is the string of text that a command-line interpreter displays to you, the user, to prompt you for input in interactive mode. For programs with textual user interfaces in general, not specifically addressing their prompts for user input, see either the CONSOLE-APPLICATION (Microsoft Windows) or TERMINAL (Unices, MacOS 10, and Linux) tags. See COMMAND-LINE or SuperUser for commands invoked by command lines at a command prompt.

This tag covers questions addressing how to control the command prompt in various command interpreters, from sh to COMMAND, and programs that issue command prompts.

Command prompt reference material

4223 questions
1
vote
1 answer

Check if running in Windows Command Prompt vs Cygwin python

Is there a way to check if my python script is running in Windows Command Prompt, vs Cygwin? Using os.name doesn't work because Cygwin on Windows still returns "nt". I want to check the command prompt's name or type from a shell script so I can…
gusg21
  • 147
  • 11
1
vote
1 answer

.BAT file help (uninstall 2 paths silently)

I have looked around and can't seem to make it work with the research I've done. I'm going to create a GPO to apply to workstations that will uninstall Malwarebytes 2.0 and 3.0 from a given system. This will allow us to roll out the enterprise…
1
vote
3 answers

tab completion for Ant under Windows?

Is there any way to have a proper tab completion for Ant under windows (cmd.exe) ? I could write up the default target to list all the other targets, but that's just no the same as a proper tab completion you get on linux for instance.
dm76
  • 4,130
  • 8
  • 35
  • 46
1
vote
0 answers

Is it possible to combine command-line options (switches) for similar commands?

At the Windows command prompt, typing date /T & time /T will output the date and time with command-line option /T. Time: If Command Extensions are enabled the TIME command supports the /T switch which tells the command to just output the current…
1
vote
2 answers

How do I format a list of phone numbers using regular expression in vim commands?

Given the following list of phone numbers 8144658695 812 673 5748 812 453 6783 812-348-7584 (617) 536 6584 834-674-8595 Write a single regular expression (use vim on loki) to reformat the numbers so they look like this 814 465 8695 812 673 5748 812…
aschenk04
  • 21
  • 3
1
vote
1 answer

I can't install react native cli?

I'm using Window. I ran the following command in a node.js command prompt npm install -g react-native-cli It shows what is in the image. Node.js command prompt Anyone can tell me what's wrong? Have I downloaded the react native cli? Thanks.
1
vote
0 answers

Windows XP SP3 command prompt can't detect PATH

tally ho. I'm using Windows XP Professional 2002 Service Pack 3 I've been trying to ping websites, but when I try to ping anything it returns: 'PING' is not recognized as an internal or external command, operable program or batch file. A bit of…
Rheine
  • 77
  • 1
  • 8
1
vote
1 answer

Redirect Standard Output with Shell Execute

I understand how to redirect StandardIO streams from Process objects in C# in general. However, I have to use ShellExecute for a particular command to work. Consequently, I am unable to redirect these streams which I need for logging purposes. I've…
ScottishTapWater
  • 3,656
  • 4
  • 38
  • 81
1
vote
0 answers

remove com port using devcon (for loop)

I was trying to delete com port using command line. Right now I am using devcon.exe that is a part of windows WDK. I have tried using devcon findall =ports and used devcon remove "@some specific id". It worked totally well. Instead of removing them…
Mr_U4913
  • 1,294
  • 8
  • 12
1
vote
2 answers

buggy ANSI escape sequences in R prompt

When R is run interactively in a terminal which supports colors, it is possible to use ANSI escape sequences in order to put colors in the prompt, such as options(prompt = "\033[0;31mThis is red\033[0m> ") Unfortunately, something goes wrong…
Hugo Raguet
  • 418
  • 3
  • 11
1
vote
1 answer

How to use multiple commands with path references in command prompt

I'm new to this forum, so please correct me if I'm asking this the wrong way or not specific enough.. While coding in VB.NET I'm trying to pass multiple commands, and an argument containing a reference to a path: Dim p As New Process Dim pi As New…
S. Kerkhof
  • 13
  • 3
1
vote
1 answer

How to use BCP command to export data to excel with column headers using the command prompt

I have this info from a text file (via Notepad): FName LName age Location .................................................... Dave Thomas 24 New York John Stockton 24 Las…
user2302629
  • 21
  • 2
  • 4
1
vote
2 answers

Having a readline() use the strings saved to a variable in its prompt - R

I'd like a readline() function to use the strings stored to a variable rather than convert the word used for the variable into the string. Is there a way I can do this? For example, say I have the following variables and desired prompt: > SpringC =…
albeit2
  • 83
  • 7
1
vote
1 answer

NETSTAT to find established connections but also show elapsed time (windows)

Hi I need to find out how to show on 1 line of text in a file TCP | Local IP | Remote IP | ESTABLISHED | ELAPSED TIME i can manage to do it all apart from getting the elapsed time with the following bat file @ECHO OFF SET _file=%~n1% SET…
1
vote
1 answer

Display console window during single unit test execution

I have a unit test in Visual Studio that I run by doing the standard right-click -> Run Selected Tests. I'm able to see all errors and output inside the unit test explorer window. Is it possible to pop open a command window when I start the unit…
Roka545
  • 3,404
  • 20
  • 62
  • 106
1 2 3
99
100