#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2005
    Location
    Chicago, Illinois, U.S.A.
    Posts
    99
    Rep Power
    0

    Looking for java identifiers.


    Is there any lists of identifiers that Java supports from the computer? Looking for some webpages that might list some. Not quite interested in ones like "today's date" and "time" since I can just look at my watch or at the computer's display clock. But more like the system's uptime.

    For example, in older Windows like 2K, I think if you Ctrl Alt Del you go to a dialog that has the system uptime.

    It would be like mm dd yyyy hh:nn:ss.

    With this information, then I could use this to calculate how many days, hours, etc. ago the computer has been on.

    I'm also looking for some commands that Java might support, like the run command in the command prompt. Like if I wanted to run Notepad.exe or a certain file with the path. I tried that and it didn't work so if it exists, it's called something else.

    Thanks.
  2. #2
  3. Java Junkie
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jan 2004
    Location
    Mobile, Alabama
    Posts
    4,022
    Rep Power
    1285
    You can use a ProcessBuilder to execute external commands
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2005
    Location
    Chicago, Illinois, U.S.A.
    Posts
    99
    Rep Power
    0
    Okay here's another 1: changing the desktop wallpaper to another image. Looking for a library of Java commands that can change Windows settings. I tried searching for stuff like this in my favorite search engine but no luck.
  6. #4
  7. Java Junkie
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jan 2004
    Location
    Mobile, Alabama
    Posts
    4,022
    Rep Power
    1285
    Originally Posted by LostShadow
    Okay here's another 1: changing the desktop wallpaper to another image. Looking for a library of Java commands that can change Windows settings. I tried searching for stuff like this in my favorite search engine but no luck.
    If you can figure out how to do it in the command line, you should be able to with ProcessBuilder

IMN logo majestic logo threadwatch logo seochat tools logo