Re: Permanet route znika po restarcie

Autor: Paweł Goleń <p_golen_at_ks.onet.pl>
Data: Mon 14 Jun 2004 - 21:03:07 MET DST
Message-ID: <caksq4$d5j$1@atlantis.news.tpi.pl>
Content-Type: text/plain; charset=ISO-8859-2; format=flowed

UnExpected Error wrote:

> Proponuje dowolny kompilator + odpowiednia komenda ShellExecute +
> wywolanie cmd /croute ad.... Z aplikacji robimy service i po sprawie.

NT też ma jakiś scheduler, można go do tego wykorzystać.

A do pytającego:

You can use the "P" switch for the Route command which allows a user to
make persistent entries in the routing table by adding a static route
directly to the registry. The use of the "P" switch is covered in the
online command reference but is not in the printed TCP/IP reference.

Sample syntax from a command line:

route -p add 131.107.3.0 mask 255.255.255.0 131.107.3.1

The command forces the following registry entry to be read when the
computer is restarted.

    HKEY_LOCAL_MACHINE
     \SYSTEM
       \CurrentControlSet
         \Services
           \Tcpip
             \Parameters
               \PersistentRoutes

    value: 131.107.3.0 255.255.255.0 131.107.3.1 Reg_SZ:

A może by tak sprawdzić, czy się da wpisać do tego PersistentRoutes
odpowiednie wartości łapciami i czy znikają z rejestru po restarcie.

-- 
Paweł Goleń
mailto:p_golen@ks.onet.pl
UGVybCBTVUNLUw==
Received on Mon Jun 14 21:05:21 2004

To archiwum zostało wygenerowane przez hypermail 2.1.8 : Mon 14 Jun 2004 - 21:42:02 MET DST