|
Thread: Dos
-
Mar 25th, 2003, 05:43 PM
#1
Thread Starter
Fanatic Member
Dos
Whenever I open a .bat file or any DOS file it just opens up and disapears instantly.
-
Mar 25th, 2003, 05:57 PM
#2
Thread Starter
Fanatic Member
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.
-
Mar 25th, 2003, 06:15 PM
#3
Thread Starter
Fanatic Member
also when i tried to use
deltree C:\whatever
it said Invalid command or something. Any ideas?
-
Mar 25th, 2003, 07:42 PM
#4
Good Ol' Platypus
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)
-
Mar 25th, 2003, 10:03 PM
#5
Thread Starter
Fanatic Member
-
Mar 26th, 2003, 03:46 AM
#6
Sleep mode
Originally posted by duc
oh, it still isnt work
Type C:\help
for to see all commands .
-
Mar 26th, 2003, 07:35 AM
#7
Addicted Member
Try del instead of deltree if you are trying to delete a file rather than a directory.
-
Mar 26th, 2003, 10:08 AM
#8
Fanatic Member
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.
-
Mar 26th, 2003, 06:28 PM
#9
Fanatic Member
stick the pause command in somewhere to get a "press any key..." thing.
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
|