Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Windows Commandline size limit - how to handle?

Help
2014-02-07
2014-02-07
  • The CLI of WindowsXP has a command limit of < 8K (8191 bytes). To extend to the next line, add "&" to that line (within that limit). How can I pass such lines to CLI, "&"seems not to be handled

     
  • cmd1 = lnk' -L'obj' -j'lpk' -l'bld'\C\Lib -v -GA"S:\Source\Projects\vfs7.tmp"="S:\Source\Projects\SimWin.res" -aa -x -w 'bpi' ' / expands to about 2500 /
    cmd2=' 'sobj' ' / expands to about 7000 /
    cmd3 = ' , S:\Run\SimWin.exe , , 'lib' , , Gsn.res S:\Source\Projects\vfs7.tmp' / expands to about 200 /

    ''cmd1' & '
    ''cmd2' & '
    ''cmd3' >> outputfile'

    but this doesn't have the disired result of:

    line 1 &
    > line2 &
    > line 3
    (executing)