Results 1 to 2 of 2

Thread: program start

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Newbury, UK
    Posts
    1,878
    When you drag and drop a "data" file to your .EXE in Windows Explorer: the .EXE will run, and the name of the data file will be available to the program in the Command() variable.
    While testing, you can set a parameter within the Project menu, Properties, Make tab which simulates the input into Command().

    If you associate your .EXE with a certain data file extension, and then double click on one of those data files: the same thing will apply - the Command() variable will have the filename in it.

    Be aware: The parameter sent from Windows Explorer can be slightly different on different operating systems (short names vs long names), and it can have multiple files within it.

  2. #2
    AIS_DK
    Guest
    My first guess would be the command function.

    The Commmand function returns the commandline arguments, your program was started with, so try that.

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