VSKeyExtractor icon indicating copy to clipboard operation
VSKeyExtractor copied to clipboard

Save the key.

Open mariahgalin opened this issue 3 years ago • 5 comments

In ExtractLicense have been added a line. The purpose is save the key in a text file. The user will be able find it in the desktop.

mariahgalin avatar Jan 20 '22 17:01 mariahgalin

Hey, thanks.

Sorry for the delay in my response. I've made the modifications you mention: the user will be able to choose the directory, as well as the file will overwrite each license entry.

I'll wait if any update is needed.

Regards.

mariahgalin avatar Feb 03 '22 19:02 mariahgalin

Hi again, and apologies for my late response as well. I appreciate the effort you put into this feature, and I'd like to merge it into the main branch, but I would like to have the tool working more as a traditional command line tool. That means no GUI or dialogs, and no side-effects as a default.

What I would prefer is to have the functionality as a command-line switch, for instance "-o [outputfile]". The project should not need to have have any dependencies on System.Windows.Forms or other UI libraries.

terjew avatar Feb 18 '22 08:02 terjew

Hello!

Ok, I got it, I really understood the requirement. So, this is my last idea: what about the user write the path in command line (use it like an argument) and finally create the file. Is that what you mean since the beginning? I'm sorry, I was cannot catch it before.

I'll modify and commit the changes if you want to.

mariahgalin avatar Feb 23 '22 15:02 mariahgalin

Exactly, that is the idea. Writing the path in the command line is the same as passing a command line argument to the program. Normally a command line application supports multiple different arguments, so a symbol and a letter is used to signal which one to use, for instance -h for help and -o for output. I think using -o [path] could work well here.

If no arguments are given, it should just print the keys to standard out as it does today. If the output argument is given it instead writes the result to a file at the given location.

terjew avatar Feb 23 '22 21:02 terjew

I did that. I'll wait for your comments.

mariahgalin avatar Mar 02 '22 23:03 mariahgalin

My 2 cents. While I appreciate the idea of writing to a file, can this not be accomplished currently from the command window: vskeyextractor.exe > mylicense.txt

Adding the System.CommandLine implementation code seems to complicate what is currently a simple program. This tool seems quite one-off in nature.

ripvlan avatar Jan 18 '24 20:01 ripvlan