Jump to content
Sign in to follow this  

something that always got me wondering

Recommended Posts

i knew about that function i just forgot it... but still wondering why a folder doesn't have a name ... hmm

A folders name is what ever you call it, but it's a directory, it doesn't need an extension because there is only 1 of that directory.


And if you're trying to distinguish them, then just use

If StringInStr(FileGetAttrib($FileNamePath), 'd') Then MsgBox(64, 'Info', $FileNamePath & ' is a directory')
Edited by SmOke_N

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.

Share this post

Link to post
Share on other sites

Directories have names and can also have extentions.

Try creating drirectory named test.txt

Then try creating text file called test.txt in the same folder you created the directory.

See what happened? :lmao:

The extention is something "invented" by Micro$oft for MSDOS. This operating system uses the extention to determine the type of the file. But if you change the extention, it's still the same file. :ph34r:

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  

  • Create New...