DOS ouptput to a text file

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

Guest

When I try to run a command in DOS and output the results to a text file, I
get an "Access Denied" message. Anyway around this without crippling the
security model?
 
What command are you running, what are you trying to write to, and are you
doing this from a cmd prompt (there is no dos, only a command prompt that is
part of the shell)?

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP

Windows help - www.rickrogers.org
 
Was trying simple things (from command prompt in shell) dir...tried some
more, and will output to some folders I think, but not others. E.g., will
output to c:users\"account" but not dir c:>c:\test.txt
 
Hi,

Not surprised, as the way Vista's security model works everything is
generally contained in the user profile. You'd need to alter permissions for
the user's account on the root of the drive.

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP

Windows help - www.rickrogers.org
 
Was trying simple things (from command prompt in shell) dir...tried some
more, and will output to some folders I think, but not others. E.g., will
output to c:users\"account" but not dir c:>c:\test.txt
Using the root is always a bad idea <g>. (remember when 64 entries
was king?)

I created "\temp \" and gave permission to everyone (Users)

Steve
 
Right click on the Run icon and choose Run as Administrator. That will
elevate the commands you issue in the command line.
 
Lost me there Colin... what Run icon?

Lang

Colin Barnhorst said:
Right click on the Run icon and choose Run as Administrator. That will
elevate the commands you issue in the command line.
 
Hi,

You can add the run box to the start menu from the Start Menu and Taskbar
properties under customize. Once added, you can right click it to run with
the elevated privileges that Colin describes. Just running cmd from the
search box will not give you the option of running as admin. As I mentioned,
the solution there is to alter privileges on the drive root. Part of Vista's
security model is for all users to keep within their own user environment so
as not to affect other users and to contain any malware that may infest an
individual user. Hence the limitations you are running into in that
individuals do not have default write privileges to parts of the system that
are common to all users.

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP

Windows help - www.rickrogers.org
 
Back
Top