Share via


glimport

Use the glimport command to import global lists from an XML file to a team project on Team Foundation Server. If you try to import a global list that already exists in the specified team project, a warning prompt asks if you want to overwrite the existing global list. If a global list does not already exist, a new one will be created.

The glimport command-line utility is located in <drive >\Program Files\Visual Studio8\Common7\IDE on Team Explorer client computer.

glimport /f filename /t tfs [/e encodingname]

Parameters

Parameter Description

/f filename

The global lists XML definition file to be imported.

Note

If you are running Windows Vista, you might not have access rights to certain folders. If you try to export the global list to a location where you do not have access rights, the registry virtualization technology automatically redirects the exported file and saves it to the virtual store. For more information, see https://go.microsoft.com/fwlink/?LinkId=92325 and https://go.microsoft.com/fwlink/?LinkId=92323. To avoid this redirection, you can export the file to a location where you have access rights.

/t tfs

The computer name of the Team Foundation server from which the global lists will be imported, or a fully specified URL for a Team Foundation server.

/e encodingname

The name of a .NET Framework 2.0 encoding format. The specified encoding will be used to import the global lists XML. By default, if this argument is not specified, glimport uses UTF-8 encoding.

/?

Displays the glimport context help.

Examples

The following example reads the file named mygloballists.xml and imports it to the Team Foundation server named AdventureWorksServer. The example imports the global lists using the default UTF-8 encoding.

>glimport /f mygloballists.xml /t AdventureWorksServer

The following example shows how to use a URL instead of a Team Foundation server name. The example imports the global lists using the default UTF-8 encoding and the default 8080 port configuration.

>glimport /f mygloballists.xml /t https://TFS:8080

The following example imports the global lists using Unicode (UTF-7) encoding.

>glimport /f mygloballists.xml /t AdventureWorksServer /e utf-7

See Also

Tasks

How to: Use a Global List

Reference

glexport
witimport
witexport
witfields