Results 1 to 3 of 3

Thread: Visual Basic won't enter parentheses?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2009
    Location
    Washington, D.C
    Posts
    26

    Visual Basic won't enter parentheses?

    Ok, I wanted command prompt to change the dir to a specified path:

    Code:
    Process.Start ("cmd.exe")
    My.Computer.Keyboard.SendKeys(cd "C:\Program Files (x86)"
    Whne cmd starts, and enters this text, it leaves out the ( and the ) in (x86), why is this?

  2. #2
    Fanatic Member Vectris's Avatar
    Join Date
    Dec 2008
    Location
    USA
    Posts
    941

    Re: Visual Basic won't enter parentheses?

    Are you sure it's not CMD? It may be one of those special characters that has a different meaning. Try adding a Carot "^" in front of it.
    If your problem is solved, click the Thread Tools button at the top and mark your topic as Resolved!

    If someone helped you out, click the button on their post and leave them a comment to let them know they did a good job

    __________________
    My Vb.Net CodeBank Submissions:
    Microsoft Calculator Clone
    Custom TextBox Restrictions
    Get the Text inbetween HTML Tags (or two words)

  3. #3

    Thread Starter
    Junior Member
    Join Date
    May 2009
    Location
    Washington, D.C
    Posts
    26

    Re: Visual Basic won't enter parentheses?

    Quote Originally Posted by Vectris View Post
    Are you sure it's not CMD? It may be one of those special characters that has a different meaning. Try adding a Carot "^" in front of it.
    Ok I will try this

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