Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!caip!seismo!ut-sally!nather From: nather@ut-sally.UUCP (Ed Nather) Newsgroups: net.micro Subject: Re: Changing SWITCHAR in dos 3.x Message-ID: <4977@ut-sally.UUCP> Date: Fri, 23-May-86 11:03:31 EDT Article-I.D.: ut-sally.4977 Posted: Fri May 23 11:03:31 1986 Date-Received: Sun, 25-May-86 17:36:53 EDT References: <883@brl-smoke.ARPA> Organization: U. Texas CS Dept., Austin, Texas Lines: 38 Summary: 2nd posting - first was incomplete, sorry In article <883@brl-smoke.ARPA>, bridger@RAND-UNIX.arpa writes: > This doesn't work for dos 3.1. Is there another way to do it? Yes. Here is a short assembly routine that sets SWITCHAR to "\", thus letting "/" be used as a pathname separator. It works under DOS 2.x and 3.x --------------------------------------------------------------------------- cseg segment para public 'code' assume cs:cseg,ds:cseg,es:cseg,ss:cseg org 100h ent proc near MOV DL,'\' ; DL was slash, change it to backslash MOV AX,3701h ; AH=CharOper, AL=Set it INT 21h ; DOS Command RET ent endp cseg ends end ent ----------------------------------------------------------------- While you're at it, you might also want to shut up the "echo off" echo from batch files. Put the stuff between the dashed lines below into a file called "fixcom" and then type the command debug command.com < fixcom and lo! echo is off by default and only chatters if you insist. --------------------------------------------------------------------- e 105b 2 --------------------------------------------------------------------- -- Ed Nather Astronomy Dept, U of Texas @ Austin {allegra,ihnp4}!{noao,ut-sally}!utastro!nather nather@astro.AS.UTEXAS.EDU