|
-
Nov 15th, 2000, 10:18 AM
#1
Thread Starter
Junior Member
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.
-
Nov 15th, 2000, 10:32 AM
#2
Fanatic Member
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...
-
Nov 15th, 2000, 10:36 AM
#3
Thread Starter
Junior Member
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.
-
Nov 15th, 2000, 11:05 AM
#4
New Member
Try appending double quotes (Chr(34) at the begining and end of the whole PathLine: Chr(34) & "c:\..." & text1 & Chr(34). Should do.
-
Nov 16th, 2000, 04:14 AM
#5
Thread Starter
Junior Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|