A newer version of this documentation is available.

View Latest

resource

Name

netid.exe -resource - update internal resources such as icon images or configuration

Synopsis

netid.exe -resource [load -content <path> -file|path <path>]|[extract -content <path> -file|path <path>]|
    [set -content <path> -id <id> -file|path <path> -compress -protect]|
    [get -content <path> -id <id> -file|path <path> -expand]

Description

The resource command updates the internal resources, such as icon images or configuration.

Options

load

-content <path>

 

-file <path>, -path <path>

Full path to the file. The file and path options are interchangeable.

extract

Extracts content, such as icon images or configuration, from the file specified in the full path in -file.

-content <path>

The folder to where to extract the content.

-file <path>, path <path>

Full path to the file to extract. The file and path options are interchangeable.

set

Add content, such as icon images or configuration, to the file.

-content <path>

Full path to the file to add.

-id <id>

 

-file <path>, path <path>

Full path to the file. The file and path options are interchangeable.

-compress

Compress the data. Optional argument

-protect

Add internal protection of the data. Optional argument

get

-content <path>

 

-id <id>

The id parameter depends on the type of data to be loaded:

  • #1.manifest ⇒ Manifest resource, always stored with id 1.

  • #100 ⇒ Data resource with id 100

  • #100.ico ⇒ ICO image resource, stored with id 100

  • #100.bmp ⇒ BMP image resource, stored with id 100

  • data.html ⇒ HTML file resource that may be loaded as dialog resource (res:///data.html)

  • data.ico ⇒ ICO image resource, stored with name data.ico

  • data.bmp ⇒ BMP image resource, stored with name data.bmp

-file <path>, path <path>

Full path to the file. The file and path options are interchangeable.

-expand

Expand, or decompress, the data. Optional argument

Examples

load

Example 1. load option
$ netid.exe -resource load -content C:\Temp\load\ -file C:\Temp\netid.dll

extract

Example 2. extract option
$ netid.exe -resource extract -content C:\Temp\extract\ -file C:\Temp\netid.dll

set

Example 3. set option
$ netid.exe -resource set -content C:\Temp\data.bin -id <id> -file C:\Temp\netid.dll
Example 4. set option with compression and protection.

The resource set option can also compress and add internal protection of the data.

$ netid.exe -resource set -content C:\Temp\data.bin -id <id> -file C:\Temp\netid.dll -compress -protect

get

Example 5. get option
$ netid.exe -resource get -content C:\Temp\data.bin -id <id> -file C:\Temp\netid.dll
Example 6. get option with decompression.

The resource get option can also expand, or decompress, the data.

$ netid.exe -resource get -content C:\Temp\data.bin -id <id> -file C:\Temp\netid.dll -expand