Guest pcoccimi Posted March 19, 2004 Share Posted March 19, 2004 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? Link to comment Share on other sites More sharing options...
Valik Posted March 19, 2004 Share Posted March 19, 2004 You should be able to just use the @AppDataDir macro. FileCopy ("C:\Program Files\Citrix\ICA Client\pn.ini", @AppDataDir & "\ICAClient\pn.ini", 1) Link to comment Share on other sites More sharing options...
Guest pcoccimi Posted March 19, 2004 Share Posted March 19, 2004 Success!! Thanks a lot for the quick reply. 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