Jump to content

Recommended Posts

Posted

well every file on WinXP has a file name such as .exe .bat .txt .* but whats the one for folders

so if you wanted to tell autoit to use _FileCreate to create you a folder how could this be done

[s]Autoit[/s]
Posted

edit -

Bah... I new there was a proper way...

DirCreate ( "path" )

(Wrong way removed. :lmao: )

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

[s]Autoit[/s]
  • Moderators
Posted (edited)

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.

Edit:

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.

Posted

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:

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
×
×
  • Create New...