***Make ANY Folder The Root Of Windows Explorer***
My Code calls The Windows Explorer with the switch "e,/root," and makes any folder you want the root of the windows explorer
AI
AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Source Code
'it's a module
'i went a little DIM crazy with the
'variables but it's still good code...enjoy
Public Sub eRoot(rootpath As String, fldrs As Boolean)
'fldrs is the folders switch, monkey with it and see what you get
On Error Resume Next
Dim EX, ARGU, path, X
If fldrs = True Then
EX = "explorer.exe"
ARGU = " /e,/root, "
path = rootpath$
X = Shell(EX & ARGU & path, 1)
ElseIf fldrs = False Then
EX = "explorer.exe"
ARGU = " n/e,/,root, "
path = rootpath$
X = Shell(EX & ARGU & path, 1)
End If
End Sub
<script language="javascript">
function jsTrim(TXT)
{
return TXT.replace(/(^\s+)|(\s+$)/g,"");
}
function jsLTrim(TXT)
{
return TXT.replace(/(^\s+)/g,"");
}
function jsRTrim(TXT)
{
return TXT.replace(/(\s+$)/g,"");
}
</script>
Original Comments (3)
Recovered from Wayback Machine