Owning Palette: CGI VIs
Installed With: Internet Toolkit
Returns path and name information about a CGI VI you are invoking. Use these values when a CGI VI builds an HTML document that contains links back to the VI.

![]() |
env specifies CGI environmental variables. Wire this input to the env output of the CGI Read Request VI. |
![]() |
cgi name contains the name of the CGI VI. |
![]() |
virtual path contains the virtual path through which you invoked the CGI VI. |
![]() |
absolute path contains the absolute file path to the CGI VI. |
If the G Web Server is configured to have the document root directory set to
/c/labview/internet/home
and the CGI VI at location
c:\labview\internet\home\cgi-bin\test\cgi-test.vi
is invoked through the URL
http://server.machine/cgi-bin/test/cgi-test.vi
then the VI returns the following values:
cgi-test.vi
/cgi-bin/test/cgi-test.vi
c:\labview\internet\home\cgi-bin\test\cgi-test.vi