Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!fu-berlin.de!uni-berlin.de!ppp178.ppp4.cleveland.nccw.NET!not-for-mail
From: "Todd Vargo"
Newsgroups: alt.msdos.batch,fido.4dos,comp.os.msdos.4dos,comp.os.msdos.misc
Subject: Re: Read txt file into W95 clipboard line by line?
Date: Mon, 27 Jan 2003 16:33:00 -0500
Lines: 24
Message-ID:
References:
NNTP-Posting-Host: ppp178.ppp4.cleveland.nccw.net (207.88.126.92)
Xref: archiver1.google.com alt.msdos.batch:29483 fido.4dos:18 comp.os.msdos.4dos:3264 comp.os.msdos.misc:9826
"E.S.Fabian" wrote:
> JP command processors create temporary files in the %temp directory
> when accessing the clipboard. These files are NOT removed.
Once you know about these quirks, this is easily handled in the batch code
by creating a new directory in TEMP and pointing TEMP to it, before the
clipboard routine, then restoring the original TEMP afterwards, and finally
remove the new directory.
::This assumes JP uses TEMP (not TMP) for its temp variable.
@echo off
md %temp%.\JP_tmp
set temp=%temp%.\JP_tmp
Put JP-clipboard routine(s) here
set temp=%temp%\..
deltree /y %temp%.\JP_tmp
--
Todd Vargo (body of message must contain my name to reply by email)
|