Results 1 to 4 of 4

Thread: pass commands to the ms-dos

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2001
    Posts
    52

    Angry

    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!!!
    lxs

  2. #2
    Guest
    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.

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2001
    Posts
    52

    Unhappy pass commands to ms-dos

    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..
    lxs

  4. #4
    Guest
    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).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width