Personal computing discussed

Moderators: Flying Fox, Ryu Connor

 
churin
Gerbil Elite
Topic Author
Posts: 652
Joined: Wed Nov 28, 2007 4:38 pm
Location: San Jose/California

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

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?
 
Star Brood
Gerbil First Class
Posts: 184
Joined: Wed Mar 21, 2012 4:57 am

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

Sun Aug 04, 2013 7:38 am

Have you tried running cmd.exe as an admin?
 
Losergamer04
Gerbil XP
Posts: 397
Joined: Fri Jan 30, 2009 8:01 am

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

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
 
churin
Gerbil Elite
Topic Author
Posts: 652
Joined: Wed Nov 28, 2007 4:38 pm
Location: San Jose/California

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

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 Elite
Topic Author
Posts: 652
Joined: Wed Nov 28, 2007 4:38 pm
Location: San Jose/California

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

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.
 
Arvald
Silver subscriber
Gerbil Elite
Posts: 609
Joined: Tue Sep 27, 2011 12:14 pm
Location: Gerbil-land, Canada

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

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
 
Aranarth
Gerbil Elite
Posts: 895
Joined: Tue Jan 17, 2006 6:56 am
Location: Big Rapids, Mich. (Est Time Zone)
Contact:

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

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.

Main machine: Core I7 -2600K @ 4.5Ghz / 16 gig ram / Radeon 7870 / 240 gb Corsair ssd / 5tb hd
Old machine: Core 2 quad Q6600 @ 3ghz / 8 gig ram / Radeon 6870 / 240 gb PNY ssd / 1tb HD
 
Flying Fox
Gerbil God
Posts: 25176
Joined: Mon May 24, 2004 2:19 am
Contact:

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

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.
The Model M is not for the faint of heart. You either like them or hate them.

Gerbils unite! Fold for UnitedGerbilNation, team 2630.
 
just brew it!
Gold subscriber
Administrator
Posts: 45500
Joined: Tue Aug 20, 2002 10:51 pm
Location: Somewhere, having a beer

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

Tue Aug 06, 2013 11:45 pm

Aranarth wrote:
IFIFU

I'm not familiar with that acronym. "Inadvertent Fatigue Induced F*** Up", perhaps? :wink:
The years just pass like trains. I wave, but they don't slow down.
-- Steven Wilson
 
Glorious
Gold subscriber
Gerbil Khan
Posts: 9121
Joined: Tue Aug 27, 2002 6:35 pm

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

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!"

Who is online

Users browsing this forum: No registered users and 0 guests