Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

Drag a text file onto an exe


I am making a application that will convert data from a text file to other formats.  I want it to run by the user dragging and dropping the text file onto the exe.

Basically, once the file is dropped I need the path to its location in order to open and read it..  

In vb6 what method of the form will be activated by this? do I even need to do this within a form...could it just be a module?

Thanks in advance!
1 Solution
'create a new project

Option Explicit

Private Sub Form_Load()
    MsgBox Command$
End Sub

'compile to exe and drag and drop the file into
' you should see the file name from msgbox
sarahjackelAuthor Commented:
Absolutely terrific!  Thanks for the super fast answer!

Featured Post

Technology Partners: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now