Reputation: 390
In Windows if I have a program association set to invoke my program to open/edit a data file with a specific extension, how will my program - once invoked - know the path and filename of the data file? Preferably solutions using batch, C++, or C. -Tom
Upvotes: 0
Views: 79
Reputation: 106086
Look at the command line arguments (i.e. %1
, %2
... for batch, argv[1]
... for C++, C) - they should hold the path and name of the .gb file (or if there's no path, at least a name relative to the current working directory).
Upvotes: 1