Vicks Posted October 6, 2006 Share Posted October 6, 2006 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] Link to comment Share on other sites More sharing options...
xcal Posted October 6, 2006 Share Posted October 6, 2006 (edited) edit - Bah... I new there was a proper way... DirCreate ( "path" ) (Wrong way removed. ) Edited October 6, 2006 by xcal How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
Vicks Posted October 6, 2006 Author Share Posted October 6, 2006 edit - Bah... I new there was a proper way... DirCreate ( "path" ) (Wrong way removed. ) i knew about that function i just forgot it... but still wondering why a folder doesn't have a name ... hmm [s]Autoit[/s] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 6, 2006 Moderators Share Posted October 6, 2006 (edited) i knew about that function i just forgot it... but still wondering why a folder doesn't have a name ... hmmA 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 October 6, 2006 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. Link to comment Share on other sites More sharing options...
dv8 Posted October 6, 2006 Share Posted October 6, 2006 Directories have names and can also have extentions.Try creating drirectory named test.txtThen try creating text file called test.txt in the same folder you created the directory.See what happened? 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. Free Remote Desktop Software For Windows Link to comment Share on other sites More sharing options...
amfony Posted October 6, 2006 Share Posted October 6, 2006 See what happened?No i didnt, what was supposed to happen? A "same file exists" error? It worked for me. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now