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

How do I select what command prompt uses to open a python file?

I like testing my python files from command prompt instead of inside of PyCharm, which is what I use. I use Python 3.6, and after downloading Python 2.7, there was clearly some kind of conflict, It would no longer execute my python files directly in…
1
vote
1 answer

Automating Nightly Build

I am wondering how to trigger an AutoIt script on another PC from my own PC? Please be as descriptive as possible, I am moderately new to networking and remote commands. Example: Nightly build Perl script begins Nightly build is successful Nightly…
Christopher Peterson
  • 983
  • 7
  • 22
  • 32
1
vote
1 answer

python run .exe app with argument

If i write this in command prompt: "senna-win32.exe < input.txt >output.txt" it works perfect but i need to do this from python code, how is this possible? I have tried: import subprocess subprocess.call([pathToExe, "input.txt" ,…
scorpion5211
  • 1,020
  • 2
  • 13
  • 33
1
vote
1 answer

How to set new variable if the IF statement returns true?

I have a batch code which creates certain variables. However, I want to add an IF statement so that if the user enters "Technology" for the first variable, it then creates another variable and asks for additional information. A python script then…
Joseph
  • 586
  • 1
  • 13
  • 32
1
vote
0 answers

How to "press a key" in a minimized window

So, im playing this silly game on which when you press the key 'e' you grab all the itens nearby. First i was just using this command so it did it "automatically". @echo off pause :loop nircmd wait 3000 nircmd sendkeypress e goto loop but…
1
vote
2 answers

How to run command prompt programs on C#?

I would like to know if there is a way to run a command prompt program such as "C:/temp/mactimes.pl" which the command "perl mactimes.pl" could be run in the C# program. I have looked through "process.start" class but it only detects .exe format…
JavaNoob
  • 3,494
  • 19
  • 49
  • 61
1
vote
1 answer

Run a Teradata MLOAD command in Windows command prompt, but use Python to trigger it

I used to execute the MLOAD process by opening a command prompt and then typing MLOAD < MLOAD_FILE.txt. How do I do it using Python? Assume that the MLOAD_FILE.txt is under directory C:\\Users\\MLOAD_FILES. Thanks!
DanZimmerman
  • 1,626
  • 6
  • 23
  • 45
1
vote
4 answers

Java not working on Command line

I have tried everything and looked all over this site for answers, but nothing worked. Any ideas? I googled and played with it, still nothing. Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights…
Drolltv65
  • 13
  • 1
  • 2
  • 6
1
vote
1 answer

WinSCP - Transfer was successfully finished but nothing on virtual directory

My command prompt says the file transfer was successful. But I do not see any file imported from my local to my virtual directory. The file is gone though, upon import, due to the 'delete' command line. Also, when I drag & drop the file on WinSCP,…
John Tipton
  • 185
  • 3
  • 11
1
vote
2 answers

Installing pygame through pip error

I'm trying to install pygame to work with python through pip, however when I use the command pip install pygame, it begins working and seems alright until it throws an error. This is the output I get, I'm not sure if i'm doing it correctly or what,…
user5880324
1
vote
0 answers

Different Output Characters on VBScript and PHP in Windows Command Prompt

Forgive me for the title. I am a beginner in programming, and I have two codes that do the same task, which is print the characters with ASCII values 240..255 in Windows Command Prompt. One is in PHP =240; $n--){ …
Poypoyan
  • 446
  • 6
  • 15
1
vote
2 answers

Only if reg exist create txt file

I'm trying to create a txt file for the reg query result which looks like this and works REG QUERY HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{C5E637C6-5AB6-426F-B638-7DC533AE5C75} /v InstallLocation > C:\file.txt But I'm…
Sam
  • 45
  • 1
  • 1
  • 5
1
vote
2 answers

Batch file to delete prefix and suffix of every line in txt file

I have a txt file contains certain lines with constant structure, for example: My Line is : Hi. This is row no.1. My Line is : Hi. This is row no.2 My Line is : Hi. This is row no.3. I would like to create a new file contains same rows, but to…
Tali B.
  • 125
  • 1
  • 11
1
vote
1 answer

How could I start/display a file in lua, like the batch command "start"?

I have looked into opening/starting files in lua, however every single article is giving me functions like dofile() that returns/runs the file status/contents, instead of actually opening/starting the file. In my scenario I have a .hta file that I…
mike bayko
  • 375
  • 5
  • 20
1
vote
2 answers

How to change directory and execute a file there in Java

I have to execute the following cmd commands of Windows in Java. The cmd commands: Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. //First i have to change my default…
shubham0001
  • 63
  • 1
  • 1
  • 7
1 2 3
99
100