🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9045

Re: CreateProcess problem

#9045
From: Ed Mulroy [TeamB]
Date: Sat, 07 Aug 2004 11:03
32 lines
1921 bytes
File names containing blanks must be encased in quotes.

For example, if the command line were to be

prog.exe -d c:\program files\dirname\file name.txt  b.txt

then the command line you would type were you to manually start the
program would be

prog.exe -d "c:\program files\dirname\file name.txt" b.txt

Similarly the string you pass as the command line to CreateProcess
would be

"-d \"c:\\program files\\dirname\\file name.txt\" b.txt"

Encasing every file name in quotes independent of if it includes a
space is acceptable but optional so this would also work

"-d \"c:\\program files\\dirname\\file name.txt\" \"b.txt\""

.  Ed

> Bogdan wrote in message
> news:41149a09@newsgroups.borland.com...
> Hello,
>
> I use CreateProcess to call an application and to pass parameters
> to it.The paramaters required by this applications are file names,
> but when the file names include blank space , CreateProcess stops
> reading these parameters corectly.
> Anybody knows of a way to solve this?
Technical Details
Message-ID: <4114b72d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41149a09@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,99f30109901dc2f4
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ed Mulroy [TeamB]" <dont_email_me@invalid.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41149a09@newsgroups.borland.com>
Subject: Re: CreateProcess problem
Date: Sat, 7 Aug 2004 07:03:45 -0400
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 24.74.175.102
Message-ID: <4114b72d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1091876653 24.74.175.102 (7 Aug 2004 04:04:13 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail