Slashes/baclslashes/etc. (was Re: Cleaning up stuff -)

Kenneth Brody kenbrody at spamcop.net
Wed Oct 28 08:56:36 PDT 2009


John Esak wrote:
[...]
> P.S. - Maybe Ken will chime in with the simple rule about when filePro
> requires a slash versus backslash and really how that is related to the
> "cmd" shell interpreter. On *nix, I just use "/" entirely.
[...]

Filenames within filePro itself will take either slash on Windows, because 
Windows (and MS-DOS going back to 2.0) allows either slash.

It's not until you pass that filename to another program (such as SYSTEM) 
that you need to worry about which one to use.  And, as to "which one to 
use", the answer is "that depends on what the program you're running needs". 
  I'm not aware of any Windows programs which don't take backslashes for 
filenames on the command line, so you could "play it safe" and always use 
backslashes in filenames passed to SYSTEM.

-- 
Kenneth Brody


More information about the Filepro-list mailing list