theguy0000 Posted October 20, 2005 Share Posted October 20, 2005 (edited) Include("C:\includetestfile.au3") Func Include($s_path) Const $workingDir = @WorkingDir FileChangeDir(@ScriptDir) FileCopy($s_path, "includefile0.au3") #include "includefile0.au3" FileDelete("includefile0.au3") FileChangeDir($workingDir) EndFuncbefore anyone mentions it, yes C:\includetestfile.au3 does exist loledit: it says it can open the file, but in the title it said it cant find it. Edited October 20, 2005 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
Valik Posted October 21, 2005 Share Posted October 21, 2005 Include directives are processed before user code is executed so whatever you are trying to do is never going to work. Link to comment Share on other sites More sharing options...
Skruge Posted October 21, 2005 Share Posted October 21, 2005 Include("C:\includetestfile.au3") Func Include($s_path) Const $workingDir = @WorkingDir FileChangeDir(@ScriptDir) FileCopy($s_path, "includefile0.au3") #include "includefile0.au3" FileDelete("includefile0.au3") FileChangeDir($workingDir) EndFuncbefore anyone mentions it, yes C:\includetestfile.au3 does exist loledit: it says it can open the file, but in the title it said it cant find it.C:\includetestfile.au3 exists, but includefile0.au3 does not. "#include" is a preprocessor directive, meaning it is evaluated at compile time. [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
theguy0000 Posted October 21, 2005 Author Share Posted October 21, 2005 oh well that sux... The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
Skruge Posted October 21, 2005 Share Posted October 21, 2005 oh well that sux...Try doing that in any other language... [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/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