This is a simple demonstration to show how to use the shell command in Visual Basic. Select the type file you want to open, then enter the full path and filename with extention in the text box, then click on OK. The program will be opened, and your selected file will be opened (assuming it's a valid path and filename).
Command3D1_Click
TheFile
Text1
TheProgram
Final
TheFinal6
place
statement
Label1_Clickc
Command1_Click
terminate
RonOdd
@ Form_Load
BoxName
Caption
Command2_Click
Option1
Value
Option2
Option3
Command1_Click
Define the filename:
Define the program to shell to:n
pbrush.exe
write.exe
notepad.exe
Define the final string (you must include the " " blank space to separateo
the executable program from the file that you wish to be loaded:
Shell to the program and open the file...the 1 is the WindowsState of theo
executable program you've shelled to:e
You could have an option button if you wanted with one option beingo
Paintbrush, the second being NotePad, and the third being Write.
When you exit Write (or whatever executable you choose), you will return to
your VB application. If you do not wish to return to the VB application,
you can simply place an End statement next and your VB application will
terminate upon exiting Write. Hope this is what you needed!!!