Click to See Complete Forum and Search --> : pass commands to the ms-dos
lxs
Feb 24th, 2001, 05:30 AM
how do i execute dos commands frm vb?
how do i send keys to dos prompt?
Also i want to move cursor or sendkeys to other m/c in a lan is it possible?
HELP!!!
DOS does is not composed of window classes and handles like windows, so you'd have to use the Shell statement to execute your command or a batch file.
lxs
Feb 24th, 2001, 10:59 PM
Thanks fr the replay...
i hav to compile any c++ program how do i do it?
this doesnt work
this is what i hav done:
shell "path to c++"
sendkeys "{F5}",1 'fr full screen
sendkeys "{F3}",1 ' open dialdog box
sendkeys"1.c",1 'to type program name
after that the tab key comes directly onto the text box of the open dialog box!
cant open the file!
thanks again..
If you need to execute DOS commands (as mentioned in your original post) why not just use the Shell method to open a batch file? Then in the batch file you can have all of your commands such as C:\> Compile Mygrog.cpp (or whatever command you use to compile).
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.