3

I am using nant, but this can apply to any thing, I just want to know if there is a way to set windows cmd or console2 or some kind of shell to give me a popup or make a noise when it is "finished" (i.e. when it is waiting and the screen says >C:\User\Random_FILE_PATH>_)

I'm using windows 7.

Valentine

sorry, to clarify, I am not running a script that I created, this is just when running anything in the console. I would like it to be that anytime my console is waiting for me it creates a pop up or a noise. This would ideally be some kind of setting

vrogers
  • 31
  • 4
  • If you want to give a try to [ConEmu](http://stackoverflow.com/a/10904494/1405560) - it provides access to MsgBox and Win7 taskbar progress "from the box". – Maximus Jan 10 '13 at 18:08

3 Answers3

0

You may open a message box in the end of your batch file, using WSH with a simple VBScript or JScript. See Show a popup/message box from a Windows batch file for an example.

Community
  • 1
  • 1
Anton Kovalenko
  • 20,999
  • 2
  • 37
  • 69
  • sorry, to clarify, I am not running a script that I created, this is just when running anything in the console. I would like it to be that anytime my console is waiting for me it creates a pop up or a noise. This would ideally be some kind of setting – vrogers Jan 14 '13 at 22:31
0
c:\> my_command & mshta.exe vbscript:Execute("msgbox ""finished"",0,""finished"":close")

this here uses conditional execution - when my_command is finished the mshta.exe will be executed with arguments in the brackets.As the parameter passing here is not so easy the string given to msgbox will not be displayed.

npocmaka
  • 55,367
  • 18
  • 148
  • 187
0

you can add a beep to your prompt:

set prompt=%prompt%^G

Don't type ^G. To get it, keep your alt-key pressed while entering 0 0 7 on your numeric keyboard.

Stephan
  • 53,940
  • 10
  • 58
  • 91