Article View: comp.os.msdos.programmer
Article #2334Re: Changing option character from / to -
From: Ralf.Brown
Date: Sat, 22 Sep 1990 11:53
Date: Sat, 22 Sep 1990 11:53
22 lines
1547 bytes
1547 bytes
In article <1990Sep21.190505.1542@Octopus.COM>, stever@Octopus.COM (Steve Resnick ) wrote:
}In article <6867.26f929ec@vax1.tcd.ie> rwallace@vax1.tcd.ie writes:
}>Does anyone know how to change the MS-DOS option character from / to something
}>else? What I want to do is to change it from / to -, so you can type DIR -W
}>
}>The Turbo C++ manual says it's an INT 21h call, but doesn't say which one. I
}>can't find it documented anywhere.
}>
}This is done through UNDOCUMENTED DOS Function 37H This works like this:
}[...omitted...]
Turbo C 1.5/2.0 and Turbo C++ 1.0 have undocumented library functions
int getswitchar(void) ;
and
void setswitchar(char c) ;
which make the undocumented DOS call. TC1.0 may have had them, but I can't
recall.
--
UUCP: {ucbvax,harvard}!cs.cmu.edu!ralf -=- 412-268-3053 (school) -=- FAX: ask
ARPA: ralf@cs.cmu.edu BIT: ralf%cs.cmu.edu@CMUCCVMA FIDO: 1:129/3.1
Disclaimer? | I was gratified to be able to answer promptly, and I did.
What's that? | I said I didn't know. --Mark Twain
Technical Details
Message-ID:
<26fb50c3@ralf>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pt.cs.cmu.edu!b.gp.cs.cmu.edu!Ralf.Brown@B.GP.CS.CMU.EDUShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pt.cs.cmu.edu!b.gp.cs.cmu.edu!Ralf.Brown@B.GP.CS.CMU.EDU From: Ralf.Brown@B.GP.CS.CMU.EDU Newsgroups: comp.os.msdos.programmer Subject: Re: Changing option character from / to - Message-ID: <26fb50c3@ralf> Date: 22 Sep 90 11:53:39 GMT Sender: ralf@b.gp.cs.cmu.edu Organization: Carnegie Mellon University School of Computer Science Lines: 22 In-Reply-To: <1990Sep21.190505.1542@Octopus.COM>