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
"Access is denied"
Re: "Access is denied"
As I see, you use Windows 7 or higher system, so you should do it as Administrator
Re: "Access is denied"
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
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"
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.
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"
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 AdministratorI am using windows 7 on a stand-alone PC.
I have no idea what the purpose of doing anything as Administrator?
Who is online
Users browsing this forum: Ahrefs [Bot] and 5 guests