delorie.com/archives/browse.cgi   search  
Mail Archives: opendos/1998/05/14/15:25:35

Date: Thu, 14 May 1998 13:22:28 -0600 (MDT)
Message-Id: <199805141922.NAA13798@kewlaid.highfiber.com>
Mime-Version: 1.0
To: opendos AT delorie DOT com
From: raster AT highfiber DOT com (Charles Dye)
Subject: TMP directory

Matthias DOT Paul AT post DOT rwth-aachen DOT de writes:

>> SET TEMP=C:\DRDOS

>Tz, please avoid using such directories as trash/junk directory... ;-)
>
> MD C:\TMP
> SET TEMP=C:\TMP
> SET TMP=%TEMP%

Odd related fact:  the DR DOS setup program creates a subdirectory
\DRDOS\TMP but does not add the relevant variables to AUTOEXEC.BAT.
Hmmmm.

To prevent the error message from being displayed, I usually do:
IF NOT DIREXIST C:\TEMP MD C:\TEMP

(MS-DOS doesn't support the DIREXIST condition, so you'd have to
test for the NUL device instead if you wanted compatibility with
both.)

raster AT highfiber DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019