Newsgroups: comp.windows.ms
Path: utzoo!utgpu!watserv1!maytag!mks.com!andy
From: andy@mks.com (Andy Toy)
Subject: Re: slash and win
Date: Wed, 17 Oct 90 21:18:35 GMT
Message-ID: <1990Oct17.211835.9294@mks.com>
Organization: Mortice Kern Systems, Waterloo, Ontario, Canada
Reply-To: andy@mks.com (Andy Toy)
References: <1990Oct15.223842.15844@mks.com> <65114@iuvax.cs.indiana.edu>

In article <65114@iuvax.cs.indiana.edu> ntaib@silver.ucs.indiana.edu (Nur Iskandar Taib) writes:
>Ahem! Doesn't DOS use backslashes and Unix slashes??

DOS allows both `/' and `\' in pathnames in system calls, i.e.  exec()
and spawn() in C.

[
	Side note: even command.com will accept `/' when the switch
	character is not `/' except for DOS 4 command.com.  In DOS 3 and
	4, it could be changed with int21 ax=3701h (see interrupt list).
	In DOS 2, putting the following in config.sys would change the
	switch character to `-'.

		switchar=-
]

Anyway the problem is that a programme cannot exec() or spawn() win.com
using `c:/windows/win.com' as the full pathname.
-- 
Andy Toy, Mortice Kern Systems Inc.,       Internet: andy@mks.com
  35 King Street North, Waterloo,       UUCP: uunet!watmath!mks!andy
      Ontario, CANADA N2J 2W9      Phone: 519-884-2251  FAX: 519-884-8861
