Jump to content

Recommended Posts

Posted

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

Posted

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
  • Developers
Posted

nvm the code is @ScriptName

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.

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.
  :)

Posted

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.

Jos

got it working the code was
$location = @ScriptDir & "\" &  @scriptname
FileCopy( $location, "C:\location" & "\" & @scriptname)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...