?
Solved

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

Posted on 2003-03-03
1
Medium Priority
?
149 Views
Last Modified: 2010-05-18
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
Comment
Question by:RadicalCadaver
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
SimesA earned 300 total points
ID: 8062848
These are passed on the command line, so the CmdLine, ParamCount and ParamStr functions can be used to access them.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question