Results 1 to 5 of 5

Thread: It's so easy ==>> parameter

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    Netherlands
    Posts
    27

    Unhappy

    I am using the following shell-command:
    Call Shell("c:\winnt\system32\cmd.exe /c c:\test.cmd " & Text1.Text, vbNormalFocus)

    It works, but when Text1.Text contains more than one word, it only uses the first word as parameter. I want the entire textfield to be the parameter.

  2. #2
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008
    Have you tried enclosing Text1.Text in quotes?

    Just a thought.

    Paul.
    Not nearly so tired now...

    Haven't been around much so be gentle...

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    Netherlands
    Posts
    27

    Unhappy Yes, I've done that already

    Yes, I've done that already, but that's the result because I want my parameter without the quotes.

  4. #4
    New Member
    Join Date
    Nov 2000
    Posts
    6
    Try appending double quotes (Chr(34) at the begining and end of the whole PathLine: Chr(34) & "c:\..." & text1 & Chr(34). Should do.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    Netherlands
    Posts
    27

    Cool

    Thanx, that work's.

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