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

Selenium Server Setup Errors

I am trying to start a Selenium server in the command line, but it returns the following message: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\a607270>java -jar…
Jay
  • 61
  • 2
  • 14
1
vote
1 answer

How to convert command from GitBash to Windows command line?

I am trying to run my Jasmine tests using Karma on the command line. I am running in Visual Studio, which seems to use Windows command prompt in its "terminal" window. I have a command which works in GitBash but not the Visual Studio Code terminal.…
ClareSudbery
  • 391
  • 4
  • 11
1
vote
0 answers

Adding new trigger to "SynchronizeTime" scheduled task

We have a till based system that starts up on boot of Windows 7. One core task is to ensure that the time is synchronized and correct. currently, there is the built in scheduled task to check this at 01:00 every Sunday. I have added a new trigger,…
Rob Sked
  • 277
  • 1
  • 5
  • 15
1
vote
2 answers

Needing to Reset Environment Variables in VirtualEnv Session

I am working on a Slack Bot and mostly followed this tutorial, except for some things that were different on Windows. One of these was setting the BOT_ID and SLACK_BOT_TOKEN environment variables. I used set BOT_ID=xcdsfsdf in a command prompt that…
Matt
  • 1,792
  • 5
  • 21
  • 33
1
vote
2 answers

pyinstaller, import error: no module named pywintypes

I want to create exe from a py script using pyinstaller. I wrote the following command in cmd "pyinstaller --onefile --windowed filename.py", but there is an error showed by the cmd. How do I solve this? Traceback (most recent call last): File…
jted95
  • 1,084
  • 1
  • 9
  • 23
1
vote
1 answer

Escaping Spaces in Windows

I've got lots of experience in a Linux environment, but now I need to do something in Windows. I'm having some trouble figuring out how to correctly escape spaces in a windows command environment. The rules about how it parses the command are…
1
vote
1 answer

Can't remove %PATH% variable?

I'm using Windows 10. I somehow added a variable to %PATH% in the command line (I don't remember how), and it now shows up when I type echo %PATH%. However, when I go to the GUI Environment Variables, that certain variable appears neither in the…
1
vote
2 answers

Running C# Program in Command Prompt regardless of the location of the Executable?

I would like to integrate my program into the Command Interpreter in Windows 10 (preferably without registry edits). I have done minimal work with Libraries, but I still could write a DLL if that is necessary in any way. I would like to run my…
user7811680
1
vote
1 answer

How to hide the console window while starting Tkinter applications but reopening it when the GUI button is pressed to run the python script?

import Tkinter as tk import os from hhh import hello def runshell(): root.destroy() hello() root=tk.Tk() nvar=tk.StringVar(root) en=tk.Entry(textvariable=nvar) en.pack() btn=tk.Button(text="Shell", command=runshell) btn.pack()…
Tsubasa
  • 1,389
  • 11
  • 21
1
vote
1 answer

Can I run a query, using BQ command line tool, from a file in Windows command prompt?

I saw this question, but the answer given was applicable only to Linux/Mac. I know this works in Powershell. Is there a way to do this same thing on Windows using the Command Prompt?
jimjim
  • 91
  • 1
  • 14
1
vote
2 answers

Running python script in command prompt: syntax error unexpected character after line continuation character

I'm new to Python and have been trying to run a Python script through the cmd terminal (after invoking Python 3.6 in the Anaconda 4.3 distribution). I've looked through various forums which have outlined how to do this. I tried entering the…
himi64
  • 1,069
  • 3
  • 12
  • 23
1
vote
1 answer

How can I run a 'async' operation in a C# command line application?

I have an async Web API called MyCustomAPI to read some data from an API hosted in Azure, process it and save it in a SQL server. I have made the MyCustomAPI Web API, Azure API and the call to the SQL server as async calls. I have to call the…
wonderful world
  • 10,969
  • 20
  • 97
  • 194
1
vote
1 answer

Batch Script, Time variable

I have a problem with the code I have written and been trying to run in batch. Here it is: echo off SETLOCAL set a==%time /t% if (a!=18:00) goto stop else goto start :start net stop "spooler" timeout 3 > null echo "it is done" timeout 5 >…
1
vote
1 answer

batch script change system date

I'm working on a little script that should be simple but is really problematic. (I started learning command prompt and batch scripts a few days ago x.x ). I need it to, when executed, change system year to 2010, and when executed again return to…
rCirelli
  • 11
  • 3
1
vote
0 answers

Could not run an R Script from command prompt in Windows

I could not run my R Script from command prompt . Even if I have updated the path in environment variables. It is displaying the following error message: 'rscript' is not recognized as an internal or external command, operable program or batch…
nidhi0806
  • 343
  • 3
  • 14