Thursday, April 29, 2010

Using Shell Command in VB


Shell command:-

It is used to open the exe file directly.

Syntax:-

Shell("path"),window state

Drive list box:-

Using drive list box we can view the drive (C:,d: etc) and search the directory (folders)existing in the drive.

Property:-

Name,backcolor,fontcolor,tooltip text etc.

Dir list box(Directory list box):-

Using this we can view the file related file.This list box shows the folders existing in the drives.

Property:-

Name,backcolor,forecolor,tooltiptext etc.

File list box:-

Using this we can open the file.This list box display the file from the dir list box.

opening folder(directory):-

syntax:-

dir.path=drive.drive

opening file

file.path=dir.path

note:-

We work on the drive and dir list box’s change events.

opening exe file using file list box:-

  1. use shell command.
  2. Get the file path.
  3. Get the filename.


For Further Reading,
Software Developing

0 comments:

Post a Comment

 

Popular Posts

Man Behind This Blog