route-up on windows
Posted: Mon Mar 15, 2021 9:10 am
Hi,
I apologize because I read many articles about the same problem but can find an answer.
I want to mount dynamically some shared folders from a NAS.
The list has to be dynamic.
So I wrote a script on the server-side which generates a script that contains all the net use.
net use x: \\X.X.X.X\folder1
net use y:\\X.X.X.Y\folder2
.....
On the client side, I added :
route-up script <script_to_mount>
and the script just contains the start
start \\X.X.X.X\<script_to_mount> which will perform the net use commands.
I see that the VPN launch the script by route-up , but nothing happens, it's just long as if there was a time-out.
And if you execute manually the script from a dos shell, everything is fine.
Do you have any idea ?
Thanks.
I apologize because I read many articles about the same problem but can find an answer.
I want to mount dynamically some shared folders from a NAS.
The list has to be dynamic.
So I wrote a script on the server-side which generates a script that contains all the net use.
net use x: \\X.X.X.X\folder1
net use y:\\X.X.X.Y\folder2
.....
On the client side, I added :
route-up script <script_to_mount>
and the script just contains the start
start \\X.X.X.X\<script_to_mount> which will perform the net use commands.
I see that the VPN launch the script by route-up , but nothing happens, it's just long as if there was a time-out.
And if you execute manually the script from a dos shell, everything is fine.
Do you have any idea ?
Thanks.