Re: Command-Line Arguments

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Karpas (karpas_at_karpanov.serveftp.org)
Date: 02/24/04


Date: Tue, 24 Feb 2004 04:42:27 -0000

Maybe this piece of code will help:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbenlr98/html/vafctcommandx.asp

Karpas

"John" <anonymous@discussions.microsoft.com> wrote in message
news:BAC6D939-812C-489E-B487-CCC29CE4ED18@microsoft.com...
> I use a very simple method of parsing the command-line to get the
arguments, which are currently assumed to be space delimited. However, I
need to make a change to one of my utilities to accept a fully qualified
filename, including the path. This requirements means that I can no longer
use space delimited arguments because paths and filenames can have spaces.
>
> What is the best method of passing arguments when spaces are integral to
one or more of the arguments (i.e., filenames, paths, etc.)?
>
> Thanks,
> John



Relevant Pages

  • Re: Command-Line Arguments
    ... double quotes around strings that contain spaces. ... > I use a very simple method of parsing the command-line to get the ... use space delimited arguments because paths and filenames can have spaces. ...
    (microsoft.public.vb.general.discussion)
  • Re: Command-Line Arguments
    ... > I use a very simple method of parsing the command-line to get the ... > arguments because paths and filenames can have spaces. ... inside a quoted portion. ...
    (microsoft.public.vb.general.discussion)
  • Re: Command-Line Arguments
    ... Lenny ... > I use a very simple method of parsing the command-line to get the ... use space delimited arguments because paths and filenames can have spaces. ...
    (microsoft.public.vb.general.discussion)
  • Re: Command-Line Arguments
    ... > I use a very simple method of parsing the command-line to get the ... use space delimited arguments because paths and filenames can have spaces. ...
    (microsoft.public.vb.general.discussion)
  • Re: Command-Line Arguments
    ... > I use a very simple method of parsing the command-line to get the ... use space delimited arguments because paths and filenames can have spaces. ... John, ... You can easily use this as the correct response for any ...
    (microsoft.public.vb.general.discussion)