systen variables

J

John Holderman

The Environ function, index 21, provides the TEMP directoty but it also
included the words "TEMP=" in the text. Is there a way to either remove the
first 5 charicatars from a string or get just the directory without the
"TEMP=" added?
 
B

Bob Phillips

It's SystemDrive on my machine!

And that highlights a problem using the index, you cannot rely on a variable
being ion a fixed position.

Use Environ("Temp") instead, and you just get the value.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Top