systen variables

  • Thread starter Thread starter John Holderman
  • Start date Start date
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?
 
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top