Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ihuxy!vg55611 From: vg55611@ihuxy.UUCP Newsgroups: comp.sys.ibm.pc,comp.sys.att Subject: Re: Anyone know how to discover the DOS switch character? Message-ID: <2257@ihuxy.ATT.COM> Date: Thu, 12-Nov-87 11:42:25 EST Article-I.D.: ihuxy.2257 Posted: Thu Nov 12 11:42:25 1987 Date-Received: Sat, 14-Nov-87 12:42:15 EST References: <2678@ihlpf.ATT.COM> Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 17 Keywords: DOS, IBMPC, PC6300, switch, assembler Xref: utgpu comp.sys.ibm.pc:8595 comp.sys.att:1499 Summary: Why not allow both '\' and '/' ? In article <2678@ihlpf.ATT.COM>, warren@ihlpf.ATT.COM (Montgomery) writes: > I have tried without much success to find a way of discovering from > a program what the current DOS switch character is. I am working > with a C compiler and assembler that have no MS-DOS library support > > Warren Montgomery ihlpf!warren Apparently the switchar can be read using INT 21H with AH=37H, AL=00H. The switchar is returned in DL (I have not tried this). But, why read the switchar at all ? Just replace all occurrences of '/' with '\' in the arg string (or the string of concern) and then the user of your program can use either. This is what I do with programs I write. Venu P. Gopal ihnp4!ihuxy!vg55611