在IE中获取所选文件的路径
问题描述:
大家好
玩得开心
我想知道如何获取用户双击该文件的路径和名称.
我的意思是我想在Windows的资源管理器中双击该文件以在自己的应用程序中加载文件.
非常感谢
hi all
have a good time
i want to know how can i get path and name of a file that user is double clicking on that.
i mean i want to load a file in myself application with do double click on that with explorer in windows.
thanks a lot
答
您正在谈论文件关联,这意味着基于文件扩展名的程序将用于打开文件.
本文:将文件扩展名与Shell OPEN命令和应用程序相关联 [ ^ ]应该会让您入门.
You are talking about file association, meaning that based on the file extension a program is used to open it.
This article: Associate File Extension with Shell OPEN command and Application[^] should get you started.