andy@mks.com (Andy Toy) (10/16/90)
There seems to be a problem with the way that Microsoft Windows version 3 handles its startup command-line. Invoking it with the full pathname using backslashes "c:\windows\win.com" works, but using slashes "c:/windows/win.com" does not work. I suspect that it is using argv[0] to determine the directory in which the executable resides, but it cannot parse pathnames with slashes. -- 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
ntaib@silver.ucs.indiana.edu (Nur Iskandar Taib) (10/17/90)
*>version 3 handles its startup command-line. Invoking it with the full *>pathname using backslashes "c:\windows\win.com" works, but using *>slashes "c:/windows/win.com" does not work. I suspect that it is Ahem! Doesn't DOS use backslashes and Unix slashes?? ------------------------------------------------------------------------------- Iskandar Taib | The only thing worse than Peach ala Internet: NTAIB@AQUA.UCS.INDIANA.EDU | Frog is Frog ala Peach Bitnet: NTAIB@IUBACS !
andy@mks.com (Andy Toy) (10/18/90)
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