prompt

Compiling C-code from the Command Prompt in Windows?

Hello! I want to compile C code from the Command Prompt in Windows. I have added the environment variable to the PATH and I can compile .cs files with: csc app.cs That's OK, but how do I compile app.c? ...

Custom PowerShell prompts

I'm looking for different examples of custom Powershell prompt function implementations. If you have a custom implementation of your own please post the script. Links to existing resources are good as well. Bonus points for posting a screenshot of what your prompt actually looks like (a preview). ...

Windows prompt: ISO 8601 date?

How do I set the command line prompt in Windows to display current ISO 8601 date and time (e.g. 2009-09-08T13:01:56) instead of the default of current directory? Update. Set it by: right click My Computer/Properties/tab Advanced/Environment Variables/System Variables/New/ Variable name=PROMPT and Variable value=$DT$T $P$G /OK/OK/OK. Reg...

How to respond to password prompt when using SCP in a shell script?

First of all, I am well aware of that there are many of questions regarding this topic. I have read them, but still could figure out an appropriate answer for my situation. I would like to scp the entire ~/cs###/assign1 dir from local to school home dir with a shell script. My question is, is there a way in my script to wait for the pas...

C# - Run Command Prompt Commands

Is there any way to run command prompt commands from within a C# application? If so how would I do the following: copy /b Image1.jpg + Archive.rar Image2.jpg This basically embeds an RAR file within JPG image. I was just wondering if there was a way to do this automatically in C#. Thank you. ...

Prompt the user to install ActiveX/.Net Class Library from browser

Hello, I build a .NET Class Library project that accesses the mshtml.HTMLDocument when called (from JavaScript). Everything works ok on my machine since I changed the permissions in .NET Configuration for Trusted Sites to have Full access. But for the end users I would like Internet Explorer to prompt them just like, say, Windows Upda...

How come when I run ruby.exe / IRB all I get is a blank DOS shell?

Hi, I installed ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32] on my Windows XP laptop. When I run ruby.exe I get a blank DOS Shell window. No expected "irb(main):001:0>" at the top left of the command prompt. I can type into the shell but, any code I type in actually does anything when pressing enter. I should mention tha...

Prompt-Permission on facebook?

I am having trouble of understanding how the fb:prompt-permission work. I can have a link appear when the user click the fb:login-button either the user already logged in from facebook to our application or through our website. On the other hand, without clicking the login-button, the link or the permission dialog doesn't render if the u...

WPF - Combobox with a Prompt

I'm looking for a way to add a "SELECT An Item" to a combobox that does not have an item selected. This would be different than a selected item as a default. I want the combobox to say "SELECT an Item" and be bound to one list for the possible selections and another model for the selected item. I'd prefer a style that I can apply to mu...

Visual Studios Prompts for Vault Repository at Solution Load

Whenever I load a specific solution under source control (Vault), Visual Studios (2008) prompts me to choose the repository. This takes the form of Vault's Choose Repository prompt. I have a default repository selected in the Vault GUI but whenever I load a specific solution, it prompts me for the repository. Any ideas? ...

Visual Studio pre-build scripts can't find exe files in windows/system32

I'm stumped. All of a sudden Visual Studio cannot find exe files in the Windows/System32 directory (such as xcopy, attrib etc). I have some pre-build and post-build events that execute batch files that use xcopy and attrib. Previously they were working fine but today, during the build process, Visual Studio cannot find them. The error i...

Display a password prompt in Firefox

I'm writing a Firefox extension, and would like to display a password prompt. I don't just want to use the JavaScript prompt function, since it doesn't hide what's being typed. Instead, I'd like to have a prompt where the characters typed are replaced with asterisks or dots. Is there some way I can use a built in Firefox password dial...

How to change info on UAC prompt?

On Windows Vista, with UAC enabled, everytime a program that requires administrative priviledges starts, a UAC prompt is displayed. In the box, there are two fields - name and author. How can those be customized? ...

ZSH Prompt/RPrompt Conflict

I currently have my ZSH PROMPT variable set up as: PROMPT=$'[%{\e[0;32m%}%n@%m:%~%{\e[0m%}]> and my RPROMPT variable as: RPROMPT=$'[%{\e[0;32m%}%T\e[0m%}]' The effect I'm working for is to make the brackets and ">" white (using Terminal text-color settings) and everything inside of those green. However, when RPrompt is enabled in OS ...

Python: Read password from stdin

Scenario: An interactive CLI Python program, that is in need for a password. That means also, there's no GUI solution possible. In bash I could get a password read in without re-prompting it on screen via read -s Is there something similar for Python? I.e., password = raw_input('Password: ', dont_print_statement_back_to_screen) Al...

Crystal Reports: How do I allow "set to null" when prompting for values to pass to subreports?

I have created a report which links into subreports. I created parameter fields to feed into the parameters of the subreports using subreport links. If I do not add a subreport link and therefore the subreport is prompting for the value directly it will allow the set to null option. However if the enter value prompt is being generated ...

IE prompt about unsaved form data

I'm having an unexpected "annoying" popup in IE7 (and possibly other versions). As expected IE prompts you about unsaved form data when closing the window which is fine. But I have a form inside a div and now when I toggle the display CSS style between none and block, IE thinks I'm closing the form with unsaved data and shows the warning...

How can the last command's wall time be put in the Bash prompt?

Is there a way to embed the last command's elapsed wall time in a Bash prompt? I'm hoping for something that would look like this: [last: 0s][/my/dir]$ sleep 10 [last: 10s][/my/dir]$ Background I often run long data-crunching jobs and it's useful to know how long they've taken so I can estimate how long it will take for future jobs....

Prompt on file/directory delete

When coding in Python, I often need to write a function like this one: def delete_dir(dir_name): if os.path.exists(dir_name): reply = raw_input("Delete directory "+dir_name+"? [y/[n]] ") if reply=='y': os.system('rm -r '+dir_name) else: print "Aborting..." sys.exit() whi...

navigationItem.prompt & UIImagePickerController

Is it possible to make calls to navigationItem on a UIImagePickerController? Specifically, the image picker? Below I've linked an image of what I'm trying to achieve ( screen shot taken from another app doing the same thing). Once the user selects an image from the picker the navigationItem.prompt is set and, though I think it might be a...