Sign in to follow this  
Followers 0
testbytest

ablot Filemove function question

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

Welcome,

This is how you can do it.

FileMove(EnvGet("ALLUSERSPROFILE") & "\Desktop\*.lnk", @AppDataDir & "\Microsoft\Internet Explorer\Quick Launch\", 1)

:)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0