How to customize callback after drag and drop a folder into command window?

2 ビュー (過去 30 日間)
Xingwang Yong
Xingwang Yong 2021 年 1 月 22 日
コメント済み: Xingwang Yong 2021 年 1 月 26 日
For files, it is easy to customize a callback after drag and drop file into command window, as shown here.
However, for folders, drag and drop a folder into command window leads to the call of cd().For example, if I drag and drop the folder E:\Downloads\tmp into command windows, then
cd('E:\Downloads\tmp')
is executed.
Can I change cd() to my own function?
  1 件のコメント
Xingwang Yong
Xingwang Yong 2021 年 1 月 26 日
It seems that I can not do this. From the example of openext, drag-and-drop and double click share the same callback function. If I overload the callback of drag-and-drop, then I can not double click to enter a folder in Current Folder Window.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by