Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [prompt]

The prompt is what asks a user for their interactive input

1
vote
0answers
18 views

How to redirect the output of a running process to a log file?

When running a long running task in a command prompt, it's possible to redirect the output to a log file (fe for storage or later analysis). However, I started a few long running tasks this evening ...
0
votes
1answer
48 views

cmder: How to add time taken since last command

as discussed already here on SU there is a way to output the current date and time in cmder. In some videos on Youtube i saw some people installing something or get node.js ready or any other command ...
0
votes
2answers
109 views

linux text editor with no prompt autosave and restore? [closed]

I am looking for some way to take ad hoc notes on linux where I don't need to explicitly save those notes. On windows, I use Notepad++ that has a feature where new, untitled documents are ...
1
vote
1answer
29 views

%2 in batch file is ignored on execution in command prompt

I have an image file named first%20second.png I have a test.bat file that renames images. It looks like this: Timeout 3 Copy "C:\first%20second.png" "C:\sub\first%20second.png" Timeout 3 When the ...
0
votes
2answers
69 views

Outlook BCC prompt VBA doesn't automatically run

I'm still pretty new to VBA (so sorry if this is a dumb question) though I am already coding small applications a few years for like buttons in excel or something. But this one has never ben clear to ...
3
votes
1answer
126 views

Any way to send desktop notification that will prompt user to confirm yes-no?

I am on Fedora 27, and have a system-on delayed (45min delay) anacrondaily job that backs up my laptop drive on a regular basis. The anacron is because my system is not always on. The problem is that ...
1
vote
1answer
426 views

How to find the build / UBR / kernel version of Windows 10 using command-line (cmd)

I would like to know the basic commands in prompt windows. Therefore, I want to begin by knowing the command that return details of my operating system like kernel version / build and UBR (Update ...
0
votes
0answers
121 views

Prompt not changing in zsh

I am setting up a new MacBook Pro with iTerm2 and copying over my old command line configuration from a previous Pro. I have powerline-shell installed, as well as zsh with oh-my-zsh. I have the code ...
1
vote
1answer
87 views

Why has my Cygwin prompt stopped being bold? (or rather started being “dim”…!)

This is not the same as this. In my case I have a simple Cygwin installation. Up to now the prompt has been in a bold green colour (my name) followed by a bold yellow colour (location). The $ is ...
5
votes
1answer
171 views

Modifying OpenSSH default Windows prompt

I've just installed OpenSSH on Windows OS based on the following guide. https://winscp.net/eng/docs/guide_windows_openssh_server This is the standard prompt Windows prompt userName@mydomain.net@...
1
vote
0answers
112 views

Prompt to CC before sending

First post. I would like to make a function in excel that everytime I press send prompts me to cc an email address from a specified list. For example. In VBA i have specified recipients (i.e. Mary@...
2
votes
1answer
162 views

Shell sometimes fails to output ESC ^[ character before escape sequence

Occasionally, when pressing an arrow key (usually up) inside of a shell, the terminal or shell fails to output an ESC character before the escape sequence, so if I press the up arrow to try and see ...
1
vote
0answers
90 views

How I get my command prompt to show just the name of the folder I'm in (not the whole path))

In a command prompt window (terminal), how can I get my prompt to be just the current folder? e.g. prompt $p $g gives: C:\Users\Robin > But I want it to just show: Robin > UPDATE: As @...
0
votes
1answer
464 views

iTerm2 Bash/Prompt colors faded/different from terminal?

I'm so confused and I've been pulling my hair out for hours now. I've been trying to get my bash text to have the same color as I do on my desktop, it works fine in the default terminal app on mac, ...
1
vote
2answers
60 views

Can't get my bash prompts the way I want

I set export PS1='[\u@\h \W](\#)\$ ' and source the setting file .profile. However, my prompt shows as \u@\h \W\$ I'm using bash on macOS Sierra.
0
votes
0answers
635 views

How to run a Windows batch process in background, but kill it if the command prompt is closed?

On Linux, I could do this just doing: myprogram & However on Windows... If I start a command like: start /B myprogram.exe It runs in the background, but if I close my command prompt, the ...
1
vote
0answers
128 views

Limit git prompt branch name width in oh-my-zsh

I use long descriptive branch names in git, causing the prompt to take up too much space leaving less room for long paths. I would like to limit the git plugin's branch segment to something like 15 ...
3
votes
1answer
281 views

true colors in bash prompt?

Is it possible to use true colors in bash prompt? I'm using iTerm2 on MacOS, which does support true colors. But not sure how I use true colors for my bash prompt. At the moment I'm using tput af <...
1
vote
1answer
226 views

Bash prompt “variables” not working?

I have added this into my ~/.bashrc, to change the prompt: PS1='[\u@\h \w]\$ ' However, it is not showing what I want. I believe this is meant to show my username and possibly the directory that I ...
2
votes
2answers
3k views

Running a .bat windows batch file from excel VBA

I have a file called newcurl.bat sitting inside the current directory that my excel file is in I want excelVBA to run this file I tried: Shell "cmd.exe /k ""cd " & """ & ThisWorkbook.path &...
0
votes
0answers
274 views

Can't open Command Prompt

Recently my command prompt on Windows 10 stopped to run ( I can't open it ) , I didn't installed anythin which could have damaged it . The last time I use it ( one week ago ) it worked correctly. ...
0
votes
1answer
183 views

powerline-status makes zsh hg (mercurial) branch info disappear from the prompt, yet the git prompt info remains

To be a poweruser these days, you have to have a tricked out shell. One of the most common custom shells is zsh with the Oh my zsh plugin manager. sudo apt install zsh then installed oh-my-zsh per ...
-3
votes
3answers
3k views

Format USB Flash Drives with command prompt [duplicate]

How can I format ( delete all files ) an USB Flash Drives with the command prompt ? I have the last version of Windows 10 and my USB Flash Drives is fat32.
4
votes
1answer
4k views

Use command prompt to change date and time

Good morning , recently I worked a lot with the command prompt , than I want to know if it is possible to change date and time of the system ( Windows 10 ) only with the command prompt and how can I ...
0
votes
1answer
5k views

Disable Antivirus with command prompt

I have the latest version of Avast as anti virus ; without using its interface , how can I disable it with the command prompt ? I have Windows 10 .
0
votes
3answers
284 views

Change pc password with command prompt

Welcome , today I'm working with the command prompt on Windows 10 , I like to know if it is possible to change my pc's password with this and how can I do it. Thank you
1
vote
1answer
2k views

Convert xls to pdf using command prompt

I have to convert a lot of .xls and .xlsx files to .pdf files. Is there a way to convert faster all the files using the command prompt?
1
vote
1answer
970 views

Setting a default program by command prompt

Is it possible to set the default program to open a specific file from the Windows command prompt?
0
votes
0answers
276 views

"Windows cannot find '%windir%\system32\systempropertiesadvanced.exe' [duplicate]

I an not able to open advanced system settings, it is showing error "Windows cannot find '%windir%\system32\systempropertiesadvanced.exe'. Command prompt also not working.because i have deleted one ...
0
votes
0answers
40 views

MySQL and Python shells don't insert the letter 'b'

It's weird, but I can't insert the letter 'b' into the MySQL and Python shells. My keyboard works perfect and the 'B' key is being inserted (shift+b). It also works into Zsh, Vim, etc... I'm using ...
0
votes
0answers
2k views

DISM error: The system cannot find the path specified

I am a new member, not overly fond of code but this error keeps on bugging me. When I try and download .NET framework 4.6.2 it says my component store is corrupt. I do some research and come up with ...
0
votes
1answer
103 views

Windows command to hibernate and resume

I would like to know if there is a way to make a Windows prompt script that hibernates the PC and after one hour resumes the activity? Any tip will be very helpful, Thanks
5
votes
2answers
991 views

How to leave the execute prompt in zsh

In a zsh, maybe I pressed Alt+X by mistake, but now I'm stuck and this execute: _ prompt won't leave. Pressing Ctrl+C do nothing, if I press Enter it tries to complete what I typed Pressing Enter ...
0
votes
1answer
135 views

Why redirection operators from windows prompt create text ignoring line break? [duplicate]

I tried to output to a text file using redirection operators > and >> from a java class but it ignores line feed \n from java when the .txt file is opened with the Notepad from windows 10. It'...
1
vote
2answers
3k views

How to hide commands in the prompt of Windows 10 from a batch file?

I want to hide the commands in the prompt that opened from a batch file. Example: This is how it normally is: This is how I want it to be: It would be good as well if there was a way of output ...
1
vote
0answers
25 views

Set CMD Prompt to always be the current directory name in Windows XP? [duplicate]

I would like my command prompt to display just the directory name I am currently in, not the full path. If I am working in C:\Mystuff\Junk\ I would like the command prompt to display: Junk> If I ...
2
votes
1answer
434 views

git commit hash in zsh prompt

I'd like to see the current commit hash (just the first 8 or so characters) in my zsh prompt. I have this so far: https://github.com/calebmeyer/cpm-zsh-theme/blob/master/cpm.zsh-theme#L3 ...
0
votes
1answer
203 views

bash: show names of background jobs in the bash prompt

It would be cool if the bash prompt can be used a a mini task bar. Can the bash prompt (PS1) show the names of the jobs listed in the jobs command?
0
votes
1answer
753 views

In Windows cmd batch file how to ignore carriage return

I have a Win 7 bat file that prompts user to enter a number, then it passes that number as an argument to a tcl script. An optical barcode scanner is used to provide the number, but then I want user ...
4
votes
1answer
515 views

ZSH: change prompt just before command is run

I would like to have a two-line prompt in zsh, but collapse it to a very small one just after pressing ENTER, so that it doesn't show up in the terminal scroll history. After typing two commands, the ...
0
votes
1answer
640 views

ZSH in iTerm2: Why my prompt can only use 8 colors?

I am trying to set a color prompt in ZSH ($TERM=xterm-256color), but it can only get 8 colors out: Only the bright version of the colors. This is only the case for prompt, while the other applications ...
1
vote
1answer
38 views

Setting PS1 from command output

I'm attempting to set my bash prompt string from a gsettings value like below. PS1=$(gsettings get org.gnome.finalterm status-bar-left) gsettings get org.gnome.finalterm status-bar-left outputs '\w' ...
0
votes
1answer
490 views

How to use source within a bash script to change the terminal prompt?

I need to be able to use a script in ~/.local/bin/ (which is part of $PATH) to quickly change the prompt. The desired result can achieved by running the following in a console: echo PS1='$\ ' > /...
0
votes
1answer
76 views

Moving specific files into a folder based on directory using Command Prompt

I have a series of about 100 folders called E101,E102....E200. Within each of these folders is a file called calquip.docx and calquon.docx I would like to move calquip.docx and calquon.docx into a ...
5
votes
1answer
3k views

Multiline RPROMPT in zsh

I know you can define multiline prompts in zsh: PROMPT=' test → ' But I was wondering, why can't you define multiline right prompts? I tried: RPROMPT=' test still test ' but nothing shows up. Is ...
0
votes
1answer
1k views

How to run a .exe file in command prompt [duplicate]

I don't know much about command prompt, or how it is used, but I want to get a code to access a program of mine and I wants me to open a .exe file with command prompt and input my ID so I can get the ...
0
votes
0answers
64 views

How to set the command (cmd) prompt colors

Pretty easy to do in Bash, but, for the life of me, I cannot find a way to change the prompt (and only the prompt) colors in Windows 7's cmd window. Note: the solution suggested in the comments seems ...
2
votes
1answer
61 views

Output each commands results into a separate file

I have got the following script which executes a separate step one after the other: @echo off set /p guid=Please enter GUID: start /wait Drop\Debug\Ylp.Web.CmsImportWebJob.exe /test map %guid% start /...
1
vote
1answer
175 views

Batch script to execute jobs one after the other using a GUID as an input argument

I would like to create a batch file which I can reuse with different GUID input parameters. Normally, I execute a file 4 times, one after the other with varying input parameters like so: D:\>Drop\...
3
votes
1answer
3k views

How do I get fish shell prompt to show the hostname?

I'm attempting to make my Fish prompt look like the old Gentoo shell did. user@hostname ~ % where the user@hostname is green, and the $PWD and symbol were blue. Right now it only shows: user@ ~ %, ...