Path: utzoo!attcan!uunet!unisoft!hoptoad!pozar From: pozar@hoptoad.uucp (Tim Pozar) Newsgroups: comp.sys.ibm.pc Subject: Re: switchar in DOS 3.2 Message-ID: <5676@hoptoad.uucp> Date: 17 Oct 88 21:39:58 GMT References: <4483@polya.Stanford.EDU> <1509@bingvaxu.cc.binghamton.edu> Reply-To: pozar@hoptoad.UUCP (Tim Pozar) Organization: Syncstream/Widget Systems (San Francisco) Lines: 46 In article <1509@bingvaxu.cc.binghamton.edu> sullivan@marge.math.binghamton.edu (fred sullivan) writes: >>In article <4483@polya.Stanford.EDU> lma@polya.Stanford.EDU (Larry M. Augustin) writes: >> >> I was recently forced to upgrade from PC DOS 2.1 to 3.2. One of my >> favorite config.sys commands, switchar=-, doesn't seem to work in 3.2. >> Did Microsoft fix this feature? Is there a way I can change \ to / >> without buying a UNIX shell? >> >A month or two ago I posted a program to do this to comp.binaries.ibm.pc > This is some code I put at the begging of most of my programmes to reconize the current ms-dos switch char... getswitch() { union REGS inregs, outregs; inregs.h.ah = 0x37; inregs.h.al = 0; intdos(&inregs,&outregs); /* find the switch char */ schar = outregs.h.dl; } To set the switch, you would write a function like: putswitch(c) char c; { union REGS inregs, outregs; inregs.h.ah = 0x37; inregs.h.al = 1; inregs.h.dl = c; intdos(&inregs,&outregs); } Tim -- ...sun!hoptoad!\ Tim Pozar >fidogate!pozar Fido: 1:125/406 ...lll-winken!/ PaBell: (415) 788-3904 USNail: KKSF / 77 Maiden Lane / San Francisco CA 94108