DaProgrammer Posted September 1, 2007 Share Posted September 1, 2007 (edited) ;=============================================================================== ; ; Function Name: _CreateTempDir() ; Description: Creates a temp folder. ; ; Requirement(s): None. ; Return Value(s): $TempDir - Full Path to the newly created Temp Directory ; ; Author(s): KJ ; ;=============================================================================== Func _CreateTempDir() Local $string , $i For $i= 1 To 10 $string &= Chr(Random(97, 122, 1)) Next DirRemove(@TempDir & "\" & $string & "\",1) DirCreate(@TempDir & "\" & $string & "\") Return @TempDir & "\" & $string & "\" EndFuncoÝ÷ Ù«¢+Ù±½° ½¹ÍÐÀÌØíQµÁ¥Èô} ÉÑQµÁ¥È ¤()¥±¥¹Íѱ° ÅÕ½ÐíèÀäÈí½Õµ¹Ñ̹MÑÑ¥¹ÌÀäÈí-(ÀäÈí5ä½Õµ¹ÑÌÀäÈíMÉ¥ÁÑÌÀäÈìĹ©ÁÅÕ½Ðì°ÀÌØíQµÁ¥È°Ä¤(¸¸¸(¸¸¸(¸¸¸)¥ÉIµ½Ù ÀÌØíѵÁ¥È°Ä¤ Edited September 1, 2007 by DaProgrammer Link to comment Share on other sites More sharing options...
CoderDunn Posted September 1, 2007 Share Posted September 1, 2007 (edited) Your function will not work ... you cannot use variables for the parameters of FileInstall(). Have you tested it? It may run as a script but it will not work compiled, which takes away the whole point of FileInstall() ... Edited September 1, 2007 by Hallman Link to comment Share on other sites More sharing options...
WolfWorld Posted September 1, 2007 Share Posted September 1, 2007 (edited) Right IT Will NOt WOrk At All File Install Can't USe $... OR Even @... Edited September 1, 2007 by athiwatc Main project - Eat Spaghetti - Obfuscate and Optimize your script. The most advance add-on.Website more of GadGets! Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 1, 2007 Moderators Share Posted September 1, 2007 In fairness... he probably never compiled and ran it... it just does a filecopy then... On the other hand, before releasing something, maybe you should rtm on the functions you are using, and test it in each of the stages (releasing things blindly no matter how small and obscure the script could cause more harm than good if you don't understand everything that actually goes on). 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...
Alek Posted September 1, 2007 Share Posted September 1, 2007 it whould be awsome if it workd [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
DaProgrammer Posted September 1, 2007 Author Share Posted September 1, 2007 Correct u all are my bad, it worked as script and i didn't compile so heres a new version. look at post 1. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 1, 2007 Moderators Share Posted September 1, 2007 Correct u all are my bad, it worked as script and i didn't compile so heres a new version. look at post 1.http://www.autoitscript.com/forum/index.ph...c=34805&hl= 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...
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