In my school Unix servers, I can run certain programs on the command line without going to the file where they are located. For example,
shell> java filename
would run the file with java. The home-computer I use has Windows on it, and I was wondering if I could do something similar on the command line. Right not, I have to go to the path location of the executable, and type in the name of the executable to run it.
C:\longpath> java filename
Is it possible to access java (or any other program for that matter) without going to its file location via the Windows command line?