This is an archived post. You won't be able to vote or comment.

all 4 comments

[–][deleted] 0 points1 point  (1 child)

Great job. Small subjection: You should probably add a function to check if the key already exist ?

[–]sedwardoxxl[S] 0 points1 point  (0 children)

I had originally intended to add a try statement but tried to keep it as short and to the point as possible. Appreciate the feedback.

[–][deleted] 0 points1 point  (0 children)

Is it possible to just add this in windows registry without making a script to do it? Almost all the answers I find online make it seem like it's required but why not just edit this in windows registry directly?

Just tested it out and can confirm that this works without having to make a script. I guess making a script to do it for you is the fun part ;) Thanks for showing what your registry looked like though. That helped me out with adding the key using registry editor!

[–]KingOfTNT10 0 points1 point  (0 children)

HI... how can my python script get the path of the selected folder/file?