i'm using the following code to create a bat file in vb
VB Code:
  1. Dim ff
  2. on error goto er:
  3.  ff = FreeFile
  4.  Open "exp.bat" For Output As #ff
  5.  Print #ff, "At" & " " & timee & " " & "/interactive" & " " & "cmd.exe"
  6.  Close #ff
  7. er:
  8.  MsgBox (err.Description)
  9.  MsgBox (err.Number)
but its generating some sort of error but it gives me a blank error decription and a err number of 0 i think there's somthing basic i'm missing but i cant figure it out :S one of those times where your having a blank out lol