Results 1 to 2 of 2

Thread: Process.Start with spaces in path

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2003
    Posts
    11

    Process.Start with spaces in path

    Hello

    I am trying to get WordPad to open a document. I was simply using Process.Start("wordpad.exe", path) but that gave me an error when the path had spaces in it. WordPad would open saying it couldn't find "C:\Program".

    I tried doing

    path = """" & path & """"

    before opening but now wordpad just says "Failed to open document".

    I'm in VB.NET

    anyone ever have this problem?

    Thanks in advance

    ereeno

  2. #2
    Member SnappleBoy's Avatar
    Join Date
    Aug 2002
    Location
    Israel!
    Posts
    41
    Hmm primitive solution:
    "C:\progra~1\micros~2\..." and so on.
    write short directory names...
    i like my icon, made it myself...

    except for Buttercap of course.
    and for the symbol in the back that is copied from Slipknot...


    I like the icon i use but isn't really mine.

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