NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

拖动多个文件/文件夹,获取全部拖动文件的路径

Labview的Path控件可以拖动文件/文件夹到上面,获取拖动文件的路径。那么,如何实现拖动多个文件/文件夹,并获取全部拖动文件/文件夹的路径呢?

0 项奖励
1 条消息(共 4 条)
1,321 次查看

Unfortunately, no, only one file or folder can be selected using a Path control. Logically, since the file path data type can only carry only path, there is no way it can manage an array of paths.

 

Alternatively, you can allow multiple file selection using the File Dialog express VI

santo_13_0-1634650364229.png

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 项奖励
2 条消息(共 4 条)
1,281 次查看

谢谢你的回复,但这的确不是我需要的。File Dialog express VI可以选择多个文件夹,但是不能选择多个文件夹。同时,我也希望不是这种选择,而是可以直接拖拽多个文件/或文件夹,我想用Call Library Function Node调用windows的DragQueryFile()函数来实现,但是我找不到它的消息机制WM_DROPFILES()中的OnDropFiles()函数,所以无法获取DragQueryFile()函数需要的句柄。

0 项奖励
3 条消息(共 4 条)
1,268 次查看

不能用 C++ 的例子,与 LabVIEW 不兼容的。要看 ANSI C 的例子。

要用到一些 advanced Windows program knowledge.  只能全部用 C 做,编成 dll,然后用 CLFN。

不能逐句翻译成 LabVIEW 的。

 

 

George Zou
0 项奖励
4 条消息(共 4 条)
1,208 次查看