Solved

Is this one platform independent?

Posted on 2006-07-18
6
299 Views
Last Modified: 2010-05-18
Hello is this one platform independent?
Environment.GetEnvironmentVariable("TMP");
0
Comment
Question by:m-jansen
  • 3
  • 2
6 Comments
 

Author Comment

by:m-jansen
ID: 17128555
I mean does it work on linux?
0
 
LVL 35

Assisted Solution

by:Raynard7
Raynard7 earned 75 total points
ID: 17128578
Not necessarily - it depends on what build you are using.  It is unlikley unless it has been manually set
0
 

Author Comment

by:m-jansen
ID: 17128610
Ok. So it mostly works with Windows? (I'm using Environment.GetEnvironmentVariable("TMP"); in an aspx page) I try to find a universal method to find the temporaty folder for the user that surf on that page.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 35

Accepted Solution

by:
Raynard7 earned 75 total points
ID: 17128664
If the environment variable $TMP is set, its value should be used as the directory for temporary files. Otherwise the environment variable $HOME probably will be populated. If neither $TMP nor $HOME is set, use the current working directory
0
 
LVL 48

Assisted Solution

by:AlexFM
AlexFM earned 50 total points
ID: 17128699
Mono supports Environment.GetEnvironmentVariable, you can see this in Mono reference:
http://www.go-mono.com/docs/

I don't know whether Linux has environment variables. If yes, this should work.
0
 

Author Comment

by:m-jansen
ID: 17128837
Ok. Thanks for the info. I now think it's not a good idea to use this method. Rather try to make something that works on the server instead of on the client.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now