Programming Designs Forums

Programming Designs

You are not logged in.

Announcement

This forum is for archival purposes only. Registration and posting have been disabled.

#1 2008-09-17 06:03 PM

paintballer4lfe
New Member
Registered: 2008-09-17
Posts: 2

help with vb6 and command.com parameters

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

 

2008-09-17 06:03 PM

Sponsors


#2 2008-09-19 11:25 AM

Quantumstate-Jim
Moderator
From: UK
Registered: 2005-09-30
Posts: 684
Website

Re: help with vb6 and command.com parameters

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.


There are 10 types of people in this world.  Those that can read binary and those that can't.
www.quantumstate.co.uk
http://www.danasoft.com/sig/Quantumstate.jpg

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson