Registry Create - Forum

Forum Navigation
You need to log in to create posts and topics.

Registry Create

Hi guys

 

I try to see if a Folder in Registry exist and if not it must create a Folder. I want to save text files in that Folder.

I tried:

FolderExists  "HKEY_LOCAL_MACHINE\SOFTWARE\MyFolder""[Result1]"
If "[Result1]""=""True"

Else
CreateFolder "HKEY_LOCAL_MACHINE\SOFTWARE\MyFolder
EndIf

but it gives me a error: Unable to create directory.

Where is the problem and is it possible to write files into a Folder within Registry

Thank You

Hi @impactband4u,

I don't understand what you want to achieve.

The Windows Registry stores configuration information for Windows and installed software, but not files.
The information is stored in the form of key-value pairs, and folders are used to organize the information.
Folders in the Windows Registry are not the same that folders in your hard drive.
Use RegistryRead and RegistryWrite commands to read and write to the registry.
Use FolderExists, CreateFolder, RemoveFolder etc. to work with folders in your hard drive.

Exercise caution when modifying the Registry. If there is an error in the Registry, your computer (or your app user’s computer) may become nonfunctional.

Regards.

 

Thank you luishp

I know about the FolderExists, CreateFolder, RemoveFolder but thought i can write files in Registry.

but now i know : )

 

luishp has reacted to this post.
luishp