i know what the batch script does ... i just wasn't sure what you are trying to do
so the answer is yes , try this
forget about up/down parameters , i always have issues with those on windows
lets say you have a config named myconfig.ovpn , create a batch file myconfig_up.bat in the same location where your config is with the following content

this will generate myconfig_down.bat , to delete the routes when you disconnect the VPN
be sure to replace myconfig_ with the name of your config , and also run openvpn as administrator even version 2.4

TiTex wrote:i know what the batch script does ... i just wasn't sure what you are trying to do
so the answer is yes , try this
forget about up/down parameters , i always have issues with those on windows
lets say you have a config named myconfig.ovpn , create a batch file myconfig_up.bat in the same location where your config is with the following content

this will generate myconfig_down.bat , to delete the routes when you disconnect the VPN
be sure to replace myconfig_ with the name of your config , and also run openvpn as administrator even version 2.4

Your script is correct and it look same my scirpt but i don't want delete, I want specific website connect through default internet connection not vpn. In your batch script it's mean when vpn disconnect it will delete route right ?