ETL, App Development and other tools > Automation

Batch File - Pop up window


Hi to all,

I want to create a batch file in which the user will select to continue the process through a pop up window yes or no.

I know about the

--- Code: ---SET /P ANSWER=Do you want to continue (Y/N)?
--- End code ---
but this does not create a pop up window.

Any suggestions?

You can't create a pop up window from a batch file. The easiest way is probably using VBScript. You can use a piece of VBScript to pop up a question like that but the difficult part is sending the reply back to DOS.

For example, open up notepad, paste this in and save the file as question.VBS

Now double click it to see what it does.

--- Code: ---Dim iResult
iResult = msgbox("A question",4)
call msgbox("return code is " & iResult)
--- End code ---

To call this from a batch file you use something like this:

--- Code: ---wscript <path to your VBS file>
--- End code ---

Post back if you would like more help.


[0] Message Index

Go to full version