|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.denova.runtime.WindowsCommands
public class WindowsCommands
Provides access to the system path, setting permissons, etc.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
WindowsCommands()
|
|
| Method Summary | |
|---|---|
static boolean |
changePermissions(java.lang.String filename,
java.util.List args)
Change the permissions on a file using attrib. |
static boolean |
createLink(java.lang.String existingFilename,
java.lang.String linkedFilename)
Create a link between 2 files. |
static java.lang.String |
getAncientShortPath(java.lang.String path)
Get the Windows short name for a file or directory. |
static java.lang.String[] |
getEnvironment()
Get the environment. |
static java.lang.String |
getEnvVariable(java.lang.String variable)
Get the value of a single valued environment variable. |
static java.lang.Long |
getFreeDiskSpace(java.lang.String rootPath)
Get the free space on the drive. |
static java.lang.String |
getProcessorArchitecture()
Get the architecture of the processor. |
static java.lang.String |
getSystemPath()
Get the system's path. |
static boolean |
hideFile(java.lang.String filename)
Hide the file or directory. |
static boolean |
is64BitProcessorArchitecture()
Determine if the OS is 64 bit. |
static boolean |
isWow64Process()
Is this program is running as a 32 bit process on a 64 bit OS. |
static boolean |
normalFile(java.lang.String filename)
Set the file or folder attributes to normal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WindowsCommands()
| Method Detail |
|---|
public static boolean createLink(java.lang.String existingFilename,
java.lang.String linkedFilename)
existingFilename - file to create a link tolinkedFilename - symbolically linked filepublic static java.lang.String getSystemPath()
public static java.lang.String getEnvVariable(java.lang.String variable)
public static java.lang.String[] getEnvironment()
public static java.lang.String getProcessorArchitecture()
public static boolean is64BitProcessorArchitecture()
public static boolean isWow64Process()
public static boolean changePermissions(java.lang.String filename,
java.util.List args)
filename - full path to file.args - list of string arguments to attrib.
public static boolean hideFile(java.lang.String filename)
filename - full path to the file or folder to hide.public static boolean normalFile(java.lang.String filename)
filename - full path to file or folder to set attributes to normal.public static java.lang.Long getFreeDiskSpace(java.lang.String rootPath)
rootPath - The drive's top level path.
public static java.lang.String getAncientShortPath(java.lang.String path)
If short names aren't supported, then returns the original path. If any errors occur while getting the name, returns null.
path - the full path of a file or directory.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||