Path: utzoo!attcan!uunet!microsoft!davidst From: davidst@microsoft.UUCP (David STECKLER) Newsgroups: comp.os.os2.programmer Subject: Re: OS/2 2.0 APIs Keywords: OS/2 2.0 API Message-ID: <57377@microsoft.UUCP> Date: 12 Sep 90 21:47:58 GMT References: <1990Sep4.130929.16442@sun1.ruf.uni-freiburg.de> <119809@linus.mitre.org> Reply-To: davidst@microsoft.UUCP (David STECKLER) Distribution: comp Organization: Microsoft Corp., Redmond WA Lines: 25 In article <119809@linus.mitre.org> jeff@cornea.mitre.org.UUCP (Jeff Graber) writes: >I have been trying to get DosExecPgm to work. But it doesn't seem to be >passing the parameter I specify. I have to go to a different computer on >a different floor so this example may not be accurate. I have tried >specifying the full path to the parameter file, added a \0, and not done >either of those two. > >Anybody have any success with starting a .exe with a parameter?? > > >Thank s > >Jeff Graber To quote the docs about the pszArgs parameter, "...the program name, a null character, the program parameters (separated by spaces), and two null characters." Thus, if your program is Pickle and your arguments are arg1, arg2 and arg3, your argument string should be: "Pickle\0arg1 arg2 arg3\0" C (hopefully :) put the 2nd \0 at the end when it zero-terminated the string. ...Dave