Jump to content
Sign in to follow this  
Guest pcoccimi

@userprofiledir Macro

Recommended Posts

Guest pcoccimi

I am trying to write code that will copy an ini file from one directory to the logged in user's profile directory.

Here is what I have so far:

FileCopy ("C:\Program Files\Citrix\ICA Client\pn.ini", "C:\Documents and Settings\'@UserName'\Application Data\ICAClient\pn.ini", 1)

Unfortunaltey, the file does not get copied.

Am I referencing the @UserProfileDir incorrectly?

Share this post


Link to post
Share on other sites
Valik

You should be able to just use the @AppDataDir macro.

FileCopy ("C:\Program Files\Citrix\ICA Client\pn.ini", @AppDataDir & "\ICAClient\pn.ini", 1)

Share this post


Link to post
Share on other sites
Guest pcoccimi

Success!! :whistle:

Thanks a lot for the quick reply.

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  

×