Skip to main content

Problem:

Opening Net Express 32-bit Command Prompt or Net Express 64-bit Command Prompt returns the following at the prompt:

The input line is too long.

Resolution:

createnv.bat is the script behind the Net Express command prompt. It creates another batch file (setenv.bat) that will contain all the variable settings required to set up the Net Express environment, calls setenv.bat to set environment variables, and then deletes setenv.bat:
"�%\\cblpromp.exe" >> "%temp%\\setenv.bat"
call "%temp%\\setenv.bat"
del /q "%temp%\\setenv.bat"

As shown above, cblpromp.exe creates setenv.bat in %temp%. This is where the problem arises. If the TEMP environment variable is missing as a user variable, then %temp% will automatically point to C:\\Windows\\Temp, which is the system temp folder. By default, it should point to the user's temp folder, i.e. %USERPROFILE%\\AppData\\Local\\Temp or C:\\Users\\<UserID>\\AppData\\Local\\Temp

In the above case, setenv.bat was created in C:\\Windows\\Temp, but due to security in Windows, createnv.bat was unable to delete setenv.bat. Each time cblpromp.exe is executed, it appends the variable settings into the existing setenv.bat causing the same environment variables to be set over and over and reach the command line limit. Thus, the operating system reports "The input line is too long".

The TEMP environment variable needs to be set as a user variable with the value of %USERPROFILE%\\AppData\\Local\\Temp

Here are the steps to set TEMP as a user variable:

  1. click Start
  2. right-click on Computer
  3. click Advanced system settings
  4. click Environment Variables
  5. click New under the section of "User variables for <UserID>"
  6. enter the following:
    Variable name: TEMP
    Variable value: %USERPROFILE%\\AppData\\Local\\Temp
  7. click OK
  8. click OK
  9. click Apply (if enabled)
  10. click OK