PDA

View Full Version : Quick Visual Basic Question.



nz_liam
04-06-2003, 06:33 PM
I have done some C programming and am trying to learn visual basic, however I'm not sure about syntax and I donít have a syntax reference here.

Anyway how would I make this work; Private Sub Command1_Click()
Shell "xyz.exe <data_from_text2.text_here> <data_from_text2.text_here>", vbHide
End Sub



Cheers

Liam

nicnz
04-06-2003, 06:50 PM
without actually trying it should be something like:

Shell "xyz.exe " & data_from_text2.text & " " & data_from_text2.text, vbHide

Finerd
04-06-2003, 07:28 PM
I'm not a pro/and i've probly miss read question but wouldn't it be

Shell "xyz.exe" & "text1.text" & text2.text", vbHide

if text1 and text 2 are command switches you may want to add a space

Shell "xyz.exe" & " " & "text1.text" & " " & " text2.text", vbHide

nz_liam
04-06-2003, 10:44 PM
Well this is what I ended up with.

Shell "net send " & recipent1.Text & " " & message.Text, vbHide

I'll post the app I made in a min.

nz_liam
04-06-2003, 10:48 PM
Ok, here goes, my first VB app, http://www.farr.net.nz/netmessenger/netmessenger.exe

Chilling_Silently
04-06-2003, 10:55 PM
...Nice.. But it would be easier if the one button send it to All the IP's... perhaps an extra 'Send All' button :-)

Babe Ruth
04-06-2003, 10:59 PM
nz_liam,

Liam... and it does what? exactly... downloaded / ran it / ... and nada!!

Babe :-(

Chilling_Silently
04-06-2003, 11:08 PM
For NT-Based PC's Babe Ruth.. Net Send's messages across a LAN :-)

Babe Ruth
04-06-2003, 11:16 PM
Chill,

All NT-based systems here (well mostly apart from some oddball *nix systems), but if all the program does is use the nt messenger service then tough luck on this lan then... thought it was doing something 'unique' :-)

Ah well... never mind

Cheers, Babe.

nz_liam
04-06-2003, 11:17 PM
> nz_liam,
>
> Liam... and it does what? exactly... downloaded /
> ran it / ... and nada!!
>
> Babe :-(

Yep, exactly as Chilling said, it is basically a gui for the Win NT net.exe program, which allows you to send messages over a network among other things.

nz_liam
04-06-2003, 11:19 PM
> Chill,
>
> All NT-based systems here (well mostly apart from
> some oddball *nix systems), but if all the program
> does is use the nt messenger service then tough luck
> on this lan then... thought it was doing something
> 'unique' :-)
>
> Ah well... never mind
>
> Cheers, Babe.

Yep thats exactily what it does, just a gui i whipped up to use on my lan and at uni.

-=JM=-
04-06-2003, 11:42 PM
I tried to use it earlier. Then I realised I have the messenger service disabled:D

Does the trick OK. Just needs some nicer features.

stu140103
04-06-2003, 11:59 PM
Chilling also has he own little chat ape :)

Chilling_Silently
05-06-2003, 12:16 AM
> Chilling also has he own little chat ape :)

<Mimic Monkey>

oooh.. Oooh... Eeehh.. Eeehh...Aaaaaaaaaaaah.....

</Mimic Monkey>

;-)
Yes, but its kinda come to a standstill.. We'll see soon if I get this job in the next two days ;-)

BTW - Would this sorta app work for sending from 9x based PC?

-=JM=-
05-06-2003, 02:01 PM
Nope it would not work on a 9x system.