Skrip Posted December 17, 2005 Share Posted December 17, 2005 FileInstall("C:\IE_test.au3", "@StartupDir") I need IE_test.au3 to move into the startup folder that code above doesn't work how do i fix this? [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
Valuater Posted December 17, 2005 Share Posted December 17, 2005 (edited) like this FileInstall("C:\IE_test.au3", @StartupDir & "\IE_test.au3") i do it like this $Sound_lnk = @TempDir & "\Inst-lnk.wav" FileInstall("C:\Program Files\Autoit3\Examples\My Stuff\Autoit-ITS\Radio\Notify.wav", $Sound_lnk) 8) EDIT: are you sure you want that file in the "start-up" directory??? Edited December 17, 2005 by Valuater Link to comment Share on other sites More sharing options...
Skrip Posted December 17, 2005 Author Share Posted December 17, 2005 IE_test was an example name [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
GodandRock Posted December 17, 2005 Share Posted December 17, 2005 hey btw, not accusing of ne thing, but it looks like ur trying to do sumthing evil so ill give u a couple pointers.....1. .au3 formats dont work on ne computers that dont have auto it installed on them...2. u need to compile the script if u wanna run it on another computer that dont have autoit....3. dont launch it on urself accidentally....4. if u wanna do sumtin bout startup, do it the professional way man...go to regedit and figure out where the startup reg is...learn more about startup....5. u should use file install to install a file into @SystemDir (system32)...then regkey create to start that up automatically......once again, im not accusing u of ne thing, but keep these in mind if ur trying to make a evil thing that u want to startup each time....if u have ne questions on how to use the registry key create way, then ask... [font="Fixedsys"][size="3"][u][font="Franklin Gothic Medium"] [/font][/u][/size][/font] Link to comment Share on other sites More sharing options...
Valuater Posted December 17, 2005 Share Posted December 17, 2005 IE_test was an example nameok... mine was to... whats that meandid the post i made help you???8) Link to comment Share on other sites More sharing options...
Valuater Posted December 17, 2005 Share Posted December 17, 2005 hey btw, not accusing of ne thing, but it looks like ur trying to do sumthing evil so ill give u a couple pointers.....1. .au3 formats dont work on ne computers that dont have auto it installed on them...2. u need to compile the script if u wanna run it on another computer that dont have autoit....3. dont launch it on urself accidentally....4. if u wanna do sumtin bout startup, do it the professional way man...go to regedit and figure out where the startup reg is...learn more about startup....5. u should use file install to install a file into @SystemDir (system32)...then regkey create to start that up automatically......once again, im not accusing u of ne thing, but keep these in mind if ur trying to make a evil thing that u want to startup each time....if u have ne questions on how to use the registry key create way, then ask...what makes you think... "evil" fileInstall is used all the time??8) Link to comment Share on other sites More sharing options...
Skrip Posted December 17, 2005 Author Share Posted December 17, 2005 Okay to tell you the truth (Thanks alot Valuater worked perfectly!) I have no clue how to mess with the registery...I don't want to know because if I do know I could use it against sombody and I don't want to. [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
Valuater Posted December 17, 2005 Share Posted December 17, 2005 Okay to tell you the truth (Thanks alot Valuater worked perfectly!)I have no clue how to mess with the registery...I don't want to know because if I do know I could use it against sombody and I don't want to.so where does this GodandRock think you have "evil" intensions?????8) Link to comment Share on other sites More sharing options...
Skrip Posted December 17, 2005 Author Share Posted December 17, 2005 I have no clue http://www.autoitscript.com/forum/index.ph...sult_type=posts [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
Valuater Posted December 17, 2005 Share Posted December 17, 2005 I have no clue http://www.autoitscript.com/forum/index.ph...sult_type=postswell, he hasn't repliedi checked out your link aboveand also GnR's homepage... it's scary what some people relate to "God"8) Link to comment Share on other sites More sharing options...
GodandRock Posted December 17, 2005 Share Posted December 17, 2005 lol i apologized in advance for being mistaken...i was just saying in case sumtin evil was being planned....lol sorry again... [font="Fixedsys"][size="3"][u][font="Franklin Gothic Medium"] [/font][/u][/size][/font] Link to comment Share on other sites More sharing options...
Skrip Posted December 17, 2005 Author Share Posted December 17, 2005 (edited) Ya, I take no offense to that, but with all the bad programs on this site I see why you said it....If I ever do have anything 'evil' planned then I know what to do now. Edited December 17, 2005 by Firestorm [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
MrSpacely Posted December 18, 2005 Share Posted December 18, 2005 Ofcourse the manual is not super clear. It says "dest The destination path with trailing backslash. This can be a variable. " But If you read the example If $b = True Then FileInstall("C:\test.bmp", "D:\mydir\test.bmp") It shows using the filename. Bit weird that the manual doesn't say that Link to comment Share on other sites More sharing options...
Skrip Posted December 18, 2005 Author Share Posted December 18, 2005 Ya, I couldn't really get it to work through the manual. Thanks for the help everybody. [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
Confuzzled Posted December 18, 2005 Share Posted December 18, 2005 (edited) 5. u should use file install to install a file into @SystemDir (system32) Could I add a little advice - keep the @SystemDir for system files, and keep your own applications in @ProgramFilesDir - these folders are there for a specific reason and you should avoid writing to @SystemDir in case you accidently overwrite a critical system file with a poor choice of file names. Better safe than sorry. (PS: Your avatar looks a bit mastabutory) Edited December 18, 2005 by Confuzzled Link to comment Share on other sites More sharing options...
GodandRock Posted December 21, 2005 Share Posted December 21, 2005 dude u wont overwrite the existing files because "FileInstall" has a parameter in which u can choose to overwrite existing files or not...and the default is set to NOT overwrite...i dont know bout "FileCopy" or ne other file function but fileinstall does have that parameter... [font="Fixedsys"][size="3"][u][font="Franklin Gothic Medium"] [/font][/u][/size][/font] 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