Whenever I open a .bat file or any DOS file it just opens up and disapears instantly.
Printable View
Whenever I open a .bat file or any DOS file it just opens up and disapears instantly.
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.
also when i tried to use
deltree C:\whatever
it said Invalid command or something. Any ideas?
If you are using 2k/XP, use "cmd" instead of "command".
oh, it still isnt work
Type C:\helpQuote:
Originally posted by duc
oh, it still isnt work
for to see all commands .
Try del instead of deltree if you are trying to delete a file rather than a directory.
Why not shell the command...
Do a search for Shell, as I can't remember the exact code. :p
it's something like
Also... right click the .BAT file and uncheck "Close on Exit"... and that'll stop it closing the MSDOS window.Code:shell(C:\windows\command\cmd.exe yourprog.bat)
Regards,
Paul.
stick the pause command in somewhere to get a "press any key..." thing.