I've made/copied a file/folder context menu item that copies selected files/folders from source to destination.
I'm pretty sure I copied it from these forums:
@keydown:none
Copy
@keydown:shift
Copy AS
But I'd like to make a specialized context-menu command that copies selected files from source to destination, but ignores any files that end in .xlsx (for example).
I think I need a script for this, but I am not sure how to use a script to get a "hook into" the destination.
I've found this script (code shown below) which shows me how to get the selected source files, but I'm not sure how to get the destination info.
Any thoughts?
TY!
Function OnClick(ByRef clickData)
If clickData.func.sourcetab.selected_files.count = 0 Then
Msgbox "Nothing is selected",16, "NO FILE SELECTED"
End If
ClipString = ""
For Each SelectedItem In ClickData.Func.sourcetab.Selected
dato = SelectedItem.create
ClipString = SelectedItem.name_stem
exto = SelectedItem.ext
'Discover the creation date of the file
pluggo =selectedItem.modify
pluggo = Cstr(pluggo)
pluggo = Left(pluggo,10)
pluggo =Right(pluggo,4)
msgbox clipstring + " " + exto + " " + pluggo
Next
End Function