FileCreateDir command? Topic is solved

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
Ben the Coder

FileCreateDir command?

Post by Ben the Coder » 18 Aug 2022, 19:15

Hi,
I'm using AHK v2, and the FileCreateDir command seems to not be working.
Has it been discontinued, and is there an alternative? :?:
Thanks,
Ben :)

gregster
Posts: 9002
Joined: 30 Sep 2013, 06:48

Re: FileCreateDir command?  Topic is solved

Post by gregster » 18 Aug 2022, 19:19

When you choose v2 in the header of the FileCreateDir page, you will be directed to https://lexikos.github.io/v2/docs/commands/DirCreate.htm.

This might also help, if you plan to use v2: https://lexikos.github.io/v2/docs/v2-changes.htm

Ben the Coder

Re: FileCreateDir command?

Post by Ben the Coder » 19 Aug 2022, 09:31

I see.
But why change the FileCreateDir to DirCreate in the first place? Just curious.
Ben ;)

gregster
Posts: 9002
Joined: 30 Sep 2013, 06:48

Re: FileCreateDir command?

Post by gregster » 19 Aug 2022, 09:55

If not now, when? ;)
Since backwards compatibility to v1.x versions was finally abandoned, I guess there was a chance to change some design choices that were made a long time ago by another developer than the current one for whatever reason.
At least for me, "DirCreate" makes more sense than "FileCreateDir". Why File... ? (PS: The other "File..." statements have been renamed as well, but other changes are much more fundamental.)

Ben the Coder

Re: FileCreateDir command?

Post by Ben the Coder » 19 Aug 2022, 15:29

Since backwards compatibility to v1.x versions was finally abandoned, I guess there was a chance to change some design choices that were made a long time ago by another developer than the current one for whatever reason.
I see about that.
At least for me, "DirCreate" makes more sense than "FileCreateDir". Why File... ? (PS: The other "File..." statements have been renamed as well, but other changes are much more fundamental.)
Yes, it does. Thanks for telling me about the other changes with the File command, too!
Thank you! :D
Ben

User avatar
RaptorX
Posts: 378
Joined: 06 Dec 2014, 14:27
Contact:

Re: FileCreateDir command?

Post by RaptorX » 20 Aug 2022, 10:02

Ben the Coder wrote:
19 Aug 2022, 09:31
I see.
But why change the FileCreateDir to DirCreate in the first place? Just curious.
Ben ;)
Because you are not working with **files** in this particular instance so it makes more sense to remove that from the name entirely.
I for one welcome the change :)
Projects:
AHK-ToolKit

Ben the Coder

Re: FileCreateDir command?

Post by Ben the Coder » 20 Aug 2022, 11:50

RaptorX wrote:
20 Aug 2022, 10:02
Ben the Coder wrote:
19 Aug 2022, 09:31
I see.
But why change the FileCreateDir to DirCreate in the first place? Just curious.
Ben ;)
Because you are not working with **files** in this particular instance so it makes more sense to remove that from the name entirely.
I for one welcome the change :)
Yes, so do I.
Just a question: in AHK V2, has the URLDownloadToFile command changed to Download?
Thanks!

User avatar
RaptorX
Posts: 378
Joined: 06 Dec 2014, 14:27
Contact:

Re: FileCreateDir command?

Post by RaptorX » 20 Aug 2022, 11:57

That is correct...

I suggest you taking a little time and reading this link: https://lexikos.github.io/v2/docs/v2-changes.htm

Major command name changes are documented there.
Projects:
AHK-ToolKit

Ben the Coder

Re: FileCreateDir command?

Post by Ben the Coder » 20 Aug 2022, 19:42

Ok.
Thanks!
:wave:

lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: FileCreateDir command?

Post by lexikos » 20 Aug 2022, 22:40

Chris Mallett wrote: -> Maybe rename File*Dir to Dir*, for brevity and preciseness. e.g. DirCreate/Copy/GetSize/Move/Remove
Source: AutoHotkey v2

Ben the Coder

Re: FileCreateDir command?

Post by Ben the Coder » 21 Aug 2022, 09:34

I see.
Thanks to all of you for your help. :)

Post Reply

Return to “Ask for Help (v2)”