Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!ihlpe!psfales From: psfales@ihlpe.ATT.COM (Pete Fales) Newsgroups: comp.sys.ibm.pc Subject: Re: program always uses drive A: Message-ID: <2093@ihlpe.ATT.COM> Date: Mon, 28-Sep-87 14:40:59 EDT Article-I.D.: ihlpe.2093 Posted: Mon Sep 28 14:40:59 1987 Date-Received: Tue, 29-Sep-87 06:49:48 EDT References: <10495@beta.UUCP> Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 24 Keywords: changing hard I/O *without* using assign, subst, and company In article <10495@beta.UUCP>, dd@beta.UUCP (Dan Davison) writes: > A problem: program always reads from drive A: > > I have an application program, available only as a .EXE file, which > always tries to read a data file from the A: drive. Is there a way to > change this using DEBUG? I'd like to change this to the C: drive. This > program is not a commerical program, and is not available in source code > to fix this problem. Any hints would be welcome. Because of the users > of the program (real novices) this correction must be made in the > program, not at the DOS level. Thanks! I would go in with DEBUG and look for any occurrences of the string "A:" and change them to use drive C. This is not guaranteed to work because there are other ways to access the A: drive that can be used, especially by programs originally written for older versions of DOS. But it's worth a try. If that doesn't work, the only thing to do is trace through the execution of the program with DEBUG (or a better debugger) and figure out what is going on. -- Peter Fales UUCP: ...ihnp4!ihlpe!psfales work: (312) 979-7784 AT&T Information Systems, IW 1Z-243 1100 E. Warrenville Rd., IL 60566