• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • 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!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

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