Results 1 to 9 of 9

Thread: Dos

  1. #1

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702

    Dos

    Whenever I open a .bat file or any DOS file it just opens up and disapears instantly.

  2. #2

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    ok well i just found out .bats are suppose to close when finished. Is there a way to make a file in VB that will open msdos and run a file, or a way to keep the msdos window open. The bat file i made is suppose to open a file that runs in MSDOS.

  3. #3

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    also when i tried to use

    deltree C:\whatever

    it said Invalid command or something. Any ideas?

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    If you are using 2k/XP, use "cmd" instead of "command".
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    oh, it still isnt work

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by duc
    oh, it still isnt work
    Type C:\help
    for to see all commands .

  7. #7
    Addicted Member Celest's Avatar
    Join Date
    Jun 2001
    Posts
    134
    Try del instead of deltree if you are trying to delete a file rather than a directory.

  8. #8
    Fanatic Member VisionIT's Avatar
    Join Date
    Nov 2002
    Location
    Workin'...
    Posts
    718
    Why not shell the command...

    Do a search for Shell, as I can't remember the exact code.

    it's something like

    Code:
    shell(C:\windows\command\cmd.exe yourprog.bat)
    Also... right click the .BAT file and uncheck "Close on Exit"... and that'll stop it closing the MSDOS window.

    Regards,

    Paul.

  9. #9
    Fanatic Member siyan's Avatar
    Join Date
    Jul 2001
    Location
    GOOOAAAAALLLLL!!!!!
    Posts
    869
    stick the pause command in somewhere to get a "press any key..." thing.
    Unite, proletariat!

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