Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Windows Path Variable .. Exact Name

case sensitive

  • Please log in to reply
3 replies to this topic

Poll: Path variable case sensitive (3 member(s) have cast votes)

How is your (windows) path variable exactly written?

  1. Path (3 votes [100.00%])

    Percentage of vote: 100.00%

  2. path (0 votes [0.00%])

    Percentage of vote: 0.00%

  3. PATH (0 votes [0.00%])

    Percentage of vote: 0.00%

  4. Other (0 votes [0.00%])

    Percentage of vote: 0.00%

Vote Guests cannot vote

#1 wim DC

wim DC

    Roar

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 2681 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Python

Posted 11 May 2012 - 06:02 AM

Okay, I had absolutely no idea where to post this. But I just need to know whether the path variable is always exactly written as (case sensitive) "Path"

So if you're on windows and got 1 minute to check. Please take a look and let me know.
  • 0

#2 papabear

papabear

    CC Devotee

  • Senior Member
  • PipPipPipPipPipPip
  • 472 posts
  • Location:DarkSide

Posted 11 May 2012 - 06:10 AM

I write mine in "Path" and got no problem with it so far and I remember I also tried "path" and it's also good I think it's not case sensitive
I'm using windows
  • 0
Life has no CTRL+Z
Never Forget To HIT "LIKE" If I Helped

#3 wim DC

wim DC

    Roar

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 2681 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Python

Posted 11 May 2012 - 06:13 AM

Yea, but I want to process the whole user's path in Java. So Java has this method
System.getenv().get("key");
Where "key" will be case sensitive. I was actually quite surprised to see it being "Path" with me. I would've expected "PATH" or "path" more.

Edit: Oh that's nice, if i make another entry called "PATH" next to my current "Path", it just overwrites my "Path" without warning. :scared: Gawddamnit.
So, anyway, I now got a working PATH variable, and no Path anymore. Guess that means i'll have to build in some more checks to find the right path variable then ^^
  • 0

#4 Alexander

Alexander

    YOL9

  • Moderator
  • 3963 posts
  • Location:Vancouver, Eh! Cleverness: 200
  • Programming Language:C, C++, PHP, Assembly

Posted 11 May 2012 - 02:58 PM

In Windows case becomes irrelevant and has no need to refer to separate things. I am certain you can access without care in various languages, where other operating systems you need to be careful.

I presume Java does not discriminate Windows and it must be in the case exactly as written. I can't recall the last time it was actually PATH, DOS? My Windows 2000 computer has "Path".

Alexander.
  • 0

All new problems require investigation, and so if errors are problems, try to learn as much as you can and report back.






Also tagged with one or more of these keywords: case sensitive

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download