java.lang.Object
mslinks.ShellLink
public class ShellLink extends Object
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description static ShellLinkcreateLink(String target)static ShellLinkcreateLink(String target, String linkpath)equivalent to createLink(target).saveTo(linkpath)LinkInfocreateLinkInfo()StringgetCMDArgs()ConsoleDatagetConsoleData()ShellLinkHeadergetHeader()StringgetIconLocation()StringgetLanguage()LinkInfogetLinkInfo()StringgetName()StringgetRelativePath()StringgetWorkingDir()StringresolveTarget()ShellLinksaveTo(String path)ShellLinksetCMDArgs(String s)ShellLinksetIconLocation(String s)ShellLinksetLanguage(String s)ShellLinksetName(String s)ShellLinksetRelativePath(String s)ShellLinksetTarget(String target)Set path of target file of directory.ShellLinksetWorkingDir(String s)
-
Field Details
-
VERSION
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ShellLink
public ShellLink() -
ShellLink
- Throws:
IOExceptionShellLinkException
-
ShellLink
- Throws:
IOExceptionShellLinkException
-
ShellLink
- Throws:
IOExceptionShellLinkException
-
ShellLink
- Throws:
IOExceptionShellLinkException
-
-
Method Details
-
getHeader
-
getLinkInfo
-
createLinkInfo
-
getName
-
setName
-
getRelativePath
-
setRelativePath
-
getWorkingDir
-
setWorkingDir
-
getCMDArgs
-
setCMDArgs
-
getIconLocation
-
setIconLocation
-
getConsoleData
-
getLanguage
-
setLanguage
-
saveTo
- Throws:
IOException
-
resolveTarget
-
setTarget
Set path of target file of directory. Function accepts local paths and network paths. Environment variables are accepted but resolved here and aren't kept in link. -
createLink
-
createLink
equivalent to createLink(target).saveTo(linkpath)- Throws:
IOException
-