2words4uready Posted July 13, 2008 Share Posted July 13, 2008 is there some code so that the program can determine its location because my program will get downloaded to various places on a computer and it moves its self to a folder so that it wil work Link to comment Share on other sites More sharing options...
Developers Jos Posted July 13, 2008 Developers Share Posted July 13, 2008 @ScriptDir ? 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...
2words4uready Posted July 13, 2008 Author Share Posted July 13, 2008 @ScriptDir ?so would this code work $location = @ScriptDir $copy = $location & "\myfile.exe" FileCopy( $copy, "C:\mylocation") Link to comment Share on other sites More sharing options...
Valuater Posted July 13, 2008 Share Posted July 13, 2008 so would this code work $location = @ScriptDir $copy = $location & "\myfile.exe" FileCopy( $copy, "C:\mylocation") did you try it? 8) Link to comment Share on other sites More sharing options...
2words4uready Posted July 13, 2008 Author Share Posted July 13, 2008 so would this code work $location = @ScriptDir $copy = $location & "\myfile.exe" FileCopy( $copy, "C:\mylocation")lets say the name of my file got changed is there code that could also return the name of the file Link to comment Share on other sites More sharing options...
2words4uready Posted July 13, 2008 Author Share Posted July 13, 2008 lets say the name of my file got changed is there code that could also return the name of the filenvm the code is @ScriptName Link to comment Share on other sites More sharing options...
2words4uready Posted July 13, 2008 Author Share Posted July 13, 2008 did you try it?8)it prints out a file called my location any help? Link to comment Share on other sites More sharing options...
Developers Jos Posted July 13, 2008 Developers Share Posted July 13, 2008 nvm the code is @ScriptNameTry reading the helpfile and just try things. That is really the best way to learn.Then when you really cannot figure it out you can post here in the support forum.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...
2words4uready Posted July 13, 2008 Author Share Posted July 13, 2008 Try reading the helpfile and just try things. That is really the best way to learn. Then when you really cannot figure it out you can post here in the support forum. Josgot it working the code was $location = @ScriptDir & "\" & @scriptname FileCopy( $location, "C:\location" & "\" & @scriptname) 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