>>>I am getting an error, but only when I log as a regular user (and if I try to copy into ProgramData\MyApp\MySubDir). I do have read-write rights in the MyApp\ directory as this is what I also tested.
>>>
>>>I'm getting the error in the application - if I try to do this from the command window I am also getting a prompt.
>>
>>Is it possible that in the program when you specify the name of the folder you have spaces in the folder name?
>
>No, the lcFile does not have spaces in the name, although I don't see why it's relevant here as I use (lcFile), so even if I do have spaces, the name expression should take care of that.
Sorry that I could not help.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham