Page 1 of 1

"Access is denied"

Posted: 09.01.2014, 20:34
by Aurelius
I am trying to obtain a directory in an output file (a1.prn) as follows:

c:\Program Files (x86)>dir *. > a1.prn

which should provide me with a list of file directories...what I receive is

"Access is denied"

When I just run the first part without outputting it to a new file:

c:\Program Files (x86)>dir *.

the result is ok.

How can I create a new output file for the listing without the "Access is denied"

Thank you for your assistance
Aurel

Re: "Access is denied"

Posted: 10.01.2014, 05:00
by Timon
As I see, you use Windows 7 or higher system, so you should do it as Administrator

Re: "Access is denied"

Posted: 10.01.2014, 17:50
by Aurelius
I am using windows 7 on a stand-alone PC.

I have no idea what the purpose of doing anything as Administrator?

Could you please walk me through any steps that I must take?

Thank you for your efforts.

Aurel

Re: "Access is denied"

Posted: 16.01.2014, 00:24
by ashbass
I've not tested this, but I believe that

a basic user isn't allowed to write to the Program Files folder.

So maybe c:\Program Files (x86)>dir *. > c:\mywriteablefolder\a1.prn will work.

Re: "Access is denied"

Posted: 16.01.2014, 07:10
by Timon
I am using windows 7 on a stand-alone PC.

I have no idea what the purpose of doing anything as Administrator?
Because starting from Windows 7 if you want to have full access to "Program Files" and "Program Files (x86)" you need to log on as Administrator