This is my sample program


Private sub Command1_Click()

Shell ( "C:\Connect.Bat")

form2.show

end sub

Private Sub Form_Unload()

shell ("C:\Disconnect.Bat")

end sub



in Do.Bat i put some coding to connect from one server with another server at difference place.

If i run my batch file from dos it's work.



Best Regards

Long