function unmount() -- DefineDosDevice("0x00000002", strSelectedLetter .. ":", strSelectedPath) -- DefineDosDevice("0x00000002", strSelectedLetter .. ":", "\0") end -- strSelectedPath = Input.GetText("input_path"); strSelectedPath = _SourceFolder .. "\\www"; -- strSelectedLetter = ComboBox.GetItemData("ComboBoxDrives", ComboBox.GetSelected("ComboBoxDrives")); -- lpDeviceName strSelectedLetter = "y"; if Folder.DoesExist(strSelectedPath) and (strSelectedLetter ~= nil) and (strSelectedLetter ~= "") and (strSelectedLetter ~= -1) then DefineDosDevice("0", strSelectedLetter .. ":", strSelectedPath) if Folder.DoesExist(strSelectedLetter .. ":\\") then -- Button.SetEnabled(this, false); -- Button.SetEnabled("ButtonUnmount", true); -- Button.SetState("ButtonUnmount", BTN_UP); -- Button.SetEnabled("ButtonSelectpath", false); -- ComboBox.SetEnabled("ComboBoxDrives", false); function unmount() -- DefineDosDevice("0x00000002", strSelectedLetter .. ":", strSelectedPath) DefineDosDevice("0x00000002", strSelectedLetter .. ":", "\0") end end end