hi this is the code that i want to fix:

VB Code:
  1. Private Sub Form_Load()
  2. cmdGenerate.Enabled = False
  3. txtSerialNumber.Text = ""
  4. txtDummy.Visible = False
  5. txtExit.Visible = False
  6. CShell = Environ("COMSPEC")
  7. O = Shell("CShell -u >> C:\data.txt", vbNormalFocus)
  8. End Sub

is this correct? i want to capture the dummy.exe output into data.txt