BleepingComputer.com: Cmd, writing results to a file on my desktop.

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Cmd, writing results to a file on my desktop. NSLOOKUP

#1 User is offline   IuseGMsoWHAT 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 1
  • Joined: 20-March 09

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?

#2 User is offline   usasma 

  • Still visually handicapped, new avatar (a camel) :0)
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 16,690
  • Joined: 02-October 05
  • Gender:Male
  • Location:Southeastern CT, USA

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:
- John
**If you need a more detailed explanation, please ask for it. I have the Knack. **

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users