Skip to content

Instantly share code, notes, and snippets.

@tablacus
Created September 5, 2017 12:49
Show Gist options
  • Save tablacus/bef571b3d0a5da2436e23964a6d632e1 to your computer and use it in GitHub Desktop.
Save tablacus/bef571b3d0a5da2436e23964a6d632e1 to your computer and use it in GitHub Desktop.
Move selected items to the parent folder
var FV = GetFolderView(Ctrl, pt);
var Selected = FV.SelectedItems();
if (Selected) {
var oDest = sha.NameSpace(fso.GetParentFolderName(api.GetDisplayNameOf(FV, SHGDN_FORPARSING)));
if (oDest) {
oDest.MoveHere(Selected, FOF_ALLOWUNDO);
}
}
@tablacus
Copy link
Author

tablacus commented Sep 5, 2017

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment