Jump to content

max string length of a $cmdline parameter


ivan
 Share

Recommended Posts

Is anyone aware of any limitations on the length of a string of a parameter in the cmdline array?

The $cmdline array is limited to 63 elements but I need to pass a whole array containing variable amount of elements from one script to another. I think the best solution for me is to encript the array as a binary string and pass only one parameter in the $cmdline array. This leaves me with the initial question before attempting a trial and error solution...

Help would be much appreciated. Thanks in advance.

IVAN

Link to comment
Share on other sites

I think the only limit would be the Windows shell limit for a single command line (about 4095 characters).

:)

P.S. Search the forum for better methods of inter-process comms, like WM_COPYDATA messages. :)

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

I think the only limit would be the Windows shell limit for a single command line (about 4095 characters).

:)

P.S. Search the forum for better methods of inter-process comms, like WM_COPYDATA messages. :)

Cheers, solved it via ini file after crashing, but thx.

Edited by ivan
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...