ENTERg Posted April 28, 2009 Share Posted April 28, 2009 hi to all i want to make a script which if it finds a folder smaller than eg 1gb or 1.32gb or specific amount of bytes then delete the folder . i checked the dirremove and the dirgetsize commands but couldn t do it ... also didn t found it in the foroum can some1 help ? Thx in advance keep on scripting !!! Link to comment Share on other sites More sharing options...
Valuater Posted April 28, 2009 Share Posted April 28, 2009 hi to all i want to make a script which if it finds a folder smaller than eg 1gb or 1.32gb or specific amount of bytes then delete the folder .i checked the dirremove and the dirgetsize commands but couldn t do it ...also didn t found it in the foroum can some1 help ? Thx in advance keep on scripting !!!You know I wrote the simplistic script for you... thenI read your other topics and noted that this could be "dangerous" for a newby like yourself. i checked the dirremove and the dirgetsize commands but couldn t do it ...That is basic stuff to doSorry, I cant help8) Link to comment Share on other sites More sharing options...
LurchMan Posted April 28, 2009 Share Posted April 28, 2009 (edited) $size = DirGetSize($Dir) / 1024 / 1024 / 1024 ;Bytes^KB ^MB ^GB This will return size in GB Edited April 28, 2009 by LurchMan Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end. Link to comment Share on other sites More sharing options...
WideBoyDixon Posted April 28, 2009 Share Posted April 28, 2009 I read your other topics and noted that this could be "dangerous" for a newby like yourself.My $0.02 is that AutoIt is dangerous by its very existence. It makes some people believe they can write programs!WBD [center]Wide by name, Wide by nature and Wide by girth[u]Scripts[/u]{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}[u]UDFs[/u]{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~[/center] Link to comment Share on other sites More sharing options...
LurchMan Posted April 28, 2009 Share Posted April 28, 2009 yeah...thats why i stick with scripts..... Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end. Link to comment Share on other sites More sharing options...
ENTERg Posted April 29, 2009 Author Share Posted April 29, 2009 i finally did what i wanted but with another way not withe size command. i just don t understand why if you know the answer don t help the people to go on. i thought that was the purpose of the forum. thx anyway keep up ! Link to comment Share on other sites More sharing options...
Valuater Posted April 29, 2009 Share Posted April 29, 2009 i finally did what i wanted but with another way not withe size command.i just don t understand why if you know the answer don t help the people to go on.i thought that was the purpose of the forum.thx anyway keep up !You can see by the enormous amount of threads that there are a lot of people helping around here!!The problem is, Many have came here with Malicious intentions, so when we see a "new guy on the block" asking potentially dangerous questions, we hesitate. No one helping here want's Autoit to have a bad reputation. 8) Link to comment Share on other sites More sharing options...
Developers Jos Posted April 29, 2009 Developers Share Posted April 29, 2009 i finally did what i wanted but with another way not withe size command.i just don t understand why if you know the answer don t help the people to go on.i thought that was the purpose of the forum.thx anyway keep up !When you can figure these type of things out for yourself, only then its "more likely" you understand what you are doing.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
trancexx Posted April 29, 2009 Share Posted April 29, 2009 As Kennedy said: And so, my fellow Americans: ask not what your country can do for you - ask what you can do for your country. It's not related? ... no, it's not ♡♡♡ . eMyvnE 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