Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!think!rutgers!clyde!cbatt!neoucom!wtm From: wtm@neoucom.UUCP (Bill Mayhew) Newsgroups: net.micro.pc Subject: Re: switchar Message-ID: <312@neoucom.UUCP> Date: Tue, 28-Oct-86 08:26:55 EST Article-I.D.: neoucom.312 Posted: Tue Oct 28 08:26:55 1986 Date-Received: Tue, 28-Oct-86 21:45:47 EST References: <1402@uw-june> Organization: Northeastern Ohio Universities College of Medicine Lines: 49 Summary: Here is a source for switchar for DOS 3.x Hi, You are correct that switchar seems to be broken in DOS 3.x. Following is a brief batch file that you can run that uses debug to to create a small .com file that allows you to set the switch character at the prompt level in (seemingly) any version of DOS. Be careful though, some programs are to dumb to realize that you've changed the switchar, and will bomb when they call their overlays. Bill Mayhew: (wtm@neoucom.UUCP ...!cbatt!neoucom!wtm) ------------------------previous article----------------------- >From few@well.UUCP Wed May 28 01:33:54 1986 >Newsgroups: net.micro >Subject: Re: Changing SWITCHAR in dos 3.x > >In article <883@brl-smoke.ARPA> bridger@RAND-UNIX.arpa writes: >>The MS-DOS COMMAND.COM shell uses the forward slash '/' >>as its SWITCHAR to designate command-line parameters. >>In dos versions 2.x the following line could be added >>to the CONFIG.SYS file to change that character to a '-', >>allowing the '/' to be used as a separator for directory >>names in a path: >> SWITCHAR=- >>This doesn't work for dos 3.1. Is there another way to do it? > >I've posted this program a couple of times, but never this way before. >Save the following as SW.BAT: >----- goto END e 100 F6 06 80 00 FF 74 09 8A 16 82 00 B8 01 37 CD 21 e 110 B8 00 37 CD 21 88 16 30 01 BA 22 01 B4 09 CD 21 e 120 CD 20 53 77 69 74 63 68 20 63 68 61 72 20 3D 20 e 130 00 0D 0A 24 rcx 34 n switch.com w q :END debug ----- >SWITCH will tell you what the current switch character is, while >SWITCH c will set the switch character to c. >-- >Frank Whaley >EFS Management Software, Inc.