2.1. testnt.bas

[<<<] [>>>]

This test some functions of the module NT.

Example testnt.bas :

import nt.bas

print nt::RegRead("HKLM\\SOFTWARE\\SCRIPTBASIC\\CONFIG"),"\n" print nt::RegRead("HKLM\\SOFTWARE\\SCRIPTBASIC\\DWORD"),"\n" print nt::RegRead("HKLM\\SOFTWARE\\SCRIPTBASIC\\BIN"),"\n"

' nt::RegDel "HKLM\\SOFTWARE\\SCRIPTBASIC\\BIN" nt::RegWrite "HKLM\\SOFTWARE\\SCRIPTBASIC\\BIN1","kakukk" nt::RegWrite "HKLM\\SOFTWARE\\SCRIPTBASIC\\DWORD1",614

nt::RegWrite "HKLM\\SOFTWARE\\SCRIPTBASIC\\" , "default value"

' nt::RegWrite "HKLM\\SOFTWARE\\SCRIPTBASIC\\SUB\\DWORD1",614

Result executing testnt.bas :

Possible error messages sent to stderr:

The result printed should be the full path to the configuration file of the actual installation and undef twice.

After executing this script check the Windows NT registry to see that the sample program has written some information into it.


[<<<] [>>>]