Jump to content

Recommended Posts

Posted

The help file says that a "maximum number of 63 parameters can be returned by the array $CmdLine[]". (https://www.autoitscript.com/autoit3/docs/intro/running.htm)

But how many characters can one parameter have at the most? 

Say I'm creating a script where i input two file-paths in one single command line parameter (delimited by some none-filepath character, like "!"). Do I need to worry about the length of that specific $cmdLine[x] input parameter (string) being too long for AutoIt?

 

Posted

As Windows can only handle filepaths up to 255 characters you do not have to worry.

Just make sure you enclose them in quotation marks in case the path contains spaces.

BTW: Why concatenate two paths? Can't you simply use two parameters?

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

There is no limitation that I can think of, though share the same point of view as water.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Thanks for the fast replies, water and guinness.

Water, Yes - I could use two parameters. I'm playing around with some stuff and the example was more a hypothetical than a practical problem. 

But thanks :-)

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
  • Recently Browsing   0 members

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