|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Could you tell me how to properly represent "strFullPath" and "strFullPath2" in this line.
Shell "strFullPath -b strFullPath2 " & name1.Text & " " & message1.Text The 2 strFullPath's are directory paths. Any help would be fantastic. oh and have a happy new years. |
|
#2
|
|||
|
|||
|
U can make these command line into a bat file,like it:
1.new a file with expanded filename is ".bat". 2.input your command line into the bat file as file's content 3.call shell function with the bat filepath as the parameter! Or u can use shellex function to shell external command and paramter..To visit www.allapi.net for get it's detail!!.. |
|
#3
|
|||
|
|||
|
Thanks for the suggestions.
But strFullPath and strFullPath2 are variables and the "-b" is a switch. When ever the variable is changed I need it to carry out the full command. Shell "strFullPath -b strFullPath2 " & name1.Text & " " & message1.Text would be. for example. #: C:\dir\program.exe -b C:\dir2\file.txt Jill hello Is what I am wanting impossible? Putting variables in the shell command? Thanks |
|
#4
|
||||
|
||||
|
I don't know what you are meaning by "representing" them, but it seems that this would be appropriate
Code:
Shell strFullPath & " -b" & strFullPath2 & " " & name1.Text & " " & message1.Text |
|
#5
|
|||
|
|||
|
Fisherman you are Brilliant!
All evening I have been fighting this. Your line was pretty much perfect except "1" space. I really do appreciate it mate! Thank you!! ![]() |
|
#6
|
|||
|
|||
|
Easy way And trouble write mistake...Great!I didn't find the wrong fisherman found..:-)
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > VB Shell command help. A one liner... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|