Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create folder/path if it doesn't exist #68

Closed
ghost opened this issue Aug 23, 2019 · 2 comments
Closed

Create folder/path if it doesn't exist #68

ghost opened this issue Aug 23, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 23, 2019

Error: registry path does not exist

Got this error when I tried to put key value on ..\\Policies\\System, because Policies folder is empty. Is there a way to check if the folder/path existed and if no, create it?

@kessler
Copy link
Owner

kessler commented Sep 12, 2019

for now you'll have to list it before to check. Might implement this in the future

@kessler
Copy link
Owner

kessler commented Sep 2, 2021

@M1cr0M1nd following our discussion the other day I checked and we are not lazily creating new paths in the registry if they are missing. Also, the underlying vbs registry api does not provide a flag or some other way to do this lazily and I don't think it make sense to implement this in our VBS layer of JS layer as default behavior of putValue.

We might consider have a separate function for this, eg: putOrCreateValue or something along these lines, but we should really see if there's a demand for this at all...

Repository owner locked and limited conversation to collaborators Sep 2, 2021
@kessler kessler closed this as completed Sep 2, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

1 participant