Shell Application "Paste" Command

3 visualizzazioni (ultimi 30 giorni)
Afzal
Afzal il 21 Feb 2020
Commentato: Walter Roberson il 22 Feb 2020
I would like to exexcute a paste command through the Shell applicaiton. I'm trying to replicate the VBA command
CreateObject("Shell.Application").Namespace(CVar(DestinationFolder)).self.InvokeVerb "Paste"
I've currently got the following:
objShell = actxserver('Shell.Application');
DestinationFolder = 'C:\';
objFolder = objShell.NameSpace(DestinationFolder);
objFolderItem = objFolder.Self;
But I'm getting the error
Undefined function or variable 'Self'.

Risposte (0)

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by