vbsrcipt begginner

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Locked
Message
Author
Billd59
Posts: 5
Joined: 02 Jul 2012 17:43

vbsrcipt begginner

#1 Post by Billd59 » 24 Jul 2012 06:22

I am just learning VBscript. I am just learning a Is trying this but for some reason It doesn't work. It said need a end statement. Here Is the code so far:
option Explicit
Dim objshell
Dim c1
Dim c2

set ObjShell = CreateObject("WScript.shell")
c1=msgbox"do you want to open paint" ,36, "Run a program"

If c1 = 6 then
objshell.Run "mspaint.exe"

ElseIf c1 = 7 then
c2 =msgbox("do you want to open music" ,36, "Open dolder"
End If

Can you tell me what I did wrote so far?

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: vbsrcipt begginner

#2 Post by Ed Dyreen » 24 Jul 2012 07:56

'
Hi Billd59,

This is a DOS-batch forum, for questions about vbscript you'll have to post on a vbscript forum.

I'm sorry

Locked