Latest Post
Showing posts sorted by relevance for query Notepad Trick. Sort by date Show all posts
Showing posts sorted by relevance for query Notepad Trick. Sort by date Show all posts

How To Make PHP Contact Form In Wordpress(Wordpress trick)

We can easily put contact form in wordpress using plugins. But plugins make your wordpress site loading slow and can lead to vulnerable .Its easy to make a custom PHP contact form. It is also very helpful on skill of 

PHP learning. And I am using PHP contact form in my wordpress Blog :)







You have 2 files, 1 HTML file and 1 PHP file

First you will have to upload a PHP file In your web hosting.Here is the PHP file




<?php $name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$formcontent="From: $name n Message: $message";
$recipient = "Your Target Email Address";
$subject = "Contact Form";
$mailheader = "From: $email rn";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
 
 Open a notepad and save the code as mail.php
If you dont have a notepad download it From Here Its very useful software for programming learning
After that upload the mail.php file to your webhosting at public_html folder where you installed your wordpress
Then you will find a link like this http://www.yourwebsite.com/mail.php
Now Click on Add A Page . Give title "Contact Us" of the page and Paste the following HTML code

 
<form action="http://www.yourwebsite.com/mail.php" method="POST">
<p>Name</p> <input type="text" name="name">
<p>Email</p> <input type="text" name="email">
<p>Message</p><textarea name="message" rows="6" cols="25"></textarea><br />
<input type="submit" value="Send"><input type="reset" value="Clear">


You only have to change the red colored text in the code. After that publish your contact form page.You are done
It will be difficult for newbies so comment here if getting problem
As we need your help so share our writings or website. Thank you


 

Shutdown Command Via Command Prompt(Cmd Trick)


Shutdown Command Via Command Prompt

The 'Shutdown' Command Becomes More Flexible and Automated when used from the Command Prompt.

To Run the 'Shutdown' command from the command prompt, go to 'Start > Run', type 'cmd', and press 'Enter'.
In the black box (the command prompt) type 'Shutdown' and the Switches you want to use with the 'Shutdown' command.
You have to use at least one switch for the shutdown command to work.

The Switches :-
The 'Shutdown' command has a few options called Switches. You can always see them by typing 'shutdown -?' in the command prompt if you forget any of them.

-i: Display GUI interface, must be the first option
-l: Log off (cannot be used with -m option)
-s: Shutdown the computer
-r: Shutdown and restart the computer
-a: Abort a system shutdown
-m \\computername: Remote computer to shutdown/restart/abort
-t xx: Set timeout for shutdown to xx seconds
-c “comment”: Shutdown comment (maximum of 127 characters)
-f: Forces running applications to close without warning
-d [u][p]:xx:yy: The reason code for the shutdown u is the user code p is a planned shutdown code xx is the major reason code (positive integer less than 256) yy is the minor reason code (positive integer less than 65536)

Note :- I’ve noticed using a switch with a '-' sign doesn’t work sometimes.
If you are having trouble try using a '/' in place of '-' in your switches.

Examples :-
shutdown –m \\computername –r –f
This command will restart the computer named computername and force any programs that might still be running to stop.

shutdown –m \\computername –r –f –c “I’m restarting your computer. Please save your work now.” –t 120
This command will restart the computer named computername, force any programs that might still be running to stop, give to user on that computer a message, and countdown 120 seconds before it restarts.

shutdown –m \\computername –a
This command will abort a previous shutdown command that is in progress.

Using A Batch File :-
You can create a file that performs the shutdown command on many computers at one time.

In this example I’m going to create a batch file that will use the shutdown command to shut down 3 computers on my home network before I go to bed.

Open 'Notepad' and type the shutdown command to shut down a computer for each computer on the network.
Make sure each shutdown command is on its own line.
An example of what should be typed in notepad is given below-

shutdown –m \\computer1 –s
shutdown –m \\computer2 –s
shutdown –m \\computer3 -s

Now I’ll save it as a batch file by going to file, save as, change save as type to all files, give the file a name ending with '.bat'. I named mine 'shutdown.bat'.
Pick the location to save the batch file in and save it.

When you run the batch file it’ll shutdown computer 1, 2, and 3 for you.

You can use any combination of shutdown commands in a batch file.


 

Commands For Windows(Cmd Trick)

Commands For Windows



Labels: Windows 7 tricks » windows vista tricks » windows xp tricks

Today I am going to post the collection of "Run" commands for windows. To open the run dialogue box where you enter the run commands, click start and then select Run. You can also hold down the Windows key on your keyboard and press 'R'; this will open the run command console where you then type in your command.

How to enable old run dialog box in windows 7 and vista?

Here's the list Run Commands For Windows:


  • Accessibility Controls : access.cpl
  • Accessibility Wizard : accwiz
  • Add Hardware Wizard : hdwwiz.cpl
  • Add/Remove Programs : appwiz.cpl
  • Administrative Tools control : admintools
  • Adobe Acrobat (if installed) : acrobat
  • Adobe Designer (if installed) : acrodist
  • Adobe Distiller (if installed) : acrodist
  • Adobe ImageReady (if installed) : imageready
  • Adobe Photoshop (if installed) : photoshop
  • Automatic Updates : wuaucpl.cpl
  • Bluetooth Transfer Wizard : fsquirt
  • Calculator : calc
  • Certificate Manager : certmgr.msc
  • Character Map : charmap
  • Check Disk Utility : chkdsk
  • Clipboard Viewer : clipbrd
  • Command Prompt : cmd
  • Component Services : dcomcnfg
  • Computer Management : compmgmt.msc
  • Control Panel : control
  • Date and Time Properties : timedate.cpl
  • DDE Shares : ddeshare
  • Device Manager : devmgmt.msc
  • Direct X Control Panel (If Installed)* : directx.cpl
  • Direct X Troubleshooter : dxdiag
  • Disk Cleanup Utility : cleanmgr
  • Disk Defragment : dfrg.msc
  • Disk Management : diskmgmt.msc
  • Disk Partition Manager : diskpart
  • Display Properties control : desktop
  • Display Properties : desk.cpl
  • Display Properties (w/Appearance Tab Preselected) control : color
  • Dr. Watson System Troubleshooting Utility : drwtsn32
  • Driver Verifier Utility : verifier
  • Event Viewer : eventvwr.msc
  • Files and Settings Transfer Tool : migwiz
  • File Signature Verification Tool : sigverif
  • Findfast : findfast.cpl
  • Firefox (if installed) : firefox
  • Folders Properties control : folders
  • Fonts control : fonts
  • Fonts Folder : fonts
  • Free Cell Card Game : freecell
  • Game Controllers : joy.cpl
  • Group Policy Editor (XP Prof) : gpedit.msc
  • Hearts Card Game : mshearts
  • Help and Support : helpctr
  • HyperTerminal : hypertrm
  • Iexpress Wizard : iexpress
  • Indexing Service : ciadv.msc
  • Internet Connection Wizard : icwconn1
  • Internet Explorer : iexplore
  • Internet Properties : inetcpl.cpl
  • Internet Setup Wizard : inetwiz
  • IP Configuration (Display Connection Configuration) : ipconfig /all
  • IP Configuration (Display DNS Cache Contents) : ipconfig /displaydns
  • IP Configuration (Delete DNS Cache Contents) : ipconfig /flushdns
  • IP Configuration (Release All Connections) : ipconfig /release
  • IP Configuration (Renew All Connections) : ipconfig /renew
  • IP Configuration (Refreshes DHCP & Re-Registers DNS) : ipconfig /registerdns
  • IP Configuration (Display DHCP Class ID) : ipconfig /showclassid
  • IP Configuration (Modifies DHCP Class ID) : ipconfig /setclassid
  • Java Control Panel (If Installed) : jpicpl32.cpl
  • Java Control Panel (If Installed) : javaws
  • Keyboard Properties control : keyboard
  • Local Security Settings : secpol.msc
  • Local Users and Groups : lusrmgr.msc
  • Logs You Out Of Windows : logoff
  • Malicious Software Removal Tool : mrt
  • Microsoft Access (if installed) : access.cpl
  • Microsoft Chat : winchat
  • Microsoft Excel (if installed) : excel
  • Microsoft Frontpage (if installed) : frontpg
  • Microsoft Movie Maker : moviemk
  • Microsoft Paint : mspaint
  • Microsoft Powerpoint (if installed) : powerpnt
  • Microsoft Word (if installed) : winword
  • Microsoft Syncronization Tool : mobsync
  • Minesweeper Game : winmine
  • Mouse Properties control : mouse
  • Mouse Properties : main.cpl
  • Nero (if installed) : nero
  • Netmeeting : conf
  • Network Connections control : netconnections
  • Network Connections : ncpa.cpl
  • Network Setup Wizard : netsetup.cpl
  • Notepad : notepad
  • Nview Desktop Manager (If Installed) : nvtuicpl.cpl
  • Object Packager : packager
  • ODBC Data Source Administrator : odbccp32.cpl
  • On Screen Keyboard : osk
  • Opens AC3 Filter (If Installed) : ac3filter.cpl
  • Outlook Express : msimn
  • Paint : pbrush
  • Password Properties : password.cpl
  • Performance Monitor : perfmon.msc
  • Performance Monitor : perfmon
  • Phone and Modem Options : telephon.cpl
  • Phone Dialer : dialer
  • Pinball Game : pinball
  • Power Configuration : powercfg.cpl
  • Printers and Faxes control : printers
  • Printers Folder : printers
  • Private Character Editor : eudcedit
  • Quicktime (If Installed) : QuickTime.cpl
  • Quicktime Player (if installed) : quicktimeplayer
  • Real Player (if installed) : realplay
  • Regional Settings : intl.cpl
  • Registry Editor : regedit
  • Registry Editor : regedit32
  • Remote Access Phonebook : rasphone
  • Remote Desktop : mstsc
  • Removable Storage : ntmsmgr.msc
  • Removable Storage Operator Requests : ntmsoprq.msc
  • Resultant Set of Policy (XP Prof) : rsop.msc
  • Scanners and Cameras : sticpl.cpl
  • Scheduled Tasks control : schedtasks
  • Security Center : wscui.cpl
  • Services : services.msc
  • Shared Folders : fsmgmt.msc
  • Shuts Down Windows : shutdown
  • Sounds and Audio : mmsys.cpl
  • Spider Solitare Card Game : spider
  • SQL Client Configuration : cliconfg
  • System Configuration Editor : sysedit
  • System Configuration Utility : msconfig
  • System File Checker Utility (Scan Immediately) : sfc /scannow
  • System File Checker Utility (Scan Once At Next Boot) : sfc /scanonce
  • System File Checker Utility (Scan On Every Boot) : sfc /scanboot
  • System File Checker Utility (Return to Default Setting) : sfc /revert
  • System File Checker Utility (Purge File Cache) : sfc /purgecache
  • System File Checker Utility (Set Cache Size to size x) : sfc /cachesize=x
  • System Information : msinfo32
  • System Properties : sysdm.cpl
  • Task Manager : taskmgr
  • TCP Tester : tcptest
  • Telnet Client : telnet
  • Tweak UI (if installed) : tweakui
  • User Account Management : nusrmgr.cpl
  • Utility Manager : utilman
  • Windows Address Book : wab
  • Windows Address Book Import Utility : wabmig
  • Windows Backup Utility (if installed) : ntbackup
  • Windows Explorer : explorer
  • Windows Firewall : firewall.cpl
  • Windows Magnifier : magnify
  • Windows Management Infrastructure : wmimgmt.msc
  • Windows Media Player : wmplayer
  • Windows Messenger : msmsgs
  • Windows Picture Import Wizard (need camera connected) : wiaacmgr
  • Windows System Security Tool : syskey
  • Windows Update Launches : wupdmgr
  • Windows Version (to show which version of windows) : winver
  • Windows XP Tour Wizard : tourstart
  • Wordpad : write


 
 

Copyright © 2011. Tricks Duniya - All Rights Reserved