Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Launch A Program
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
sport




PostPosted: Sun Mar 21, 2004 1:34 pm   Post subject: Launch A Program

I'm trying to learn VB on my own, and I was just wondering if someone could tell how could I run an application from VB. For example make an exe program lunch, not read the file, run the file.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sun Mar 21, 2004 2:16 pm   Post subject: (No subject)

Shell(filepath:string)

I used to write programs to send messages over the school's network like
code:

Shell("net send " & sendTo & " " & message)

where sendTo and message are string variables
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
sport




PostPosted: Sun Mar 21, 2004 4:41 pm   Post subject: (No subject)

Thanks for the help.
Acid




PostPosted: Wed Mar 24, 2004 7:39 pm   Post subject: (No subject)

tony wrote:
I used to write programs to send messages over the school's network


Man, I wish I knew enough to be able to do that
SuperGenius




PostPosted: Sun Oct 24, 2004 4:01 pm   Post subject: (No subject)

do you mean like the messages that you get when you use up too much space that say "From admin to smithbob on server xyz, you're using up too much space"
Andy




PostPosted: Tue Oct 26, 2004 6:22 pm   Post subject: (No subject)

have u ppl never used netsend?? man u're missing out
BioHazardousWaste




PostPosted: Fri Oct 29, 2004 2:52 pm   Post subject: (No subject)

lol, our network admin was actually smart enough to disable netsend.... thats about it besides regedit. Anyways, does anybody know how to run a program that a file is associated with? For example if I want to open C:\test.txt, visual basic should open the associated program (notepad) and then have it open the file (test.txt) in that program(notepad). I tried shell, and it gave me an error, i'm assuming it's because the file was not an .exe
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: