Page 1 of 1

Passing Environmental variables... windows

Posted: Sat Aug 17, 2019 6:38 pm
by SpongeB0b
Hi everyone,

I'm trying to use the -client-connect to run a .cmd script

I would like to pass to the script any Environmental variables as for example common_name. but what I tried didn't succed so far

Code: Select all

client-connect script.cmd common_name
Server don't start.

Code: Select all

client-connect 'script.cmd common_name'
I have obviously common_name as value in my script :/ instead of the value of the variable named common_name

Code: Select all

client-connect 'script.cmd' common_name
Server don't start.

Code: Select all

client-connect 'script.cmd'
give me: C:\Users\me\AppData\Local\Temp\\openvpn_cc_7fffe16260c7061t.tmp :?


Any ideas ?