Been trying to figure out how to make it work for the last few hours, not sure what to search for on google, so i thought i'd ask here, and *hope* for an answer
If InStr(dmsg, prefix & "makedir") = 1 Then
Dim MakeDirectory As String
'MsgBox dat(4), vbOKOnly, "Testing.."
MakeDirectory = dat(4)
Call MkDir(MakeDirectory)
End If
The code works fine when MakeDirectory = "C:\Testing"
but if i change it to dat(4) which is part of an array, and in the MsgBox shows fine as "C:\Testing" it wont work..
dmsg, refers to the first word/command given to it on the irc server
and dat(4) refers to the second, like
example:
(+Keiran) .makedir C:\Testing
Hope ive explained it Ok !
Thanks