i tried to execute any dos command(like md , cd, ftp,etc) from VB but i am not able to do that.i am able to run an executable file by giving the path in the shell method:as follows.

Private Sub Command1_Click()
Shell ("C:\WINNT\system32\cmd.exe")
End Sub

this opens the dos prompt.

but how to run a command like md,cd,dir,etc. from VB.if there is any way then please tell me.also try to send a sample code if you can.

thanks and regards
sumit