Getting Results From Msgbox in DOS Script

| No TrackBacks
From: DosTips.com


@echo off
set body=Do you wish to open Notepad.exe?
set title=Alert
set type=vbyesno

echo x=msgbox("%body%",%type%,"%title%") : wscript.stdout.writeline(x) > ~tmp.vbs
for /f "tokens=*" %%a in ('cscript //nologo ~tmp.vbs') do (
set results=%%a
)

del ~tmp.vbs

if "%results%"=="6" start notepad

No TrackBacks

TrackBack URL: http://server.everfine.com.tw/blog/mt-tb.cgi/333

July 2013

Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Archives

About this Entry

This page contains a single entry by philipz published on February 27, 2013 11:36 AM.

程式交易經驗分享系列(3) 策略最佳化及WFA法 was the previous entry in this blog.

利用Google日曆發送免費SMS簡訊 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.