Windows filenames and "/" (was Re: logtext and logfile)
Kenneth Brody
kenbrody at bestweb.net
Mon Mar 3 11:24:51 PST 2008
Quoting Fairlight (Mon, 3 Mar 2008 13:49:51 -0500):
> Confusious (Kenneth Brody) say:
>>
>> Unless you're passing the filename to SYSTEM (which we're not doing here),
>> there is no need to flip the slashes under Windows. The forward slash
>> works just fine.
>
> Does fP actually invoke something that cares? I ask because perl's
> system() doesn't require a translation of the slashes. I don't know how
> the two are comparatively implemented though.
No, filePro doesn't care. Perhaps a better wording would have been "unless
you're passing the filename to SYSTEM, and running a command which does
care about them, there is no need to flip the slashes under Windows". The
point is, once you're passing the filename to something outside of filePro,
you have to know the "other side" in order to get a definitive answer to
the question. Everything (well, probably everything) will accept paths
with backslashes from the command line.
How does Perl's system() handle things like "dir \path\to\directory /w"?
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list