wschildr Posted April 1, 2008 Posted April 1, 2008 Ok, I am trying to copy a file useing FileInstall but need to install into various file names bases on user logon. Here is what I have that does not work...... FileInstall("C:\MimsCounty.ini", "C:\Documents and Settings\" & @UserName "\windows") . What I need to do is to install the file into the documents and settinsg folder to a users network folder and then into the windows folder. Any help would be appreciated.
Developers Jos Posted April 1, 2008 Developers Posted April 1, 2008 Try: FileInstall("C:\MimsCounty.ini", "C:\Documents and Settings\" & @UserName & "\windows\") 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.
Swift Posted April 1, 2008 Posted April 1, 2008 Another tip: when using a string, and including a variable or macro, and continuing the string, you will need the & sign, on both sides. Some examples: $String[1] = "I Am A String " & @Username $String[2] = "I Am A Second String "&@CRLF&" The first string is "&@CRLF& $String1 $String[3] = "String " & $String1 & "Second String... "& $String2 & " STRINGS!" For $i=1 To 3 MsgBox(0, "", $String[$i] Next
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