Jump to content

Recommended Posts

Posted

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

Posted

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

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