J
Jared
Hi - I am trying to dynamically write vbscript file to c drive. But it will
not execute. I have notice some crap in windiff which suggest that VB has
unusual way of creating a file. Anyway it doesn't work and I was hoping to
use the script to bypass some chunky .NET schedule task code.
Anyone know about creating VBS file from VB.NET?
'--code below
Dim c As Char = """"c
Dim s As String
s = "WScript.Echo " + c + "Hello World" + c
My.Computer.FileSystem.WriteAllText("c:\test.vbs", s, False)
not execute. I have notice some crap in windiff which suggest that VB has
unusual way of creating a file. Anyway it doesn't work and I was hoping to
use the script to bypass some chunky .NET schedule task code.
Anyone know about creating VBS file from VB.NET?
'--code below
Dim c As Char = """"c
Dim s As String
s = "WScript.Echo " + c + "Hello World" + c
My.Computer.FileSystem.WriteAllText("c:\test.vbs", s, False)