How To Install exe using Command Prompt /Command prompt (Cmd. exe) command-line string limitation

Exact Solution :

cmd.exe /k  "D:\\New Folder\\FireflyInstallerUI.exe"



  • In Command Prompt, the total length of the following command line that you use at the command prompt cannot contain more than either 2047 or 8191 characters (as appropriate to your operating system):
    cmd.exe /k ExecutableFile.exe parameter1, parameter2 ... parameterN
  • In a batch file, the total length of the following command line that you use in the batch file cannot contain more than either 2047 or 8191 characters (as appropriate to your operating system):
    cmd.exe /k ExecutableFile.exe parameter1, parameter2 ... parameterN
    This limitation applies to command lines that are contained in batch files when you use Command Prompt to run the batch file.
  • In Command Prompt, the total length of EnvironmentVariable1 after you expand EnvironmentVariable2 and EnvironmentVariable3 cannot contain more than either 2047 or 8191 characters (as appropriate to your operating system):
    c:> set EnvironmentVariable1=EnvironmentVariable2EnvironmentVariable3
  • In a batch file, the total length of the following command line after you expand the environment variables in the command line cannot contain more than either 2047 or 8191 characters (as appropriate to your operating system):
    ExecutableFile.exe parameter1parameter2
  • Even though the Win32 limitation for environment variables is 32,767 characters, Command Prompt ignores any environment variables that are inherited from the parent process and are longer than its own limitations of either 2047 or 8191 characters (as appropriate to the operating system). For more information about the SetEnvironmentVariable function, visit the following Microsoft Web site:

  • Thanks  ,

    http://support.microsoft.com/kb/830473


    Comments