Archive: copying config files


copying config files
Hi guys.I need my installer to copy my Application's config files to (C:\Documents and settings\user name\Application Data...)

The only thing is how can I do that if I dont know what the users name is.

Please send me a peace of code that would do that.


Thanks a million.
Manyaka


### Copy file "C:\config.cfg" to the current user application data directory.
CopyFiles /SILENT "C:\config.cfg" "$APPDATA"

how do I know
How do I know what the current user application data directory is?

Please give me an e.g , is it a var?

Thanx dood
Manyaka


Thanx
Great help man.I tried the last coding that u sent and it worked, dont worry about my previous reply.

Cheers.
Manyaka