1

VBScript

virtualcreeper's Avatar virtualcreeper6/12/13 3:56 pm
1 emeralds 655 4
6/14/2013 3:24 pm
virtualcreeper's Avatar virtualcreeper
in my VBScript I got the following error

Script: C:\Users\*****_2\Desktop\GHOST.vbs
Line: 61
Char 14
Error Syntax error
Code 800A03EA
Source Microsoft VBScriptm compilation error

and here is the code:

X=MsgBox("Hello.",0+16,"GHOST")

X=MsgBox("I am the Ghost in the code.",0+16,"GHOST")

X=MsgBox("I can be your best freind...",0+16,"GHOST")

X=MsgBox("Or your worst enemy",0+16,"GHOST")

X=MsgBox("now do as I command",0+16,"GHOST")

X=MsgBox("you will not see me again...",0+16,"GHOST")

X=MsgBox("no trace will be left behind",0+16,"GHOST")

X=MsgBox("except for your memories...",0+16,"GHOST")

X=MsgBox("let's play Minecraft",0+16,"GHOST")

Dim objShell

Set objShell = WScript.CreateObject( "WScript.Shell" )

objShell.Run("Minecraft")

Set objShell = Nothing

wscript.sleep 500

X=MsgBox("play.",0+16,"GHOST")

X=MsgBox("are you finished?",4+32,"GHOST")

if x=6 then

msgbox "good.",0+16,"GHOST"

elseif x=7 then

msgbox "then keep playing.",0+16,"GHOST"

end if

X=MsgBox("let me ask you a few questions...",0+16,"GHOST")

a=inputbox("what is your name?")

b=inputbox("how is your day?")

MsgBox"your name is "+a

MsgBox"and your day was "+b

X=MsgBox("it was nice, "+a,0+16,"GHOST")

X=MsgBox("but i must go",0+16,"GHOST")

X=MsgBox("goodbye",4+16,"GHOST")

If x=6 Then

Set objShell=

shell.Run"%windir%\system32\shutdown.exe -s -t 60"

Set objFSO = CreateObject( "Scripting.FileSystemObject" )

objFSO.DeleteFile WScript.ScriptFullName

WScript.Quit

Elseif x=7 then

Msgbox"I HATE YOU",0+16,"GHOST"

End If



please help. thank you.
Posted by virtualcreeper's Avatar
virtualcreeper
Level 11 : Journeyman Engineer
1

Create an account or sign in to comment.

4

1
06/14/2013 3:24 pm
Level 11 : Journeyman Engineer
virtualcreeper
virtualcreeper's Avatar
its a name redefined error
1
06/13/2013 7:38 pm
Level 11 : Journeyman Engineer
virtualcreeper
virtualcreeper's Avatar
i have now fixed that error, but here is another

line 31
char 5

new code:

X=MsgBox("Hello.",0+16,"GHOST")
X=MsgBox("I am the Ghost in the code.",0+16,"GHOST")
X=MsgBox("I can be your best freind...",0+16,"GHOST")
X=MsgBox("Or your worst enemy",0+16,"GHOST")
X=MsgBox("now do as I command",0+16,"GHOST")
X=MsgBox("you will not see me again...",0+16,"GHOST")
X=MsgBox("no trace will be left behind",0+16,"GHOST")
X=MsgBox("except for your memories...",0+16,"GHOST")
X=MsgBox("let's play Minecraft",0+16,"GHOST")
Dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run("Minecraft")
Set objShell = Nothing
wscript.sleep 500
X=MsgBox("play.",0+16,"GHOST")
X=MsgBox("are you finished?",4+32,"GHOST")
if x=6 then
msgbox "good.",0+16,"GHOST"
elseif x=7 then
msgbox "then keep playing.",0+16,"GHOST"
end if
X=MsgBox("let me ask you a few questions...",0+16,"GHOST")
a=inputbox("what is your name?")
b=inputbox("how is your day?")
MsgBox"your name is "+a
MsgBox"and your day was "+b
X=MsgBox("it was nice, "+a,0+16,"GHOST")
X=MsgBox("but i must go",0+16,"GHOST")
X=MsgBox("goodbye",4+16,"GHOST")
If x=6 Then
Dim objShell
Set objShell = WScript.CreateObject("WScript.shell")
objShell.run("Desktop\GHOST\GHOST\Resorces\shutdown.lnk -s -t 60")
Set objFSO = CreateObject( "Scripting.FileSystemObject" )
objFSO.DeleteFile WScript.ScriptFullName
WScript.Quit
Elseif x=7 then
Msgbox"I HATE YOU",0+16,"GHOST"
End If
1
06/13/2013 7:34 pm
Level 11 : Journeyman Engineer
virtualcreeper
virtualcreeper's Avatar
i have tried doing that but i just can't fix it,
1
06/12/2013 4:09 pm
Level 57 : Grandmaster Artist
ChrisL
ChrisL's Avatar
I would suggest looking at the 14th character in line 61 like the error message says.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome