Why am I getting an error here?
Fairlight
fairlite at fairlite.com
Mon Jan 28 11:46:05 PST 2008
On Mon, Jan 28, 2008 at 02:03:42PM -0500, Nancy Palmquist may or may not have
proven themselves an utter git by pronouncing:
> Apply it to the path part of the command not the instruction part. I guess I
> did not break that down well enough. You are certainly right about flags and
> options and keeping them forward.
>
> Thanks for catching that Mark.
You're welcome.
Except "which" path part? Let's assume you have a file with input files
and output files.
C:\> c:/path/to/program.exe /i /rel/absolute/file.in /o e:/abs/file.out
Okay. Tell me which gets translated in the above. From what you said,
you'd only be translating one part. But there are three parts you want
translated, two parts you don't. Further, as I illustrate, you don't
necessarily have an absolute path, you -could- have a relative path--which
would only be distinguishable from a switch in that it has further slashes
later in the string, as you don't have a DRIVELETTER: to rely upon.
It's not just a simple, "One part, not all or nothing," but a very
specific, "These select parts get translated."
I think the way to go is really to do platform-dependant logic any time
you create any path individually and before concatenation, if you want
cross-platform code, rather than try and convert the entire command at the
end. Front-loading the translation to before assembly results in much more
bullet-proof code and far fewer Tylenol consumed.
mark->
More information about the Filepro-list
mailing list