Results 1 to 3 of 3

Thread: launch other application from my application [RESOLVED]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2003
    Location
    Chicagoland
    Posts
    92

    launch other application from my application [RESOLVED]

    Someone has written a utility that converts a file from fixed length to variable length and vice versa(If you don't know what that means, no big deal, it's pretty much irrelavent to my question). When calling it from the command line, it takes two parameters, the source file and the destination file. E.g.
    Code:
    fileconvert test.fix test.var
    In this case, test.fix exists and test.var is created by fileconvert.

    How do I do this in my code? I've tried
    VB Code:
    1. Process.Start("fileconvert " & TextBox1.Text & " test.var")
    but it bombs out on me with an exception, "The system cannot find the file specified."
    Last edited by shadowfyre; Jun 9th, 2004 at 11:25 AM.

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Nov 2003
    Location
    Chicagoland
    Posts
    92
    Figured it out. I needed to set the working directory using Process.StartInfo.

  3. #3
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    you could also pass the full path as the parameter for Start() instead of just specifiying the EXE's name
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

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