RyanOlson Posted May 27, 2008 Posted May 27, 2008 I work for a remote software repair company and we work on ton's of different setups. So one person may have there home directory as c: another d: so I am trying to create a script to move certain files we use as shortcuts to our site to say %homedir% which there lies my problem when i do dircreate("%homedir%\xxxx\" it creates a folder from where it was laucnhed called %homedir% then the sub xxxx. How can I fix this also I would like to create a gui for using our tools does anyone know of a good book or faq's on starting to use the gui creater. Thanks ahead.
Developers Jos Posted May 27, 2008 Developers Posted May 27, 2008 Something like this hould work: DirCreate(EnvGet("homedir") & "\xxxx\") 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.
RyanOlson Posted May 27, 2008 Author Posted May 27, 2008 Very wicked thank you jos that worked one question is there a way to include files that will be extracted and used when compiling an exe for autoit.
SadBunny Posted May 27, 2008 Posted May 27, 2008 Very wicked thank you jos that worked one question is there a way to include files that will be extracted and used when compiling an exe for autoit.FileInstall()By the way, you could also use macro's, like @HomePath and many others. Search the helpfile for 'macros' for a complete list. Very efficient way of coding this kind of thing, at least I believe so. Roses are FF0000, violets are 0000FF... All my base are belong to you.
RyanOlson Posted May 27, 2008 Author Posted May 27, 2008 Thanks that worked and the macros will come in handy but the fileinstall comand does not allow macros in the like I tried fileinstall("C:\my files", after this point is there a command to tell it to install the files to homedir\so in so
SadBunny Posted May 28, 2008 Posted May 28, 2008 Thanks that worked and the macros will come in handy but the fileinstall comand does not allow macros in the like I tried fileinstall("C:\my files", after this point is there a command to tell it to install the files to homedir\so in soRead more about this in the FileInstall() command helpfile... Basically: it requires a fixed location for the source file (meaning, the file on YOUR system at time of compile), but you can use flexible locations for the target (where the files are put when the compiled executable is run).So on your own system you need them in the folder that is hardcoded in your script, but for the machine where you want to actually run the executable, you can use variables, macros etc. in target location. Roses are FF0000, violets are 0000FF... All my base are belong to you.
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