I've got a process engine written in .Net. the user writes a data file and
saves it as file type ".xyz". I have a file assiciation set up in the
database that when a .xyz file is invoked (double click or called in cmd
prompt) it passed to my process engine executable as a cmd line parm.
so the process engine gets one argument, which is the path to the .xyz file.
this is standard stuff.
what i'd like to do is call the .xyz file via the command prompt and pass in
several input parms. like so:
myfile.xyz thing1 thing2 thing3
when this gets executed, the process engine should get an arg array (in the
Main function) that has 4 elements. the first one is the path, and the last
three are the arguments.
But, the process engine only gets the path. thing 1-3 are lost.
is there anyway i can get these items in the arg list for the Main function?
the only way i can think is to get rid of the file assiciation and you have
to call the engine exe with the path of the data file as the first arg, and
all other arguments later. I'd really rather not do this though.
thanks