/win32icon:filename
A .ico file can be created with the Resource Compiler. The Resource Compiler is invoked when you compile a Visual C++ program; a .ico file is created from the .rc file. The /win32icon and the /win32resource options are mutually exclusive.
See /linkresource (to reference) or /resource (to attach) a NGWS runtime resource file. See /win32resource to import a .res file.
Compile in.vb
and attach a .ico file rf.ico
to produce in.exe
:
vbc /win32icon:rf.ico in.vb