Command Line Reference

Command Line Reference

addVirtualFile

addVirtualFile

Add a virtual file to a Web User profile or Web User Group using the addVirtualFile command. The following table lists the available options for adding a virtual file.
To add a virtual file to a Web User profile or Web User Group, log in as a User with the Web User Manager role.
Example 1:
The following command will add a virtual file using a relative path with permissions to a Web User:
infamftcmd.bat -server http://10.1.4.1:8000/informaticamft -user Administrator -password Administrator 
-command addVirtualFile -userName kharris -virtualPath "/Inbound/Invoices/Qtr1.csv" 
-physicalPath "${homeDirectory}/Inbound/Invoices/Qtr1.csv" -permissions download overwrite
Example 2:
The following command will add a virtual file using a relative path with permissions to a Web User Group:
infamftcmd.bat -server http://10.1.4.1:8000/informaticamft -user Administrator -password Administrator 
-command addVirtualFile -groupName HTTPSUsers -virtualPath "/Inbound/Invoices/Qtr1.csv" 
-physicalPath "${homeDirectory}/Inbound/Invoices/Qtr1.csv" -permissions download overwrite
Parameter Name
Description
Required?
Default Value
userName
The Web User account name.
Yes*
None
groupName
The Web User group name.
Yes*
None
virtualPath
The relative path of the file as it appears to Web Users.
Yes
None
physicalPath
The physical path to the file that the virtual path refers to. The physical path can contain the Web User's ${homeDirectory} variable.
Yes
None
permissions
The permissions allowed for the file, separated by spaces. If this parameter is supplied without any values, the permissions are reset using no permissions.
Valid Values:
  • download
  • overwrite
  • append
  • checksum
  • share
No
No Permissions
*You must specify either a userName or groupName parameter with this command.

0 COMMENTS

We’d like to hear from you!