|
Previous Top Next |
Prototype: | (),Long |
Returns | Returns the length of a command line that a program can accept |
This method attempts to calculate the total length of a command line acceptable based on the operating system. This is not failsafe and should be used only as a guideline. Additional information about the maximum size of the command line can be found on Microsoft's Support website at http://support.microsoft.com/kb/830473 and on MSDN website at http://msdn2.microsoft.com/en-us/library/ms724834.aspx
This method can be used to determine if a constructed command line is too long for the operating system to pass it to another program. If it is too long and you are passing filenames to another program, consider using ShortPath() on the filename before placing it in the command line.
Example:
L Long
ITW ITWindowsClass
Code
L = ITW.GetCommandLineLen()
Message('Maximum length of the command line is ' & L & ' characters.')