Recovering the value of a function (enx, charlib, string encryption)

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Xandr0s
Posts: 6
Joined: 03 May 2018 05:15

Recovering the value of a function (enx, charlib, string encryption)

#1 Post by Xandr0s » 03 May 2018 05:25

Good morning, everyone,

Looking to hide a password, I came across this post: viewtopic.php?t=2613#p12015

I would like to reuse this function and pass the decrypted password to a command (net use).

I could use the "outpup" variable, but I'm afraid it might be a problem at some point because of the "for" that follows.

So I tried to modify "echo(%%A)" to put the result in a variable, but I couldn't do it.

Could you help me?

Have a nice day

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Recovering the value of a function (enx, charlib, string encryption)

#2 Post by aGerman » 03 May 2018 09:32

Not sure what your problem actually is. The function already supports assigning the value to a variable. All you have to do is passing the variable name as second argument.

Steffen

Xandr0s
Posts: 6
Joined: 03 May 2018 05:15

Re: Recovering the value of a function (enx, charlib, string encryption)

#3 Post by Xandr0s » 05 May 2018 13:52

Indeed, I found the solution, I was not calling the function correctly.

I had to do: call enx input output

Thank you for your help.

Have a nice day

Post Reply