Re: Command-Line Arguments
From: Jezebel (frolly_at_mkkk.com)
Date: 02/23/04
- Previous message: Jeff Johnson [MVP: VB]: "Re: Command-Line Arguments"
- In reply to: John: "Command-Line Arguments"
- Next in thread: Bonj: "Re: Command-Line Arguments"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Feb 2004 09:21:56 +1100
Use the Windows standard: double quotes around strings that contain spaces.
"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
- Previous message: Jeff Johnson [MVP: VB]: "Re: Command-Line Arguments"
- In reply to: John: "Command-Line Arguments"
- Next in thread: Bonj: "Re: Command-Line Arguments"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|