Results 1 to 2 of 2

Thread: Need help running batch file *resolved*

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Graff's Avatar
    Join Date
    Jan 2002
    Location
    Calgary
    Posts
    668

    Need help running batch file *resolved*

    VB Code:
    1. strCommand = BuildCommand()
    2.         'MsgBox(strCommand)
    3.         Clipboard.SetDataObject(strCommand)
    4.  
    5.         Dim writer As StreamWriter = New StreamWriter(App_Path() + "convert.bat")
    6.         writer.WriteLine(strCommand)
    7.         writer.Close()
    8.  
    9.         System.Diagnostics.Process.Start(App_Path() + "convert.bat")
    10.         MsgBox("batch file executed")

    Ok so this set of code correctly creates the convert.bat file and I can see it flicker as the window runs but it doesn't run the contents of the batch file. However, If I double click the batch file manually from the dir it runs. Any ideas?
    Last edited by Graff; Jun 20th, 2004 at 08:27 PM.
    If wishes were fishes we'd all cast nets.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width