Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!csd4.milw.wisc.edu!uxc.cso.uiuc.edu!uxc.cso.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!mms00786 From: mms00786@uxa.cso.uiuc.edu Newsgroups: comp.sys.ibm.pc Subject: Re: Executing .BAT files Message-ID: <111700107@uxa.cso.uiuc.edu> Date: 18 Jun 89 19:36:00 GMT References: <4112@merlin.usc.edu> Lines: 17 Nf-ID: #R:merlin.usc.edu:4112:uxa.cso.uiuc.edu:111700107:000:621 Nf-From: uxa.cso.uiuc.edu!mms00786 Jun 18 14:36:00 1989 This is a total shot in the dark, but here goes: If you know that it is a bat file you need to execute, you might want to execute command.com with the parameter "/c filename.bat". In other words, use the exec function to execute a copy of command.com and give it the online argument "/c filename.bat". I am assuming that if you can execute .exe files, then you won't have problems executing command.com either. So the arg0 pointer in the argument list for exec should point to a string containing "/c filename.bat". Never tried this, and am not about to; but I hope this helps. Milan. mms00786@uxa.cso.uiuc.edu .