Explore Categories

 

 PDF

Command Line Parameters

TallyPrime Developer Command Line Parameters

The command line parameters accepted by TallyPrime Developer are explained in this topic.

/FILE

This parameter will open TallyPrime Developer with the specified .tdl or .txt file. The path of filename is optional, if the specified file is in the TallyPrime Developer folder.

Syntax

/FILE:<Path/filename>

Example

“C:\TallyPrimeDeveloper\TallyPrimeDeveloper.exe” “/FILE:Browse URL.txt”

This command line will start TallyPrime Developer with Browse URL.txt.

/PROJECT

This parameter will open TallyPrime Developer with the specified TDL project.

Syntax

/PROJECT:<Path/project name>

Example

“C:\TallyPrimeDeveloper\TallyPrimeDeveloper.exe” “/PROJECT:C:Demo TDLsDemo TDLs.tpj”

This command line will start TallyPrime Developer with Demo TDLs project.

/new

This parameter will open the projects/files in a new instance of TallyPrime Developer.

Syntax

/new “/PROJECT: Path/Project Name” or “/PROJECT: Path/Project Name” /new

Example

“C:\TallyPrimeDeveloper\TallyPrimeDeveloper.exe” “/PROJECT:C:Demo TDLsDemo TDLs.tpj”/new

     OR

“C:\TallyPrimeDeveloper\TallyPrimeDeveloper.exe”/new “/PROJECT:C:Demo TDLsDemo TDLs.tpj”.

This command line will open the project Demo TDLs in a new instance of TallyPrime Developer.

Tally Command Line Parameters

While executing Tally, now the following command line parameters can also be given:

/NOINITDL

This parameter will start Tally without loading any TDL specified in the Tally.ini file.

Syntax

/NOINITDL

/TDL

This parameter will start Tally with the specified TDL file loaded and can be specified multiple times. The path can be optional if the TDL file is in the Tally folder.

Syntax

/TDL : <pathfilename>

Where,

< path/filename > is the name of the TDL file, along with the path and the file extension.

/NOINILOAD

This parameter will start TallyPrime without loading any Company specified in the Tally.ini file.

Syntax

/NOINILOAD

/LOAD

It starts TallyPrime, with the specified company loaded, and can be specified multiple times.

Syntax

/LOAD : <Company Number>

/VARIABLE

This parameter allows to specify inline system variables of the specified data type and can be specified multiple times.

Syntax

/VARIABLE : <Variable Name> : <Data Type>

Where,

<Variable Name> is the name of the inline variable. It must be unique.

<Data Type> is any of the primary data types.

/SETVAR

This parameter allows specifying the value of the system variable or inline variable.

Syntax

/SETVAR : <Variable Name> : <Value>

Where,

<Variable Name> is the name of system variable or inline variable.

<Value> has to be any of the primary data types.

/NOGUI

This parameter hides the GUI (Graphical User Interface) of Tally. It performs the specified ACTION without showing the Tally interface based on a non-GUI or GUI action. It starts Tally without showing the Tally window, performs the action and exits tally for non-GUI actions like executing a batch of job. If the action is a GUI action which invokes a report, menu or a message box, then the Tally window will be shown until the user quits.

/ACTION

This parameter starts the Tally application with the specified action and it quits the Tally application when the user exits.

Syntax

/ACTION : <Action Name> [:<Action Parameter>]

Where,

<Action Name> is the name of any of the Global actions.

<Action Parameter> is optional. It has to be specified based on the action.

/PREACTION

This parameter starts TallyPrime, loads the company and executes the specified action before displaying the main Menu of TallyPrime.

Syntax

/PREACTION : <Action Name> [:<Action Parameter>]

Where,

<Action Name> is the name of any of the Global actions.

<Action Parameter> is optional. It has to be specified based on the action.

/POSTACTION

This parameter starts Tally, loads the company and executes the specified action when the user quits TallyPrime.

Syntax

/POSTACTION : <Action Name> [:<Action Parameter>]

Where,

<Action Name> is the name of any of the Global actions.

<Action Parameter> is optional. It has to be specified based on the action.

Only one of the action parameters can be specified at a time. The actions specified with /PREACTION and /POSTACTION are not executed each time the Tally application is restarted, due to the change in configuration settings. The action specified with / PREACTION is executed when Tally starts for the First time. The action specified with /POSTACTION is executed during the Last exit from Tally application.

Example

Considering that “C:\TallyPrime” is the folder where Tally.exe is available. The corresponding TDL file “BackUP.txt” for functions is available in the sample folder.

/NOINITDL & /TDL

“C:\TallyPrime\Tally.exe” /NOINITDL /LOAD:00009 “/TDL:C:\TallyPrime\TDL\SecurityTDL.txt” /TDL:MasterTDL.txt

This command expression ignores all the TDLs specified in Tally.ini file while loading Tally. It starts the TallyPrime application and loads the TDLs ‘SecurityTDL.txt’ and ‘MasterTDL.txt’.

/NOINILOAD with /LOAD

“C:\TallyPrime\Tally.exe” /NOINILOAD /LOAD:00009

This command expression ignores all the companies specified in Tally.ini file while loading Tally. It starts TallyPrime application and loads the company identified by 00009.

/VARIABLE

“C:\TallyPrime\Tally.exe” /LOAD:00009 /VARIABLE:MyLogicalVar:Logical

This command expression starts the Tally application, and with a logical variable MyLogicalVar.

/SETVAR and /ACTION

“C:\TallyPrime\Tally.exe” /SETVAR:ExplodeFlag:Yes /LOAD:00009 /ACTION:DISPLAY:TrialBalance

This command expression sets the value of the variable ExplodeFlag to YES and directly displays the Trial Balance report.

/PREACTION

“C:\TallyPrime\Tally.exe”/LOAD:00009 /PREACTION:CALL:BackupBeforeEntry

This command expression starts Tally application, loads the company identified by 00009 and calls the function “ BackUpBeforeEntry before displaying the main menu.

/POSTACTION

“C:\TallyPrime\Tally.exe” /LOAD:00009 /POSTACTION:CALL:BackupOnExit

This command expression starts Tally application, loads the company 00009, and calls the function BackupOnExit, when the user quits Tally.

/NOGUI

“C:\TallyPrime\Tally.exe” /NOGUI /LOAD:00009 /ACTION:CALL:BackupSchedule

This command expression starts the Tally application, and executes the function BackupSchedule, without displaying the Tally window.

Optional Default TDL Loading

Many Third-Party Applications use Tally’s rapid application development environment to render various complex reports using Tally Definition Language (TDL). TallyPrime acts as a front end application for various external databases to retrieve and manipulate information, as and when required. Tally, being a comprehensive business application, loads all the TDLs required as per the functional aspects of the Application. In cases where the third party applications require using Tally purely as a development platform, loading of complete application TDLs may prove to be expensive in terms of startup time.

This release onwards, the application TDLs are segregated as:

  • Base TDL Files – This contains the commonly required templates like styles, variables, buttons, and son on, which can be used by any report which is rendered.
  • Default TDL Files – This contains the TDLs which are specifically meant for functional requirements of the TallyPrime application.

This has enabled us to launch Tally using the minimal Base TDL files avoiding the overhead of loading the Default TDL files. This can be achieved by using the command line parameter /NODEF.

/NODEF

Syntax

<Tally Application> /NODEF

Example:

D:\TallyPrime\Tally.Exe/NODEF/NOINITDL/TDL:”D:\PartyCustomReports.TDL”

In this case, the TallyPrime application would start only with Base TDLs, without loading the default TDL Files, which means that Tally Application would start rapidly. None of the INI TDLs will be loaded due to the parameter/NOINITDL. Only the TDL file passed with the parameter/TDL, D:\PartyCustomReports.TDL will be loaded.

In line with the above enhancement, the product Tally.Developer 9 Release 3.0 and above will also support the command line parameter /NODEF. In case the application needs to be started with only the Base TDLs, the option /NODEF will be used.

 

Post a Comment

Is this information useful?
YesNo
Helpful?