Usually, I can find a way around these sort of things, but I can't come up with this one. It's related to UAC. It seems that with UAC enabled (as all my users are), one can not copy directly from a network share to the all users startup folder. Using Windows Explorer to drag & drop or a batch file exhibit the same behavior. It seems that when UAC elevates privileges to copy to the all users folder, network connectivity changes also.
When using a mapped network drive letter, the error is that the mapped drive letter is no longer available. When using a network UAC path, the error simply says that you don't have permission to copy directly, but it can be done by copying to the local drive first. I have even using 1 batch file to copy to from the network to a local location (OK), then use 'runas' to run start another batch file as administrator, which copies the local file to the all users folder. This combination yields a permission denied error. Is there any way to do this directly (preferebly from a batch file) without disabling UAC?
----
Steve
Small Business Support in the Connecticut River Valley of VT and NH
faq219-2884
MS Knowledgebase version: How to Ask
When using a mapped network drive letter, the error is that the mapped drive letter is no longer available. When using a network UAC path, the error simply says that you don't have permission to copy directly, but it can be done by copying to the local drive first. I have even using 1 batch file to copy to from the network to a local location (OK), then use 'runas' to run start another batch file as administrator, which copies the local file to the all users folder. This combination yields a permission denied error. Is there any way to do this directly (preferebly from a batch file) without disabling UAC?
----
Steve
Small Business Support in the Connecticut River Valley of VT and NH
faq219-2884
MS Knowledgebase version: How to Ask