PDA

View Full Version : command line parameter length



NewsArchive
09-07-2007, 04:27 AM
Hi Friedrich,

I can not find in the docs any mentioning of how long the command line
parameters can be. I.e. the variable that you read it into. Any
limitations that we need to know about?

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
09-07-2007, 04:31 AM
Hi Arnór,

Well, a very stupid "programmer" defined a CSTRING(260) command line string.
Expect him to be fired <g>

We'll pump this up to 2,047 bytes in the upcoming build.

Friedrich

NewsArchive
09-08-2007, 02:39 AM
Hi Arnór,

I checked, rechecked and checked it again and this specific CSTRING(260)
limitation should not cause any problem. It only defines the project
filename. So there is no need to pump it up (and the programmer still has
his job).

All other command line switched are processed via COMMAND() and have again
260 bytes each. That means, the command line length is only limited by the
OS (e.g. 8191 characters on XP). All parameters can have up to 260 bytes.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.5
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
09-08-2007, 02:39 AM
Hi Friedrich,

>filename. So there is no need to pump it up (and the programmer still has
>his job).

Good:)

>OS (e.g. 8191 characters on XP). All parameters can have up to 260 bytes.

Cool! I don't expect ever to reach that, just wanted to make sure:)

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
09-08-2007, 02:41 AM
ciao Friedrich....you will be missed....


:-)

Kind regards

Ben

NewsArchive
09-08-2007, 02:41 AM
<ROFL>

Friedrich