Sign in to follow this  
Followers 0
thefunkie1

Dircreate Not Working Using Beta Run/compile

11 posts in this topic

Maybe some one can help me out on this one. I just upgraded to the latest beta, 121, to see if it would get rid of the _ArraySearch error that kept popping up on compiles. That error is now gone/fixed but now I'm noticing that DirCreate no longer works when using the Beta Run/Compile. If I do a normal run/compile, it creates the directory just fine but if I use the beta run/compile if fails to create the directory and returns a 0 (failure). I'm using the exact same code just using the beta and non-beta run commands. Has anyone else noticed this and is there a fix for it? Thanks.

Share this post


Link to post
Share on other sites



Do you have the error that it is giving you? Do you have some code you are using that we can test or look at?


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

$status = DirCreate("C:\Program Files\ImageUpdater")

MsgBox(64, "Test", $status)

it is a simple DirCreate command. Works when I click Go in Tools menu but fails when I click Beta Run.

it works fine in beta 118.

Edited by thefunkie1

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I tested those two lines of code on 117 from within SciTE:

Tools > Go (for the production run)

[Result: directory created]

Manually removed the directory

Tools > Beta Run (117)

[Result: directory created]

Manually removed the directory

Installed 121 and confirmed the problem... it would not create the directory

[be warned that if the directory already exists from the "production test", 121 will report "1"]

Edit: installed 120 - works as expected... (the directory is created)

Edit2: there has been some work in that area as of late:

http://www.autoitscript.com/forum/index.ph...showtopic=24899

Edit3: tested on XP Pro SP2

Edit4: and yet DirCreate("C:\Test 1\Folder1\Folder 2") works with 121

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Thanks for the validation of the problem. I've reverted back to 120 seeing as it works so thanks for all the help every one. I just wanted to make sure.

Share this post


Link to post
Share on other sites

Thanks for the validation of the problem. I've reverted back to 120 seeing as it works so thanks for all the help every one. I just wanted to make sure.

See here for the resolution of bug report on this:

http://www.autoitscript.com/forum/index.ph...ndpost&p=179169


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

122 solved it for me - thanks jpm for the quick fix.


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

how did it get messed up in 121 if it worked in 120?

Share this post


Link to post
Share on other sites

#11 ·  Posted

122 solved it for me - thanks jpm for the quick fix.

You welcome, some delay from the Worker day vacation ...

Share this post


Link to post
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
Sign in to follow this  
Followers 0