resource
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
andpath
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
andpath
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
andpath
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
andpath
options are interchangeable. - -expand
-
Expand, or decompress, the data. Optional argument
Examples
load
$ netid.exe -resource load -content C:\Temp\load\ -file C:\Temp\netid.dll
extract
$ netid.exe -resource extract -content C:\Temp\extract\ -file C:\Temp\netid.dll
set
$ netid.exe -resource set -content C:\Temp\data.bin -id <id> -file C:\Temp\netid.dll
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
$ netid.exe -resource get -content C:\Temp\data.bin -id <id> -file C:\Temp\netid.dll
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