I'm working on a project which includes rabbit. The issue is that when installing the project, the application takes care of copying the .erlang.cookie from C:\Windows\system32\config\systemprofile\ to C:\Users\pc and when my program does it, the hash does not match and I can't create users by command line, but when I copy it manually it does. Has anyone else experienced something similar? Thank you so much.
The sentence that use the program to copy the cookie:
copy C:\Windows\system32\config\systemprofile\.erlang.cookie %UserProfile%\.erlang.cookie
I have tried creating a .bat file and having my program execute it, or having my program execute the command directly using the WinExec and ShellExecute statements, nothing has worked.