Enterprise Administration > Windchill Data Loading > Loading Legacy Data Using the LoadFromFile and LoadFileSet Utilities > Using the LoadFromFile Utility
  
Using the LoadFromFile Utility
The LoadFromFile utility is a user-authenticated process. User authentication can be provided through the command line or through the window displayed by the utility.
* 
Only the site administrator should run the LoadFromFile utility. Most load tags provide a tag that allows the specification of the user ID that should be used to create the object being loaded.
The LoadFromFile syntax is:
windchill wt.load.LoadFromFile -d <data file name>
-u <user name> -p <user password> -CONT_PATH <container path>
* 
On Windows operating systems, if a LoadFromFile argument includes spaces, you must enclose the argument in double quotes (“ ”) and precede the quotes with a backslash (\). For example, where part 4 includes spaces in the CONT_PATH argument:
windchill wt.load.LoadFromFile
-d D:\Dev\LoadfileforTesting\Part.xml
-CONT_PATH \"/wt.inf.container.OrgContainer=TST/wt.pdmlink.PDMLink
Product=part 4\"
The following table lists the LoadFromFile arguments that are available:
Argument
Description
d <data file name>
Specifies the name of the object file that contains the objects to be loaded into the Windchill database. This argument is required.
It is recommended that you provide the full path name of the data file. The file must reside on the Windchill server.
u <user name>
Specifies the name of the user to authenticate the additions being made to the database.
The user argument is optional for the command line; however, the LoadFromFile utility prompts for user authentication using a window.
p <user password>
Specifies the password for the authenticating user.
The password argument is optional for the command line; however, the LoadFromFile utility prompts for user authentication using a window.
CONT_PATH
Specifies the target container for the data when the target container is not Exchange. This argument is optional. By default, the target container is Exchange.
Sample Command Lines
LoadFromFile is executed from the command line to load legacy data into the Windchill database.
It is recommended to supply the CONT_PATH parameter. However, if you specify only the required arguments, then the command is:
windchill wt.load.LoadFromFile -d <data file name>
If you specify all the arguments, then the command is:
windchill wt.load.LoadFromFile
-d <data file name> -u <user name> -p <user password> -CONT_PATH
[/wt.inf.container.OrgContainer=MyOrg/wt.inf.library.WTLibrary=MyLibrary]
More About CONT_PATH
CONT_PATH specifies the container path for the data when the target container is not Exchange. The syntax to specify the container path may look like the following:
-CONT_PATH /wt.inf.container.OrgContainer=MyOrg
-CONT_PATH /wt.inf.container.OrgContainer=MyOrg/wt.pdmlink.PDMLinkProduct=Prod
-CONT_PATH /wt.inf.container.OrgContainer=MyOrg/wt.inf.library.WTLibrary=Lib
* 
When loading into a container, an implied hidden folder called Default exists. To load into a folder other than the default folder, use the following format:
<folder>/Default/Widgets<folder>