tags:

views:

54

answers:

0

Hi, I have a C# (2.0) console application that is supposed to work by allowing the user to drag and drop a file onto it's executable, and if is run with no arguments it spits out some help text.

Now it all works fine on my computer, however when running on my colleagues, when he drags and drops files on it to process it flashes up the console and immediately quits, having done nothing. However, if he runs it from the command line with the file as an argument, it works fine. And if he simply double clicks the exe, it works fine - it outputs the help text, and waits for a keypress then exits.

Any ideas why it doesn't work when he drags and drops files on it? I changed the code so the first thing it does is outputs some debug info and wait for a key, but not even that code gets called when he uses it.

Cheers