Jump to content

Recommended Posts

Posted

I have a case when Run() function returns @error =1 and @extended=267

I just check:
https://www.autoitscript.com/autoit3/files/beta/autoit/docs/functions/Run.htm
https://www.autoitscript.com/autoit3/files/beta/autoit/docs/functions/RunAs.htm
https://www.autoitscript.com/autoit3/files/beta/autoit/docs/functions/RunAsWait.htm
https://www.autoitscript.com/autoit3/files/beta/autoit/docs/functions/RunWait.htm

And I can't find any information about @extended values for these functions.

Does anyone know what these values in @extended mean for these functions?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

IIRC @extended is set to the WIndows error code. This codes can be found here: https://docs.microsoft.com/en-us/windows/desktop/Debug/system-error-codes--0-499-

267 means: ERROR_DIRECTORY, 267 (0x10B), The directory name is invalid.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

Bingo 💥💯

Thanks @water

I think this link which you have pointed me, could be added as a remark to HelpFile for all Run** functions as an explanation for the values returned in @extended.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Microsoft links are quite volatile. So at least a description what gets returned in @extended is needed.

My UDFs and Tutorials:

  Reveal hidden contents

 

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...