public class System extends Object
| Constructor and Description |
|---|
System() |
| Modifier and Type | Method and Description |
|---|---|
static void |
lockMyPC()
Places the user on the sign-in screen without closing any apps.
|
static void |
openAPath(String path)
Opens a path in Explorer/Finder/whatever file viewer
|
static void |
printAFile(String path)
Prints a file using whatever print system your OS uses
|
static String |
whatsMyOS()
Gets the OS name of the one who runs the program.
|
static String |
whatsMySimplifiedOS()
Gets the OS name of the one who runs the program.
|
static String |
whoIsUsingThePC()
Returns the username of the one who is using the PC
|
public static String whatsMyOS()
public static String whatsMySimplifiedOS()
whatsMyOS() this info is simplified. Ex. Windows Version 10whatsMyOS())public static String whoIsUsingThePC()
public static void lockMyPC()
public static void openAPath(String path)
path - the path to openpublic static void printAFile(String path)
path - the path of the file to printCopyright © 2022. All rights reserved.