com.denova.runtime
Class WindowsDirs

java.lang.Object
  |
  +--com.denova.runtime.WindowsCmdFile
        |
        +--com.denova.runtime.WindowsDirs
All Implemented Interfaces:
WindowsConstants

public class WindowsDirs
extends com.denova.runtime.WindowsCmdFile
implements WindowsConstants

Access standard Windows directories.

Author:
DeNova Copyright © 1997-2008 DeNova All rights reserved worldwide.

Field Summary
 
Fields inherited from interface com.denova.runtime.WindowsConstants
AddRegistryEntry, AllUsers, AppendRegistryEntry, BinaryType, CurrentUser, DeleteRegistryEntry, DesktopSpecFilename, DirectoryResultsFilename, DWordType, EnumKeyRegistryEntry, EnumValueRegistryEntry, EnvOutputFilename, ExistsRegistryEntry, FreeDiskSpaceResultsFilename, InvokerFilename, MenuSpecFilename, NtResultsFilename, PathOutputFilename, PrependRegistryEntry, QueryRegistryEntry, RegistryResultsFilename, RegistrySpecFilename, ReplaceRegistryEntry, ShortnameFilename, StringType, WindowsAddDesktop, WindowsAddProgramsMenu, WindowsAddStartupMenu, WindowsAppDataCommand, WindowsCmdLogFilename, WindowsCommandsFilename, WindowsDelDesktop, WindowsDelProgramsMenu, WindowsDelStartupMenu, WindowsDesktopCommand, WindowsDesktopDirCommand, WindowsDirCommand, WindowsEnvVariableCommand, WindowsFreeDiskSpaceCommand, WindowsMenusDirCommand, WindowsNtCommand, WindowsPathCommand, WindowsPathShortenerCommand, WindowsProgramManagerDirCommand, WindowsProgramsMenuCommand, WindowsRegistryEditorCommand, WindowsStartupMenuCommand, WindowsStartupMenusDirCommand
 
Constructor Summary
WindowsDirs()
           
 
Method Summary
static java.lang.String getAppDataDirectory()
           
static java.lang.String getDesktopDir()
          Get the directory name, including the trailing \, where the desktop items are stored.
static java.lang.String getMenuDir()
          Get the directory name, including the trailing \, where the menus are stored.
static java.lang.String getProgramManagerDirectory()
           
static java.lang.String getStartupMenuDir()
           
static java.lang.String getWindowsDirectory()
           
 
Methods inherited from class com.denova.runtime.WindowsCmdFile
getCommandProgram, getCommandProgramFilename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsDirs

public WindowsDirs()
Method Detail

getWindowsDirectory

public static java.lang.String getWindowsDirectory()
Returns:
the Windows directory name from the registry.

On error, returns null


getProgramManagerDirectory

public static java.lang.String getProgramManagerDirectory()
Returns:
the Program Files directory name from the registry.

On error, returns null


getAppDataDirectory

public static java.lang.String getAppDataDirectory()
Returns:
the AppData directory name from the registry.

On error, returns null


getMenuDir

public static java.lang.String getMenuDir()
Get the directory name, including the trailing \, where the menus are stored.

Returns:
the menu directory name or null if an error.

getStartupMenuDir

public static java.lang.String getStartupMenuDir()
Returns:
the startup menu directory name from the registry.

On error, returns null


getDesktopDir

public static java.lang.String getDesktopDir()
Get the directory name, including the trailing \, where the desktop items are stored.

Returns:
the desktop directory name or null if an error.