• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 150
  • Last Modified:

How do I accept files and folders dropped on a program's icon or shortcut to program

This has been driving me nuts for the past day or so now. I'm looking for a way to handle files when they are dragged and dropped onto my application's icon or a shortcut to my application. I already know how to handle files that are dropped onto a form in my application while it is running. I would like to know how to accept files and folders dropped on my application's icon while it is not running.

For example, when I drop files on my application's icon before it is running, it opens the application, but that is all. I would like to be able to get these file paths so I can process them and have my program open them- just like if you drag a text file onto a shortcut to Notepad, or Notepad.exe icon and Notepad opens up with the file that was dragged onto it already opened.

Any help would be greatly appreciated. Thanks!
0
RadicalCadaver
Asked:
RadicalCadaver
1 Solution
 
SimesACommented:
These are passed on the command line, so the CmdLine, ParamCount and ParamStr functions can be used to access them.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now