Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Path Variable For Installing Dig Instead OF Using NSLookup

12 Dec 2011   #1

Windows 7 Home Premium 64 Bit OS
Path Variable For Installing Dig Instead OF Using NSLookup

Hey folks

Just wondering if anyone can tell me if it is OK to have (create) a
second PATH environment variable for Dig.

I currently have 1 PATH variable already being c:\Program Files (x86)\Nmap.

In the instructions for installing Dig found here dig, a DNS query tool for Windows and replacement for nslookup it says that if the PATH variable exists to double click it for editing and to append dig to the PATH variable.

To put my question in the simplest terms:
Can I create a new PATH variable for Dig without screwing with the Nmap PATH variable already in place.

My System SpecsSystem Spec
12 Dec 2011   #2

Windows 7 Home Premium 64 Bit OS

Can anyone help me out here? Please.
My System SpecsSystem Spec
12 Dec 2011   #3

MS Windows 7 Home Premium SP1 64-bit (Family Pack Lic.) Upgrade

Hey AllOnTheBus,

I'm not sure about Dig specifically, but to answer your question about the Path variable Start > control panel > System > Advanced Option > [Environmental Variables] > Path will be a copy of your full Path variable. just amend it carefully with a ";" and then the full path you need to be added after the last entry. (Use [EDIT] button to edit it, then [OK]...[OK] to close the windows.)

Mike :)
My System SpecsSystem Spec

14 Dec 2011   #4

Windows 7 Home Premium 64 Bit OS

Thanks for the reply Mike

I think I should have taken my own advice for once and gone to see
Dr. Google! I wasn't understanding the meaning of the word append
(meaning add to/ include) and therefore was unsure whether I would
be deleting the Nmap entry or whether I needed to create another
PATH variable from scratch.

Turns out that by adding ";" (without quotes) as you mentioned to the
existing PATH variable along with the Dig PATH did the trick.

Just in case anyone else comes to view this post looking for information,
I'll explain in newby terms (which I am a bit) exactly the procedure I took.

Windows Start Button (orb)
Type in search: environment variables
Select "Edit environment variables for your account"
In the top section under user variables select the PATH variable (highlight it) and click edit
Add ;C:\dig to the existing PATH variable
Click OK and OK again

In my case this gave me C:\Program Files (x86)\Nmap;C:\dig where dig has been placed directly into the root directory in this case being the C: drive.

Dig is now able to be run if I use "Open command window here as administrator"
ie: Go to C:\dig and right click and choose "Open command window...................."

I found the registry entry download for the installation and removal of this
menu addin at a thread by Brink (gee that guy knows heaps- thx again!) which
can be found here: Open Command Window Here as Administrator

Just as another note, the whois utility found in the sysinternals suite which works at
a lower level to dig has been noted to be a good tool for this purpose also. If dig is downloaded
from the page I have linked out to above, included is the whois tool which can be run through dig
and the "Run command window here.........." method.
I just found this to be a bit easier than fiddling around which seemed to be the case
as witnessed in this thread:
(no offense to all involved in this thread but I got 2 tools for the price of - well - nothing which
can both be run in the same place after the PATH appending and without the need to go
moving exe's about and whatnot - besides that I must be missing something cause I tried
that and it did'nt work for me).

Anyways, if you need step by step instructions the same as I do - here they are.
Hope this may help someone in future.

Cheers :)
My System SpecsSystem Spec

 Path Variable For Installing Dig Instead OF Using NSLookup

Thread Tools

Similar help and support threads
Thread Forum
Path Environment Variable Deleted
I accidentally removed all the stuff in the Path variable in Environment Variables. Is there any way on how I could get it back?
General Discussion
Non-existant directories in System PATH variable
"echo %PATH%" gives me a list of 32 directories. 12 of these don't exist on my system, for example: C:\Windows\System32\WindowsPowerShell\v1.0\ Is there any reason to keep these directories in my System PATH variable? Is something likely to come along wanting to use one of these directories?...
General Discussion
accidentally deleted PATH variable
Not sure if this is the right forum, I don't see any forum for troubleshooting. I was trying to edit my PATH environment variable and accidentally deleted it. Is there any way to recover it? If not, is there anyone out there who can tell me what the default path variable should be? I'm afraid to...
General Discussion
Trying to understand behavior of current directory and PATH variable.
The PATH variable on my machine is set to C:\Perl64\site\bin;C:\Perl64\bin;C:\Windows\System32;C:\Program Files\Java\jdk1.7\bin;C:\Program Files (x86)\Notepad++; I have a batch file (batchfile.bat) with the following commands - dir path notepad++ source.frm -n2150 PAUSE
General Discussion
Cannot find the system variable path.
Hi. Running windows 7 ultimate 32bit. I want to add to path per this below, but I cannot find the path per the info here: How do I that ?
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:30.
Twitter Facebook Google+