/ Published in: Revolution
Determines whether the OS has been set up to ignore UNC paths when in the shell. Normally, the OS will return a header in the result of any command while the current working directory is on a UNC path unless a flag is set in the Registry.
Expand |
Embed | Plain Text
function stsIsShellCheckingForUNC -- returns whether the registry has its DisableUNCCheck turned on or not if the platform is not "Win32" then return "STSError: stsIsShellCheckingForUNC can only be used on Windows." else put queryRegistry("HKEY_CURRENT_USER\Software\Microsoft\Command Processor\DisableUNCCheck") into tResult if the result is "can't find key" then return false else if tResult <> "" then get binaryDecode("H*",tResult,tVal) if tVal = "01000000" then return true else return false else return "STSError: Querying for DisableUNCCheck returned:" && tResult & cr & (the result) end if end if end if end stsIsShellCheckingForUNC
You need to login to post a comment.
