View Single Post
Old Apr 24th, 2007, 11:51 AM   #1
randum77
Programmer
 
randum77's Avatar
 
Join Date: Jun 2006
Location: Fayettehell, NC
Posts: 56
Rep Power: 3 randum77 is on a distinguished road
vb.net to VBScript

Is there an easy way to convert from VB.net to VBScript code? I'm just recently started getting some what good w/ VB.net, and i'm not entirely familiar w/ VBScript. Here's what I am doing in VB.net.

Dim strTag As String
        Dim intValue As Integer
        Dim objStreamW As IO.StreamWriter
        Dim tdNow As Date


        'Variable
        strTag = "L3Mas"
        intValue = 1

        'Writes info to file. 
        objStreamW = IO.File.AppendText("text.txt")
        objStreamW.Write(strTag & "|" & tdNow & "|")
        objStreamW.WriteLine(intValue)


        'Closes
        objStreamW.Close()

        Me.Close()

Should I even bother w/ putting that in VBScript. I figured it'd be easier to mass produce in script since i don't have alot of time to get this done.
__________________
_Marshall_

"America has bred a society that is innocent and incapable of accepting responsibility, but yet, is able to place blame on others without guilt."
randum77 is offline   Reply With Quote