Guest_imported
New member
- Jan 1, 1970
- 0
how can i add routes with vbscript (.vbs) file.
the file should run
route add 12.12.12.12 255.255.254.0 IP
where IP is a variable which is set before
itried:
WSHShell.run "route add 12.12.12.12 255.255.254.0" & IP
but it didnt work=(
anyway, is there a very simple way to get the local ip to a variable? my code is VERY long and builds on the registry, i think there mus be a very short object, too, right?
the file should run
route add 12.12.12.12 255.255.254.0 IP
where IP is a variable which is set before
itried:
WSHShell.run "route add 12.12.12.12 255.255.254.0" & IP
but it didnt work=(
anyway, is there a very simple way to get the local ip to a variable? my code is VERY long and builds on the registry, i think there mus be a very short object, too, right?