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. Find out who woke me up in VB6

Find out who woke me up in VB6

Scheduled Pinned Locked Moved Visual Basic
question
3 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.
  • U Offline
    U Offline
    User 756327
    wrote on last edited by
    #1

    I want to be able to start my app (vb 6) by "throwing" a file on it (via sendto). When the app starts i want to catch the name of the file that triggered the application to start... Is this possible in vb 6...? Or do I have to have my application running when "throwing" the file at it? (I don't need to open or manipulate the file in any way: I just want to be able to catch the filename)

    D 1 Reply Last reply
    0
    • U User 756327

      I want to be able to start my app (vb 6) by "throwing" a file on it (via sendto). When the app starts i want to catch the name of the file that triggered the application to start... Is this possible in vb 6...? Or do I have to have my application running when "throwing" the file at it? (I don't need to open or manipulate the file in any way: I just want to be able to catch the filename)

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Simple, when that happens, your app gets launched with the full path and name of the file as it's command line parameter:

      MyVBApp.exe C:\Documents and Settings\MyId\Desktop\TestFile.txt

      All you have to do then is get the command line arguments from Command(). RageInTheMachine9532

      U 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Simple, when that happens, your app gets launched with the full path and name of the file as it's command line parameter:

        MyVBApp.exe C:\Documents and Settings\MyId\Desktop\TestFile.txt

        All you have to do then is get the command line arguments from Command(). RageInTheMachine9532

        U Offline
        U Offline
        User 756327
        wrote on last edited by
        #3

        RageInTheMachine, that was a peace of cake! Thanks 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