Article View: comp.os.msdos.programmer
Article #2319Re: Changing option character from / to -
From: Steve Resnick
Date: Fri, 21 Sep 1990 19:05
Date: Fri, 21 Sep 1990 19:05
35 lines
1727 bytes
1727 bytes
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 >instead of DIR /W. This will free the / character for use as a directory name >separator so you can type DIR DIRNAME/FILENAME instead of DIR DIRNAME\FILENAME >(the MS-DOS routines will accept / as well as \ but COMMAND.COM won't). > >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: AH=37H AL=0 - Querey Current Switch Character AL=1 - Set Current Switch Character in DL Returns: DL - Current Switch Character To Set the char to '-' in assembler (you can do this from Debug too) use: MOV AX,3701H MOV DL,2DH INT 21H RET Hope this helps.... Steve -- ---------------------------------------------------------------------------- steve.resnick@f105.n143.z1@FIDONET.ORG #include<std_disclaimer.h> Flames, grammar errors, spelling errrors >/dev/nul ----------------------------------------------------------------------------
Technical Details
Message-ID:
<1990Sep21.190505.1542@Octopus.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!vsi1!octopus!steverReferences:
<6867.26f929ec@vax1.tcd.ie>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!vsi1!octopus!stever From: stever@Octopus.COM (Steve Resnick ) Newsgroups: comp.os.msdos.programmer Subject: Re: Changing option character from / to - Message-ID: <1990Sep21.190505.1542@Octopus.COM> Date: 21 Sep 90 19:05:05 GMT References: <6867.26f929ec@vax1.tcd.ie> Reply-To: stever@octopus.UUCP (Steve Resnick ) Organization: Octopus Enterprises, Cupertino CA Lines: 35