Real Geek Forums  

Go Back   Real Geek Forums > Archives > Operating Systems > Windows Vista

Notices

Reply

DOS ouptput to a text file

 

LinkBack Thread Tools Display Modes
Old 08-07-2006, 09:34 PM   #1 (permalink)
Default DOS ouptput to a text file

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?
senrabdet
Guest
 
Posts: n/a
Reply With Quote  
Old 08-07-2006, 11:09 PM   #2 (permalink)
Default Re: DOS ouptput to a text file

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
http://mvp.support.microsoft.com/
Windows help - www.rickrogers.org

"senrabdet" <senrabdet@discussions.microsoft.com> wrote in message
news:61DD46F3-6DA5-45AD-BD25-9BBB346F65C8@microsoft.com...
Quote:
> 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?

Rick \Nutcase\ Rogers
Guest
 
Posts: n/a
Reply With Quote  
Old 08-08-2006, 12:06 AM   #3 (permalink)
Default Re: DOS ouptput to a text file

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

"Rick "Nutcase" Rogers" wrote:
Quote:
> 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
> http://mvp.support.microsoft.com/
> Windows help - www.rickrogers.org
>
> "senrabdet" <senrabdet@discussions.microsoft.com> wrote in message
> news:61DD46F3-6DA5-45AD-BD25-9BBB346F65C8@microsoft.com...
Quote:
> > 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?
>
>
>
senrabdet
Guest
 
Posts: n/a
Reply With Quote  
Old 08-08-2006, 12:51 AM   #4 (permalink)
Default Re: DOS ouptput to a text file

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
http://mvp.support.microsoft.com/
Windows help - www.rickrogers.org

"senrabdet" <senrabdet@discussions.microsoft.com> wrote in message
news:B6AF0794-4CAC-4C10-9C56-B19AC3F1C82F@microsoft.com...
Quote:
> 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
>
> "Rick "Nutcase" Rogers" wrote:
>
Quote:
>> 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
>> http://mvp.support.microsoft.com/
>> Windows help - www.rickrogers.org
>>
>> "senrabdet" <senrabdet@discussions.microsoft.com> wrote in message
>> news:61DD46F3-6DA5-45AD-BD25-9BBB346F65C8@microsoft.com...
Quote:
>> > 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?
>>
>>
>>
Rick Rogers
Guest
 
Posts: n/a
Reply With Quote  
Old 08-08-2006, 12:54 AM   #5 (permalink)
Default Re: DOS ouptput to a text file

On Mon, 7 Aug 2006 17:06:02 -0700, senrabdet
<senrabdet@discussions.microsoft.com> wrote:
Quote:
>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
Steve Urbach
Guest
 
Posts: n/a
Reply With Quote  
Old 08-08-2006, 01:49 AM   #6 (permalink)
Default Re: DOS ouptput to a text file

Right click on the Run icon and choose Run as Administrator. That will
elevate the commands you issue in the command line.

"senrabdet" <senrabdet@discussions.microsoft.com> wrote in message
news:61DD46F3-6DA5-45AD-BD25-9BBB346F65C8@microsoft.com...
Quote:
> 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?

Colin Barnhorst
Guest
 
Posts: n/a
Reply With Quote  
Old 08-08-2006, 05:16 AM   #7 (permalink)
Default Re: DOS ouptput to a text file

Lost me there Colin... what Run icon?

Lang

"Colin Barnhorst" <colinbarharst(remove)@msn.com> wrote in message
news:%23uHRzzouGHA.5032@TK2MSFTNGP04.phx.gbl...
Quote:
> Right click on the Run icon and choose Run as Administrator. That will
> elevate the commands you issue in the command line.
>
> "senrabdet" <senrabdet@discussions.microsoft.com> wrote in message
> news:61DD46F3-6DA5-45AD-BD25-9BBB346F65C8@microsoft.com...
Quote:
>> 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?
>
>
Lang Murphy
Guest
 
Posts: n/a
Reply With Quote  
Old 08-08-2006, 10:30 AM   #8 (permalink)
Default Re: DOS ouptput to a text file

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
http://mvp.support.microsoft.com/
Windows help - www.rickrogers.org

"Lang Murphy" <lang_murphy@hotmail.com> wrote in message
news:FE29E9D4-EA4B-4CF0-A230-2CD62B631BE8@microsoft.com...
Quote:
> Lost me there Colin... what Run icon?
>
> Lang
>
> "Colin Barnhorst" <colinbarharst(remove)@msn.com> wrote in message
> news:%23uHRzzouGHA.5032@TK2MSFTNGP04.phx.gbl...
Quote:
>> Right click on the Run icon and choose Run as Administrator. That will
>> elevate the commands you issue in the command line.
>>
>> "senrabdet" <senrabdet@discussions.microsoft.com> wrote in message
>> news:61DD46F3-6DA5-45AD-BD25-9BBB346F65C8@microsoft.com...
Quote:
>>> 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?
>>
>>
>
Rick Rogers
Guest
 
Posts: n/a
Reply With Quote  
Reply

Tags
None

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Microsoft word file turn to notepad file with non word text Guest Windows Vista 0 03-06-2008 09:21 PM
Double-accessing a text file Bill DeShawn at Gregg Creghton's Office Windows XP Configuration & Management 0 01-21-2008 06:22 PM
find file containing text inside the file rgrainer Windows Vista File Management 8 05-21-2007 01:05 AM
blobl text file dysonsphere Windows Vista Performance & Maintenance 1 05-14-2007 02:15 PM
Emailing a Text File ibeetb Windows XP Work Remotely 1 02-07-2004 01:45 AM


All times are GMT. The time now is 11:36 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright © 2005 - 2007 RealGeek.com. All rights reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90