Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Handle "send to" sent files from windows

Handle "send to" sent files from windows

Scheduled Pinned Locked Moved C#
csharpvisual-studioalgorithmshelp
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gubber
    wrote on last edited by
    #1

    Hi, Does anyone know how I can allow my application to "receive" files either through "Open With.." or "Send To.." from windows explorer. I've been searching but I don't know quite what phrases to search for. Can I also make sure that only one instance of my application is open at a time, and any new files get sent to the already opened instance. I'm coding in C# .NET 2.0 in VS 2005. Thanks for your help.

    R 1 Reply Last reply
    0
    • G gubber

      Hi, Does anyone know how I can allow my application to "receive" files either through "Open With.." or "Send To.." from windows explorer. I've been searching but I don't know quite what phrases to search for. Can I also make sure that only one instance of my application is open at a time, and any new files get sent to the already opened instance. I'm coding in C# .NET 2.0 in VS 2005. Thanks for your help.

      R Offline
      R Offline
      Robert Rohde
      wrote on last edited by
      #2

      Hi, 1. There is a SendTo folder under every user account. Just drop a link to your app there and it will show up in the Send To menu. 2. You can configure this under Explorer/Extras/Options/DataType. Visual Studio setup projects are able to automatically make the correct entries for your application. 3. Search this site for single instance[^]

      G 1 Reply Last reply
      0
      • R Robert Rohde

        Hi, 1. There is a SendTo folder under every user account. Just drop a link to your app there and it will show up in the Send To menu. 2. You can configure this under Explorer/Extras/Options/DataType. Visual Studio setup projects are able to automatically make the correct entries for your application. 3. Search this site for single instance[^]

        G Offline
        G Offline
        gubber
        wrote on last edited by
        #3

        Ok sorry, I wasn't very clear. I understand how to make file associations and to put things in the menus. But I don't know how to write the hooks in my code to allow me to process the file I receive.

        R 1 Reply Last reply
        0
        • G gubber

          Ok sorry, I wasn't very clear. I understand how to make file associations and to put things in the menus. But I don't know how to write the hooks in my code to allow me to process the file I receive.

          R Offline
          R Offline
          Robert Rohde
          wrote on last edited by
          #4

          In general you just have to evauluate the parameters your Main function has. Have a look at the link I have provided. It not only shows how to do this but also how to pass those arguments to an already running instance.

          G 1 Reply Last reply
          0
          • R Robert Rohde

            In general you just have to evauluate the parameters your Main function has. Have a look at the link I have provided. It not only shows how to do this but also how to pass those arguments to an already running instance.

            G Offline
            G Offline
            gubber
            wrote on last edited by
            #5

            Gotcha... I'm being a bit slow! It is friday though. Thanks for your help

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups