Programming a "Send to" app

  • Thread starter Thread starter Bob Altman
  • Start date Start date
B

Bob Altman

If I put a shortcut to an app in the Send To folder, then I can select one
or more files in Windows Explorer, right-click on the files, select Send
to -> MyApp, and my application will run with the selected file paths
supplied as a command line argument. The problem with this is that the
command line has a limited length. I can only select 15 or so files to send
to my app without truncating the command line.

I've noticed that many of the "built in" items in the Send To folder accept
an (apparently) unlimited number of selected files. What is the mechanism
that they use to get the selected file list, and can I write a .Net app that
does the same thing?

TIA - Bob
 
Hi Bob,

Like Gabriele said, those are Shell Extensions that you can find an example
here:

http://www.codeproject.com/shell/ShellExtGuide6.asp

Please let me know if you need more information on this topic.

Sincerely,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top