Sign in to follow this  
Followers 0
Vicks

something that always got me wondering

6 posts in this topic

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]

Share this post


Link to post
Share on other sites



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]

Share this post


Link to post
Share on other sites

#4 ·  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

[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

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

See what happened?

No i didnt, what was supposed to happen? A "same file exists" error? It worked for me.

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