ipconfig >TEXT.txt ---- Access is denied.

Monopoly money comes in many flavors: 7, Vista, XP, 2K, ME, 98, etc.

Moderators: Flying Fox, Ryu Connor

ipconfig >TEXT.txt ---- Access is denied.

Postposted on Sun Aug 04, 2013 7:13 am

I can have resutls of "ipconfig" command displayed but unable to create a text file. "Access is denied" is returned. What could be wrong?
churin
Gerbil XP
 
Posts: 425
Joined: Wed Nov 28, 2007 4:38 pm
Location: Atlanta/U.S.A.

Re: ipconfig >TEXT.txt ---- Access is denied.

Postposted on Sun Aug 04, 2013 7:38 am

Have you tried running cmd.exe as an admin?
Star Brood
Gerbil First Class
Silver subscriber
 
 
Posts: 180
Joined: Wed Mar 21, 2012 4:57 am

Re: ipconfig >TEXT.txt ---- Access is denied.

Postposted on Sun Aug 04, 2013 8:40 am

My first guess is you do not have write permissions in the directory that you are in. When ou open up cmd you are usually put under the sys32 directory, i think, which a user would not have write permissions to. Execute ad admin, or, better, cd to your home directory. If you execute this in power shell you can use > $HOME\filename.txt
Losergamer04
Gerbil First Class
 
Posts: 174
Joined: Fri Jan 30, 2009 8:01 am

Re: ipconfig >TEXT.txt ---- Access is denied.

Postposted on Sun Aug 04, 2013 9:10 am

Star Brood wrote:Have you tried running cmd.exe as an admin?

I tried that but it did not solve.
churin
Gerbil XP
 
Posts: 425
Joined: Wed Nov 28, 2007 4:38 pm
Location: Atlanta/U.S.A.

Re: ipconfig >TEXT.txt ---- Access is denied.

Postposted on Sun Aug 04, 2013 9:18 am

Losergamer04 wrote:My first guess is you do not have write permissions in the directory that you are in. When ou open up cmd you are usually put under the sys32 directory, i think, which a user would not have write permissions to. Execute ad admin, or, better, cd to your home directory. If you execute this in power shell you can use > $HOME\filename.txt

I added a path ahead of TEXT.txt so that the file will be saved on the desktop and the file was created. Thanks for your help.
churin
Gerbil XP
 
Posts: 425
Joined: Wed Nov 28, 2007 4:38 pm
Location: Atlanta/U.S.A.

Re: ipconfig >TEXT.txt ---- Access is denied.

Postposted on Tue Aug 06, 2013 9:43 am

another thing most people don't notice is that users don't have access to write to C:\ any more.

a lot of old bad habits die hard. :D
Arvald
Gerbil XP
Silver subscriber
 
 
Posts: 333
Joined: Tue Sep 27, 2011 12:14 pm
Location: Gerbil-land, Canada

Re: ipconfig >TEXT.txt ---- Access is denied.

Postposted on Tue Aug 06, 2013 11:35 am

ipconfig > c:\users\"yourname"\documents\iplog.ext

There IFIFU.

Your're welcome!
I wish to see things not as they are but as they should be.
Aranarth
Gerbil Elite
 
Posts: 601
Joined: Tue Jan 17, 2006 6:56 am
Location: Big Rapids, Mich. (Est Time Zone)

Re: ipconfig >TEXT.txt ---- Access is denied.

Postposted on Tue Aug 06, 2013 11:23 pm

Aranarth wrote:ipconfig > c:\users\"yourname"\documents\iplog.ext

Can use "%UserProfile%\Documents\iplog.txt". Caveat is that you have not redirected the Documents folder.
Image
The Model M is not for the faint of heart. You either like them or hate them.

Gerbils unite! Fold for UnitedGerbilNation, team 2630.
Flying Fox
Gerbil God
 
Posts: 24284
Joined: Mon May 24, 2004 2:19 am

Re: ipconfig >TEXT.txt ---- Access is denied.

Postposted on Tue Aug 06, 2013 11:45 pm

Aranarth wrote:IFIFU

I'm not familiar with that acronym. "Inadvertent Fatigue Induced F*** Up", perhaps? :wink:
(this space intentionally left blank)
just brew it!
Administrator
Gold subscriber
 
 
Posts: 37464
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

Re: ipconfig >TEXT.txt ---- Access is denied.

Postposted on Wed Aug 07, 2013 5:35 am

This reminds me of this utility program we have for some proprietary interface at my work. It would only work from your home directory, and we were never sure why. It was on Solaris, and it didn't seem to be because of permissions, nor did it appear to actually log/write anything. We only had the binary, and weren't all that interested, but it baffled us because the error message given was a non sequitur.

And, of course, the company that "supports" didn't know anything about it anymore and didn't want to. As usual. :roll:

Anyway, "Know Thy Path!"
Glorious
Darth Gerbil
Gold subscriber
 
 
Posts: 7836
Joined: Tue Aug 27, 2002 6:35 pm


Return to Windows

Who is online

Users browsing this forum: nerdrage and 7 guests