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. Visual Basic
  4. File Association..pls help

File Association..pls help

Scheduled Pinned Locked Moved Visual Basic
helptutorial
5 Posts 3 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.
  • C Offline
    C Offline
    carl_sti
    wrote on last edited by
    #1

    how to get the filename of the file being open and pass it to the associated application..:confused:

    T 1 Reply Last reply
    0
    • C carl_sti

      how to get the filename of the file being open and pass it to the associated application..:confused:

      T Offline
      T Offline
      TwoFaced
      wrote on last edited by
      #2

      Check this link out:http://www.vbcity.com/forums/topic.asp?tid=72258[^]

      C 1 Reply Last reply
      0
      • T TwoFaced

        Check this link out:http://www.vbcity.com/forums/topic.asp?tid=72258[^]

        C Offline
        C Offline
        carl_sti
        wrote on last edited by
        #3

        yeah i have it already.. my problem is how to get the filename of file being opened.. i want that my application know the filename of the file being opened..

        M 1 Reply Last reply
        0
        • C carl_sti

          yeah i have it already.. my problem is how to get the filename of file being opened.. i want that my application know the filename of the file being opened..

          M Offline
          M Offline
          M Hall
          wrote on last edited by
          #4

          This is in the article that he referenced. Click on "&Open". You will see in the Properties window "Name", "Arguments", "Verb". Verb is hidden from the user, but is the key that is stored in the registry. Leave it the same as the name, but without the "&". The default for "Arguments" is "%1", which means to pass the full path and filename to your application. You can add other stuff here as well, if you need to pass flags to your application to do special stuff. All this information is getting passed to your application on the command line, so you'll need to be familiar with the "Environment.CommandLine" object. It looks like the information you need will be passed in the command line that starts your application. So use enviroment.commandline to access it

          C 1 Reply Last reply
          0
          • M M Hall

            This is in the article that he referenced. Click on "&Open". You will see in the Properties window "Name", "Arguments", "Verb". Verb is hidden from the user, but is the key that is stored in the registry. Leave it the same as the name, but without the "&". The default for "Arguments" is "%1", which means to pass the full path and filename to your application. You can add other stuff here as well, if you need to pass flags to your application to do special stuff. All this information is getting passed to your application on the command line, so you'll need to be familiar with the "Environment.CommandLine" object. It looks like the information you need will be passed in the command line that starts your application. So use enviroment.commandline to access it

            C Offline
            C Offline
            carl_sti
            wrote on last edited by
            #5

            tnx a lot :)

            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