- Thread Author
- #1
I have a little strange problem under Windows 7 x64 using the copy command at the command prompt.
If I enter the following command at an elevated command prompt:
copy somefile c:\
it copies the file somefile to c:\. Now when I create a batch file from this command and run it with admin privileges it says it cannot find the file! Also, a strange thing is that when I run the batch file without administrator privileges it properly says 'access denied', so it can find it then, which is correct because you can't just write something to the C root.
Can someone verify and possibly resolve this?
Note this is all with UAC set to standard.
If I enter the following command at an elevated command prompt:
copy somefile c:\
it copies the file somefile to c:\. Now when I create a batch file from this command and run it with admin privileges it says it cannot find the file! Also, a strange thing is that when I run the batch file without administrator privileges it properly says 'access denied', so it can find it then, which is correct because you can't just write something to the C root.
Can someone verify and possibly resolve this?
Note this is all with UAC set to standard.