asc@concurrent.co.uk (Andy Chittenden) (09/22/89)
Does anybody know what the undocumented DOS calls are to set and get the switch character? Thanks in anticipation, Andy
djm@castle.ed.ac.uk (D Murphy) (09/23/89)
In article <933@sl10c.concurrent.co.uk> asc@concurrent.co.uk (Andy Chittenden) writes: >Does anybody know what the undocumented DOS calls are to set and get >the switch character? > >Thanks in anticipation, Andy Me too! Murff...
src@cup.portal.com (Steve R Calwas) (09/24/89)
asc@concurrent.co.uk (Andy Chittenden) writes: >Does anybody know what the undocmented DOS calls are to set and get >the switch character? --------------------------------------- Int 21h (33) Function 37h (55) Get or Set COMMAND.COM Switch Character --------------------------------------- Get the current COMMAND.COM switch character or set the switch character to something new (COMMAND.COM uses the slash(/) as the default switch character). This function only affects internal COMMAND.COM commands, such as DIR and COPY. It has no effect on external programs like XCOPY or LINK. Call with: AH = 37h AL = 0 to get the current switch character AL = 1 to set the switch character DL = ASCII value of new switch character Returns: DL = ASCII value of current switch character Notes: This function is not available in DOS 4.0+ or the OS/2 DOS compatibility box. The COMMAND.COM program in MS/PC-DOS 2.xx contains an undocumented internal command, SWITCHAR, that will get or set the switch character. MS/PC-DOS 3.xx removed the SWITCHAR command, but still includes the operating system function calls. As noted above, this function only affects the COMMAND.COM internal commands and it is being phased out of the newer versions of DOS, thus it is of limited use. The new version of ANARKEY 3.00, a DOS command-line editor which I wrote, contains support for use of the UNIX switchar conventions for ALL programs, internal and external. I uploaded ANARKEY 3.00 to comp.binaries.pc and it should appear ???. If you are a registered ANARKEY user, the new version was mailed to you last Wednesday. If you are not registered and send me your registration now, I will send you the new version immediately. Steve Calwas src@cup.portal.com Santa Clara, CA ...!sun!cup.portal.com!src
dhesi@sun505.UUCP (Rahul Dhesi) (09/24/89)
In article <933@sl10c.concurrent.co.uk> asc@concurrent.co.uk (Andy Chittenden) writes: >Does anybody know what the undocumented DOS calls are to set and get >the switch character? These system calls are not undocumented. See Microsoft's OEM documentation for MS-DOS version 2.x, or technical manuals published by Digital Equipment Corporation and Zenith for their microcomputers. Since these system calls were officially supported in version 2.x, and Microsoft has never announced that support is being dropped or advised people not to use them, you can probably safely assume that they are still official. -- Rahul Dhesi <dhesi%cirrusl@oliveb.ATC.olivetti.com> UUCP: oliveb!cirrusl!dhesi
rac@sherpa.uucp (Roger Cornelius) (09/25/89)
From article <933@sl10c.concurrent.co.uk>, by asc@concurrent.co.uk (Andy Chittenden): > Does anybody know what the undocumented DOS calls are to set and get > the switch character? > > Thanks in anticipation, Andy From inter489.arc, the interrupt list regularly posted in c.b.i.p.c. and maintained by Ralf Brown: --------------------------------------------- INT 21 - DOS 2+ internal - GET SWITCHAR AX = 3700h Return: AL = FFh unsupported subfunction DL = current switch character --------------------------------------------- INT 21 - DOS 2+ internal - SET SWITCHAR AX = 3701h DL = new switch character Return: AL = FFh unsupported subfunction --------------------------------------------- -- Roger A. Cornelius rac@sherpa uunet!sherpa!rac
fredex@cg-atla.UUCP (Fred Smith) (09/25/89)
In article <933@sl10c.concurrent.co.uk> asc@concurrent.co.uk (Andy Chittenden) writes: >Does anybody know what the undocumented DOS calls are to set and get >the switch character? > >Thanks in anticipation, Andy Andy et al: here is an excerpt from Ralf's interrupt list, inter489 on the subject of your request: ---------------------------------------------^M INT 21 - DOS 2+ internal - GET SWITCHAR^M AX = 3700h^M Return: AL = FFh unsupported subfunction^M DL = current switch character^M ---------------------------------------------^M INT 21 - DOS 2+ internal - SET SWITCHAR^M AX = 3701h^M DL = new switch character^M Return: AL = FFh unsupported subfunction^M ---------------------------------------------^M Hope this helps! Fred
freiss@nixpbe.UUCP (freiss) (09/26/89)
int 21: Get current switch character: on entry: AX = 3700 return: AL = ff (if error (unsupported subfunction)) DL = current switch character Set new switch character: on entry: AX = 3701 DL = new switch character return: AL = ff (if error (unsupported subfunction)) All numbers are in hexadecimal. Have fun, Martin -- Martin Freiss UUCP: USA: ..!uunet!philabs!linus!nixbur!freiss.pad Nixdorf Computer AG !USA: ..!mcvax!unido!nixpbe!freiss.pad Dept. DS-CC 22 NERV: freiss.pad Pontanusstr. 55 Voice: +49 5251 14 6153 D-4792 Paderborn "Drink wet cement, get stoned."
otto@tukki.jyu.fi (Otto J. Makela) (10/01/89)
In article <933@sl10c.concurrent.co.uk> asc@concurrent.co.uk (Andy Chittenden) writes:
Does anybody know what the undocumented DOS calls are to set and get
the switch character?
Thanks in anticipation, Andy
This seems to be a common question. Follows software by yours truly that
should make the point clear...
begin 644 switch.zip
M4$L#! H & /&E(A$"_AP>[P (H! ( 4U=)5$-(+D,- @$2(Q05
M-C=HB9K;/ 4&$A-$Q?:6]Q.^5-E084*5*A,233L7+MNP>5^.11O6[=FR(.?>
M34M'>8-H?KEAQ](M*X=\OB!>SV.[0-XH4^Z(7L&[;=BT;E$T[[-C61"_W130
MRWG3!?$\=[R7*J[GUJX[$^XI=KEESZ0K:-/F(,8']:<U \QYRNC_A GAR@FV
MZ"URRM#P(/ W2+=O[X(\67+L2:YN1;(XFH:9(NE,6);M'+Q+V5&.[2%/Q^R:
MDF?/$^^K&G)2MFR$[K!LDG79.V5!TT:/@4;1;5*#>C?L'/K.$L334.I3=X,Y
MYKSN,[R$'U!+ P0* !@#N#9@1HW\-_G\* !L#@ "@ %-7251#2"Y#
M3TT/ !(#)!4V)S@Y:GM,G6X?"08!$S3E]I;WTU\^6'4Q^\'$_0_V2U!@7XRX
MHH>*_BN YP5BAHI;<X/EV2P[P?5*%WLUN/BK0,4'$1O]SQ/D7P?<CHO;GW#S
M%O1<!3VY[=IO7*LB]9Q'/\&:O&?M(*QU<?FNP^)VQ58) M8/TFY!W %O-@\!
M=,2N6!@V;VS4(-3_=@GB-AT _I($X#< 3^*.Z.!:T1\@&OZJU471+_9K<+!_
MA74S7HDJHWR#M_;\_[]N0ES$>_V"+N6C+X 6AR=O\1;U!'<2%2AWXF*C!$O^
MDZ][5MWJ15WFFB"4[O]-/7:LB ]BZO;UZ*WZ)NAPL?'!QO[RA "S!O:/\*%<
M^%[X1O_2\X7MK0T/F*]!@'21*B9J$'-J L@WN+:OG8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FCC2L>L$AY+PV
M4,]O)EG];J-1DL+T!E!+ 0(* H & /&E(A$"_AP>[P (H! (
M $ ( !35TE40T@N0U!+ 0(* H & .X-F!&C?PW^?PH
M &P. * ( !4! !35TE40T@N0T]-4$L! @H "@ $
M*7Q)$2'@^?]S D H 0 @ O L %-7251#2"Y-04M0
M2P$""@ * !@#@>TD1;B7<"N$# #U!@ "@ ! " !7#
M4U=)5$-(+DU!3E!+ 0(* H & .T-F!'XEH^['P$ '<! (
M $ ( & 0 !35TE40T@N3U!+ 0(* H & ,FH(A'ZW+]_=0( .(#
M , $ ( *41 !35TE40TA!4BY!4TU02P4& 8 !@!.
M 0 1!0 !#0HJ("H@*B J("H@*B J("H@*B J("H@*B J("H@*B J("H@
M*B J("H@*B J("H@*B J#0HJ($IY=H1S:WELA"!%;&5C=')O;FEC($UA:6QB
M;W@Z("LS-3@@-#$@,C$Q(#4V,B J#0HJ(" @($-#2514(%8N,C)B:7,O5BXR
M,B]6+C(Q+"!"96QL(#(Q,D$O,3 S(" @(" J#0HJ("!.;R!C:&%R9V4L(#(T
M(&AO=7)S+V1A>2P@,S8U+C(U(&1A>7,O>65A<B A(" J#0HJ("H@*B J("H@
H*B J("H@*B J("H@*B J("H@*B J("H@*B J("H@*B J("H@*B J#2 J
end
--
* * * Otto J. Makela (otto@jyu.fi, MAKELA_OTTO_@FINJYU.BITNET) * * * * * * *
* Phone: +358 41 613 847, BBS: +358 41 211 562 (CCITT, Bell 2400/1200/300) *
* Mail: Kauppakatu 1 B 18, SF-40100 Jyvaskyla, Finland, EUROPE *
* * * freopen("/dev/null","r",stdflame); * * * * * * * * * * * * * * * * * *