"Access is denied"

Discussion, questions and support.
Post Reply
Message
Author
Aurelius
Posts: 4
Joined: 01.01.2014, 19:25

"Access is denied"

#1 Post by Aurelius » 09.01.2014, 21:34

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

Timon
Posts: 729
Joined: 13.09.2012, 08:51

Re: "Access is denied"

#2 Post by Timon » 10.01.2014, 06:00

As I see, you use Windows 7 or higher system, so you should do it as Administrator

Aurelius
Posts: 4
Joined: 01.01.2014, 19:25

Re: "Access is denied"

#3 Post by Aurelius » 10.01.2014, 18:50

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

ashbass
Posts: 20
Joined: 12.01.2014, 19:50
Location: United States
Contact:

Re: "Access is denied"

#4 Post by ashbass » 16.01.2014, 01:24

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.

Timon
Posts: 729
Joined: 13.09.2012, 08:51

Re: "Access is denied"

#5 Post by Timon » 16.01.2014, 08:10

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

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests