Shell Application "Paste" Command
2 ビュー (過去 30 日間)
古いコメントを表示
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'.
1 件のコメント
Walter Roberson
2020 年 2 月 22 日
I suggest you use the .NET facilities such as are introduced at https://www.mathworks.com/matlabcentral/answers/358774-run-win32-executable-and-get-status-of-completion#answer_284287
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!