Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Cmd, writing results to a file on my desktop.

  • Please log in to reply
1 reply to this topic

#1 IuseGMsoWHAT


  • Members
  • 1 posts
  • Local time:05:35 AM

Posted 20 March 2009 - 06:40 PM

Hey guys, and possibly girls, I am using my command prompt for a certain program I am designing, which requires writing results to a text file. I am using NSLOOKUP. Here is the line I type:

NSLOOKUP www.google.com >dir C:\Users\MyNameHere\Desktop\here.txt

It doesn't seem to work, yet I am sure it is correct.

Could anyone show me what to do?

BC AdBot (Login to Remove)


#2 usasma


    Still visually handicapped (avatar is memory developed by my Dad

  • BSOD Kernel Dump Expert
  • 25,091 posts
  • Gender:Male
  • Location:Southeastern CT, USA
  • Local time:08:35 AM

Posted 21 March 2009 - 06:52 AM

remove the "dir " from the command. It should then look like this:
NSLOOKUP www.google.com >C:\Users\MyNameHere\Desktop\here.txt
Tested it on Windows7 tho' - so YMMV (Your Mileage May Vary) :huh:
My browser caused a flood of traffic, sio my IP address was banned. Hope to fix it soon. Will get back to posting as soon as Im able.

- John  (my website: http://www.carrona.org/ )**If you need a more detailed explanation, please ask for it. I have the Knack. **  If I haven't replied in 48 hours, please send me a message. My eye problems have recently increased and I'm having difficult reading posts. (23 Nov 2017)FYI - I am completely blind in the right eye and ~30% blind in the left eye.<p>If the eye problems get worse suddenly, I may not be able to respond.If that's the case and help is needed, please PM a staff member for assistance.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users