Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!rlgvax!dennis From: dennis@rlgvax.UUCP (Dennis.Bednar) Newsgroups: comp.sys.ibm.pc,comp.sys.att Subject: Re: Anyone know how to discover the DOS switch character? Message-ID: <708@rlgvax.UUCP> Date: Fri, 13-Nov-87 14:40:54 EST Article-I.D.: rlgvax.708 Posted: Fri Nov 13 14:40:54 1987 Date-Received: Sun, 15-Nov-87 09:45:13 EST References: <2678@ihlpf.ATT.COM> <2257@ihuxy.ATT.COM> Organization: Computer Consoles Inc, Reston VA Lines: 18 Keywords: DOS, IBMPC, PC6300, switch, assembler Xref: mnetor comp.sys.ibm.pc:10124 comp.sys.att:1747 In article <2257@ihuxy.ATT.COM>, vg55611@ihuxy.ATT.COM (gopal) writes: > 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. Am I missing something? If I ran the command comx /s b:\dir\file.c then your program (comx) internally does this: comx \s b:\dir\file.c before it does any real processing (based on what you have said). Now, how can you tell if \s is a switch or a file? It seems that you cannot, that is, it would be ambiguous. -- FullName: Dennis Bednar UUCP: {uunet|sundc}!rlgvax!dennis USMail: CCI; 11490 Commerce Park Dr.; Reston VA 22091 Telephone: +1 703 648 3300