Results 1 to 26 of 26

Thread: [RESOLVED] Open several files using Command

Threaded View

  1. #5
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060

    Re: Open several files using Command

    Try the attached Previous Instance Command Line Passing Demo. It uses a locked file in lieu of a Mutex object.

    Name:  Screenshot.png
Views: 2682
Size:  5.0 KB

    To run the demo, compile the project and then open the first instance. Afterwards, you can minimize the form and see what happens when you drag and drop any number of files onto the exe's icon.

    If you would like an example that utilizes DDE instead, then see Karl E. Peterson's PrevInst.
    Attached Files Attached Files
    Last edited by Bonnie West; Aug 27th, 2013 at 11:58 AM. Reason: Added usage instructions
    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width