|
-
January 11th, 2002, 09:55 AM
#1
how can we run a dos command from VB
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|