Im trying to make my program create a vbs file but it is getting an error here.
VB Code:
Print #1, "ObjShell.Run "http:[b]//[/b]mail.yahoo.com ""
It says Expected: line number or label or statement or end of statement
Printable View
Im trying to make my program create a vbs file but it is getting an error here.
VB Code:
Print #1, "ObjShell.Run "http:[b]//[/b]mail.yahoo.com ""
It says Expected: line number or label or statement or end of statement
Try...
VB Code:
Print #1, "ObjShell.Run ""http://mail.yahoo.com"""
im getting a invalid character error here.
VB Code:
print #1, "objShell.SendKeys"{Tab}""
Try something like this:
Dim s As String
S = "objShell.SendKeys" & CHR$(34) & "{TAB}" & CHR$(34)
Print #1, S
...does this work?
If you need to enclose quotes in the string then just double up on them like in my example.
Here is your next fix.
print #1, "objShell.SendKeys""{Tab}"""