|
-
Nov 21st, 1999, 03:28 AM
#1
Thread Starter
Junior Member
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
-
Nov 21st, 1999, 03:38 AM
#2
Hyperactive Member
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
[email protected]
ICQ: 15743470 Add Me ICQ Me
AIM: TomY10
PERL, JavaScript and VB Programmer
-
Nov 21st, 1999, 03:50 AM
#3
Thread Starter
Junior Member
Thank you. Thank you. Thank you.
Short simple and to the point just the way that I like it : )
------------------
Thanks,
MiDaWe
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
|