Unable to pipe result to a file in DOS

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I tried to do a dir *.* /s >files.txt and I received an access denied
message. Anyone know how to fix this? I am part of the administrator groups
so privilages should not be an issue although whenever I start a new program
a the user account control window pops up and asks my permission to allow the
program to continue.
 
You're running with UAC on, so your administrative accounts are running as
standard users most of the time, and you will get the prompt when you need
to do something with administrative powers.

Try piping the result to a file that's somewhere a standard user would have
write permission. (For example, c:\users\<myuser>\files.txt).
Otherwise, run the cmd prompt as an administrator (right click the shortcut,
"run as administrator").
 
Back
Top