
ok, i want my VB6 program to load the command.com in the system32 folder.
so far, i have a working Shell command with no parameters.
Code:
Shell "C:\Windows\System32\command.com"
i try to add a parameter, but when i do it, the command prompt says bad parameters, i need some help.
i need to have the command for command.com to be:
Code:
net send & text1.text & text2.Text
so, its the net send command.
the computers name will be the text1.text on form1, and the message will be text2.text on form1.
i need help getting a working code.
Thanks
Offline






I think that it should work if you forget about using command.com and just use net send straight into the shell command. Then you would just concatenate your parameters into the string. I haven't tested this though.

Offline