Thanks Rohit, but that's not the problem - the batch file I'm running
does have a short filename.  The problem is that the parameters to it
cause my batch file to not even start running.  I was calling

ExecuteApplication('.', 'DosExec.bat', 'C:\ pcli ListVersionedFiles
-pr"G:\PVCS\Projects" -aw "/CubeView"');

and it worked.  But when I called

ExecuteApplication('.', 'DosExec.bat', 'C:\ pcli ListVersionedFiles
-pr"G:\PVCS\Projects" -aw "/General Library - Delphi 4/CubeView"');

, DosExec.bat didn't even run.  I know that because I stuck in 'echo
"hello"' as the first line.  It just pops up a command prompt window and
waits.  Windows is sulking, saying "I won't run it - type it in
yourself!".

However, as of just now I have a lead on the problem.  I isolated that
line, stuck it in a test application, ran it, and it worked perfectly!
So something in my program, some misbehaving DLL or dangling pointer or
suchlike, is interfering with CreateProcess running.  Bugger!

My first thought is that it's probably the dll I'm using from PVCS's
developers toolkit.  I've already demonstrated that their command
"LoadPVCSDLL('VMWFDTK.DLL')" stops TFileStream from working correctly in
some situations.  All in all, I'm regretting having upgraded our
archives to 6.5 format.

Cheers,

Carl Reynolds                      Ph: +64-9-4154790
CJN Technologies Ltd.             Fax: +64-9-4154791
[EMAIL PROTECTED]                DDI: +64-9-4154795
PO Box 302-278, North Harbour, Auckland, New Zealand
12 Piermark Drive, North Harbour Estate, Auckland, NZ
Visit our website at http://www.cjntech.co.nz/

> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, July 30, 1999 8:52 PM
> To:   Multiple recipients of list delphi
> Subject:      Re: [DUG]:  Problems with CreateProcess
> 
> Carl,  Dos does not support long filenames.  :-)
> 
> On 29 Jul 99 at 16:41, Carl Reynolds wrote:
> 
> > I'm having difficulties trying to execute a dos batch file.  The
> > function I'm using to run it is
> >..snip... 
> > This was working fine until I changed the last parameter in my
> parameter
> > string to be a bit longer (from "/Cubeview" (including quotes) to
> > "/General Library - Delphi 4/Cubeview").  It's still only about 100
> > chars.  Now it doesn't run the batch file at all - it just pops up a
> DOS
> > window with a command prompt, and waits for you to type something
> in!
> > Not even "echo hello" gets run.  What did I do wrong?!
> > 
> 
> Rohit
> 
> ======================================================================
> CFL - Computer Fanatics Ltd.  21 Barry's Point Road, AKL, New Zealand
> PH    (649) 489-2280 
> FX    (649) 489-2290
> email [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
> ======================================================================
> 
> ----------------------------------------------------------------------
> -----
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz

application/ms-tnef

Reply via email to