Platforms to show: All Mac Windows Linux Cross-Platform

WinOpenFolderAndSelectItemsMBS(folder as folderitem, files() as folderItem, ShowOnDesktop as Boolean = false, EditName as Boolean = false) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method Windows MBS Win Plugin 14.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Opens a Windows Explorer window with specified items in a particular folder selected.
Example
dim file as FolderItem = SpecialFolder.Desktop.Child("test.rtf")
dim folder as FolderItem = file.Parent

dim r as Integer = WinOpenFolderAndSelectItemsMBS(folder, array(file))

if r = 0 then
MsgBox "OK"
else
MsgBox "Error: "+str(r)
end if

Please pass a folder to open. Pass the files you want to select in that folder.
Returns Windows error code. Zero for success.

Under Windows XP the flag parameters are ignored. They work in Windows Vista and newer:

Editname: Pass true to select an item and put its name in edit mode. This flag can only be used when a single item is being selected. For multiple item selections, it is ignored.

ShowOnDesktop: Pass true to select the item or items on the desktop rather than in a Windows Explorer window. Note that if the desktop is obscured behind open windows, it will not be made visible.

For Mac, please use NSWorkspaceMBS.selectfile function.

Blog Entries

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...