🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #17

Re: How to trick DOS?

#17
From: Archie Lee Moberly
Date: Tue, 07 Apr 1992 18:13
31 lines
1412 bytes
>Hi, I have an app program that was hardcoded to look at e:\x\y\z.dat
>unfortunately I donot have e: drive.  Can somebody tell me how to trick
>DOS so I can redirect the program to look to other location.  I read somewhere
>that some had done it, but could not recall how...
> 
>thank you
>glenn jayaputera


Have you tried using the SUBST command?  I use it all the time to access
directories that are otherwise hidden.  

Sample Call:

subst e: c:\temp

Everytime e: is accessed the data is actually referenced to c:\temp.

If the program is located in c:\app, I would reccomend creating 
c:\app\x\y and place z.dat in c:\app\x\y\z.dat.  

Then type subst e: c:\app

NOTE- To cancel a substitution, type subst e: /d

If you have any problems or questions, feel free to send me mail.

Hope this helps,

--Arch Moberly
  am4v+@andrew.cmu.edu
Technical Details
Message-ID: <MdsSMke00YVX42fqtz@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!mips!darwin.sura.net!udel!rochester!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!am4v+
References: <10126@goanna.cs.rmit.oz.au>

Show Full Headers
Complete Article Headers
Organization: Freshman, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!mips!darwin.sura.net!udel!rochester!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!am4v+
Newsgroups: comp.sys.ibm.pc,comp.os.msdos.misc
Message-ID: <MdsSMke00YVX42fqtz@andrew.cmu.edu>
Date: Tue,  7 Apr 1992 14:13:04 -0400 
From: Archie Lee Moberly <am4v+@andrew.cmu.edu>
Subject: Re: How to trick DOS?
In-Reply-To: <10126@goanna.cs.rmit.oz.au>
References: <10126@goanna.cs.rmit.oz.au>