I have a small forms application that I want to convert to a console app. What I need it to do is when the user right clicks on a file (any file) I want the context menu to say eg: 'RunmyApp' . A small form would open up and allow the user to input something then the file is resaved.
In a nutshell, here is what my current forms program does.
1: Reads a file into a memory stream, reads it into another stream backwards (so from end)
2: Adds a line of text at the front of the stream and saves it back to disk.
Of course it does the same in reverse.
What I need is knowledge on how to make it console only so it only runs when selected from context menu.
Eg: User right clicks on 'MyFile.jpg'
On the context menu it has an option 'Reverse File'
Once clicked, it should then open a form and execute my code and resave it (my code already does that)
The saved file is saved with and added extention so the context menu needs to also recognise if a file has been altered with my code and resaved, so it will then say, 'UnReverse File'
I would then need to have the program run on startup I guess ?
Any help would be appreciated.