PDA

Click to See Complete Forum and Search --> : Executing DOS .BAT files.


MiDaWe
Nov 21st, 1999, 02:28 AM
Hey,

I'm sure that this is simple as well. So simple in fact that I have searched this BB back about a hundred posts, but no answer for this.
How do I execute a DOS .BAT file. I am already using the shell(path) but I'll bet that I'm using it wrongly. Please help with syntax.

Also, can I write a .BAT file just like I would a .TXT?


------------------
Thanks,
MiDaWe

Compwiz
Nov 21st, 1999, 02:38 AM
1.)
You can use the Shell function like:

Shell "c:\autoexec.bat"

or you can use the ShellExecute API call.

2.) Yes, open a .bat file the same way and write to it the same way as a txt file.

------------------
Tom Young, 14 Year Old
tyoung@stny.rr.com
ICQ: 15743470 (http://wwp.icq.com/15743470) Add Me (http://wwp.icq.com/scripts/search.dll?to=15743470) ICQ Me (http://wwp.icq.com/scripts/contact.dll?msgto=15743470)
AIM: TomY10 (http://www.aol.com/aim/aim30.html)
PERL, JavaScript and VB Programmer

MiDaWe
Nov 21st, 1999, 02:50 AM
Thank you. Thank you. Thank you.

Short simple and to the point just the way that I like it : )


------------------
Thanks,
MiDaWe