testbytest Posted September 14, 2006 Share Posted September 14, 2006 HI how can i use %USERPROFILE% to Filecopy function my sample is: FileMove ( "%ALLUSERSPROFILE%\Desktop\*.lnk", "%USERPROFILE%\Application Data\Microsoft\Internet Explorer\Quick Launch\" ,1 ) but it cant work i find Filecopy also not work help me thanks Link to comment Share on other sites More sharing options...
erebus Posted September 14, 2006 Share Posted September 14, 2006 You have to parse the system wide's variable data to an AU3's variable first before executing commands - not on the fly. When using data between quotes ("%SOMETHING%") it is parsed as a string, not as a variable. If you can't extract the data you want with any other way to parse it to an AU3's variable (i.e. by reading the registry), use @macros or StdoutRead(). Link to comment Share on other sites More sharing options...
MHz Posted September 15, 2006 Share Posted September 15, 2006 Welcome, This is how you can do it. FileMove(EnvGet("ALLUSERSPROFILE") & "\Desktop\*.lnk", @AppDataDir & "\Microsoft\Internet Explorer\Quick Launch\", 1) 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