CMD Script – Mx Records




Tagged Under : , , , ,

Version: 13.1a
Revision: 22 Build 12

CMD Script – Mx Records

Introduction:
for the last four weeks, I was reading and studying. But, it was a little bit boring. So, I decided to read another book about MX – Records and their history. In the end of my studying week, I was free to write new articles and update my website for students and readers.
—————————————

This CMD script was designed to retrieve information from a specific domain, IP address and DNS server. It can also look for individual IP address and their network – range.
However, this script was only created for educational research. Therefore, please don’t use this script for illegal activity.

1.] Download Notepad++ (http://notepad-plus.sourceforge.net/) from the author’s website and install the application.

2.] Execute Notepad++ and copy this script. After that, you’ll need to save it as: “mx-lookup-xp.bat”.

Extension: .bat (batch file)

———— Copy Text —————

@echo off
cls
echo.
nslookup -querytype=mx website.com > MX.txt
echo.
nslookup -d -type=mx website.com > MX-Results.txt
echo.
nslookup -a -type=mx website.com > Aliases.txt
echo.
nslookup -querytype=all website.com > Mx-Aliases.txt
::exit

———— End —————

Notes: you’ll need to replace “website.com” with your own website.

3.] Run the script and there will be four ‘Text File’ for you to analyze and read. But, I would recommend you to delete these text file, when you’re done with the research.

4.] Enjoy!

Copyrighted By Lair360




WindowsXP – Clear System Memory




Tagged Under : , , , , ,

Version: 32.1
Revision: 43 Build 12

WindowsXP – Clear System Memory

Introduction:
Running multiple applications simultaneously for long periods leads to a gradual decrease in system performance over time. Often the only option is a restart. Even if you close the application in the Task Manager, the tasks/threads associated with the application are not released completely, depleting the system?s memory resources making the system unstable and sluggish.

When you’re using your computer occasionally and ran multiple applications simultaneously, for long periods, your system performances could decrease and response slowly – overtime. Often, the only option is to restart your operating system. Even if you close the application in the “Task Manager”, the services associated with the application are not released completely. The following trick is designed to offer fast relief…

Method One: Creating a shortcut.
———————————–
1.] Right click on your desktop and select: New >> Shortcut
2.] In the ‘text box’ enter this command: %windir%\system32\rundll32.exe advapi32.dll,ProcessIdleTasks

3.] Click Next. In the next screen, you’ll need to give your shortcut a name.
For example: “Clear Memory” (without the quotes).

4.] Click: Finish
5.] Done!

Notes: whenever you feel that your system is sluggish, you can double click on this shortcut and it will take care of the ‘idle tasks’ by removing them. This can be used before you resort to restarting/rebooting the system.

Method Two: Creating a VBScript.
———————————–
1.] Download Notepad++ from the original author.
———————————–

http://sourceforge.net/projects/notepad-plus/

http://filehippo.com/download_notepad/

———————————–

2.] Copy this script and save it as a “.vbs” extension.

—Copy Source Code—

'----------------------------------
'Author: Lair360.
'Version: 16 Build 45 [Final]
'This script was designed to clear system memory.
'Url: http://lair360.co.uk
'----------------------------------
On Error Resume Next 'This line will concel the error and direct to the info.
Dim objShell 'This will maintain memory usage when "WS.script.Shell" is activated.
Set objShell = CreateObject("WScript.Shell")
ObjShell.Run ("%windir%\system32\rundll32.exe advapi32.dll,ProcessIdleTasks")
'Results are given and the cmd command-line has exit.
WScript.Quit
'End of VBScript command

—End Source Code—
Copyright 2001-2009 Lair360


3.] Execute the script and clear your systems’ memory.

Method Three: Creating a BatchScript.
———————————–

1.] Download Notepad++ from the original author.
———————————–

http://sourceforge.net/projects/notepad-plus/

http://filehippo.com/download_notepad/

———————————–

2.] Copy this script and save it as a “.bat” extension.

—Copy Source Code—

@echo off
echo.
Call %windir%\system32\rundll32.exe advapi32.dll,ProcessIdleTasks
echo. System Memory Cleared...
cls
exit

—End Source Code—
Copyright 2001-2009 Lair360


3.] Execute the script and clear your systems’ memory.

Copyrighted By Lair360




Windows Xp – Flush DNS




Tagged Under : , , , ,

Version: 32.1b
Revision: 22 Build 35

Windows Xp – Flush DNS

Introduction:
most “DNS clients” cache the results of name – resolution requests. This technique speeds up individual name resolution if multiple lookups are done to the same address. Nevertheless, it is very common for all browser to cache their results, so that you can enjoy your time – surfing the web without wasting your time!

Windows OS: Windows XP Pro Sp2+ and Home Edition Sp2+

1.] Download notepad++ from the original author or from a mirror and install the software.
——————————-

http://sourceforge.net/projects/notepad-plus/

http://filehippo.com/download_notepad/

——————————-

2.] Choose your desire method…

——————————-
Method One: flush your DNS with CMD command
——————————-


Warning: please close all internet browser before you continue!

1.] Click Start >> Run >> Type: cmd

2.] When “Command Prompt” is loaded, you’ll need to type this command: ipconfig /flushdns

3.] Press Enter and execute the command.

4.] Finish!

——————————-
Method Two: flush your DNS with VBScript file
——————————-


1.] Open your notepad and copy one of these source code…

Windows XP Pro and Home Version
—Copy Source Code—

'Author: Lair360
'Version: 16.6a
'Revision: 36 Build 16
'--------------------------------------------
On Error Resume Next 'This line will cancel the error and direct to the info.
Dim objShell 'This will maintain memory usage when "WS.script.Shell" is activated.
set objShell = createobject("wscript.shell")
objShell.run("%comspec% /k c: & ipconfig /flushdns")
'Results are given and cmd command-line has exit.
WScript.Quit
'End of VBScript command
'-------------------------------------------
WScript.Echo "DNS Caches are flushed!"
objShell = Nothing
'VBScript Ends

—End Source Code—
Copyright 2001-2009 Lair360


Notes: if these script doesn’t work under Windows Xp Home Sp2+, please use the “Portable Version”.

Windows Xp Home Edition
—Copy Source Code—

'Author: Lair360
Version: 17.3a
'Revision: 36 Build 16
'This code flushes the local DNS cache.
'------------------------------------
strCommand = "ipconfig /flushdns"
set objWshShell = WScript.CreateObject("WScript.Shell")
intRC = objWshShell.Run(strCommand, 0, TRUE)
if intRC <> 0 then
   WScript.Echo "There was an error...operation aborted!" & intRC
else
   WScript.Echo "DNS Caches are cleared!"
end if
'------------------------------------
'Url: http://lair360.co.uk

—End Source Code—
Copyright 2001-2009 Lair360

USB portable version.
—Copy Source Code—

'Author: Lair360
Version: 15.3a
'Revision: 32 Build 16
'This code flushes the local DNS cache.
'------------------------------------
On Error Resume Next
Set WshObj = Wscript.CreateObject("WScript.Shell")
WshObj.Run "ipconfig /flushdns", 1, true
set wsObj = Nothing
'------------------------------------
'Url: http://lair360.co.uk

—End Source Code—
Copyright By Lair360


——————————-
Method Three: flush your DNS with Batch file
——————————-


1.] Open your notepad and copy one of these source code…

Notes: you’ll need to save this script as a “.bat” extension.

Windows XP Pro and Home Version
—Copy Source Code—

@echo off
cls
echo.
echo.
echo. Pressing any key to flush your DNS
echo.
echo.
pause>nul
ipconfig /flushdns

ping localhost>nul

ipconfig /registerdns
echo.
echo.
echo. DNS is now flushed. Please see above for any errors
echo. Copyrighted by Lair360
echo.
pause
exit

—End Source Code—
Copyright By Lair360

Alternative Version
—Copy Source Code—

@echo off
cls
echo.
echo. Flush DNS
echo. Author: Lair360
echo. Version 2.1a
echo. Copyrighted by Lair360
echo.
echo. Flushing DNS Cache...
ipconfig /flushdns
echo.
echo. DNS Cache cleared...
pause
exit

—End Source Code—
Copyright 2001-2009 Lair360




View active ‘Windows Services’ in CMD mode




Tagged Under : , , ,

View active ‘Windows Services’ in CMD mode.

Introductions: This is a portable tool to let you see all of your computer’s services. Nevertheless, it will only show you ‘active services.’ This is useful if you want to see what services is running on your computer.

Notes: Please use ‘Notepad++’ for this script.

http://notepad-plus.sourceforge.net/uk/site.htm

———————————————
VBScript Codes.
———————————————

'----------------------------------
'Author: Lair360.
'Version: 14 Build 45 [Final]
'This script was designed to help students to look for their service - when using Vista OS.
'Copyrighted by Globalnews HQ.
'----------------------------------
On Error Resume Next 'This line will concel the error and direct to the info.
Dim objShell 'This will maintain memory usage when "WS.script.Shell" is activated.
Set objShell = CreateObject("WScript.Shell")
ObjShell.Run ("%comspec% /k c: & net start")
'Results are given and the cmd command-line has exit.
WScript.Quit
'End of VBScript command

———————————————
Important: Please don’t altar these scripts or modify them without my permission.

Thank you.




Execute CMD command box with VBscript.




Tagged Under : , , ,

Version: 23
Revision: 26 Build 127

Execute CMD command box with VBscript.

Introduction: When you use CMD command, you always need to find the run box, which is a little frustrating. But, if you want to open CMD command – right at your folder or desktop, you can create a VBscript to open them quickly without wasting your time!

1.] Download NotePad Plus.

Link: http://filehippo.com/download_notepad/

2.] Execute and install “Notepad Plus” to your desire directories.

3.] Run the application and copy these code.

Notes: Please copy the code which is highlighted in bold.
————————————-

'=======================================
' CMD.vbs
' Authour: Lair 360
' Url: http://lair360.wordpress.com
' Version: 1.3 Build 15
'=======================================

On Error Resume Next
Dim objShell
Set objShell = CreateObject("WScript.Shell")
objShell.Run "%comspec% /k c: & dir"
WScript.Quit
' End of VBScript command

————————————-

4.] Inside your advance notepad, scroll your mouse to: File >> Save As…

5.] Copy this text with the extension to the “File Name” area. But, please leave the box as “All Types [*.*]”

Code: CMD_Box.vbs

6.] Click ‘Save’ and Exit.

7.] Execute “CMD_Box.vbs” from your desire directories.

Notes: You’ll see a Black Box appearing on the screen.

Tips: To test your new “CMD_Box” application, just type one of these commands to see if it works.

ipconfig /displaydns [Display DNS Cache Contents]
netstat [Look at webpage’s IP address]
powercfg.cpl [Power Configuration]

From now on, you don’t have to look for the run box and type CMD every time!
Just hit the vbs file and you’re there….

Notes: If you have problems with the codes, please check your pasting and codes….

Copyrights law: By following the rules and regulation, I have made the script with my own knowledge. I didn’t copy the codes or steal anything!