Path: utzoo!attcan!uunet!lll-winken!ames!sun-barr!texsun!texbell!merch!cpe!hal6000!trsvax!don From: don@trsvax.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: DOS query Message-ID: <216100090@trsvax> Date: 11 May 89 14:06:00 GMT References: <21864@santra.UUCP> Lines: 24 Nf-ID: #R:santra.UUCP:21864:trsvax:216100090:000:970 Nf-From: trsvax.UUCP!don May 11 09:06:00 1989 >< 1. How do I enter a parameter containing a space (' ') into a program or >< batchfile. >I don't think that it can be done. In UNIX you put quotes around it, but >I think that DOS doesn't look for that and parses all spaces. You are correct as long as the program being called tries to use arguments in the standard way [ main(argc, argv)]. However, if you can change the program being called, it is possible to get the command line unparsed by DOS. The length of the command line is stored at PSP + 80, then usually followed by a space, then the command line as it was entered. Note that this is guaranteed only if the calling program sets up the int 21h, function 4Bh in this way. Command.com does, but some other programs which start child processes may not. % make me stop don't know how to make me. Stop. Don Subt The opinions expressed above are Tandy Corp. strictly mine, not my employer's. 817-390-3068 ...!killer!ninja!sys1!trsvax!don