Skip to main content

Some useful windows Commands

Following are some useful commands that you can execute through the Run prompt on your windows machine.  
  1. Open Control Panel : control
  2. Open Add Remove programs panel from control panel : appwiz.cpl
  3. Open Power option properties : powercfg.cpl
  4. Open system configuration utility: msconfig
  5. Open Computer Management console : compmgmt.msc
  6. Open Local Security Settings console: secpol.msc
  7. Open Group Policy editor: gpedit.msc
  8. Open Windows Firewall Settings dialog: firewall.cpl
  9. Open Registry editor: regedit or  regedit32.exe
  10. Open System Properties dialog: sysdm.cpl  (Keyboard Shortcut: Start(windows) + Pause Break) you can also the command  "Control.exe system"
  11. Open About Windows dialog box/ To view windows version: winver
  12. Open Network Connections window : ncpa.cpl
  13. Open Windows Task Manager : taskmgr.exe  (Keyboard Shortcut: Ctrl + Shift + Esc)
  14. For Eject Drive or Safely Remove Hardware : RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll
  15. To Open Sound and Audio Device properties dialog: mmsys.cp
  16. Open Service Manager: services.msc (You can connect to local or remote service manager and view\change services properties.)
  17. Open Active Directory Users and Computer Console:  dsa.msc (Note: You should have administrative tools installed and you should able to connect domain controller)
  18. Open Microsoft Management Console: mmc (Note:You can add different snap-ins in MMC console)
  19. Open Active Directory Domain and Trust management console: domain.msc (Note: You should have administrative tools installed and you should able to connect domain controller)
  20. Open internet explorer: iexplore, chrome (for chrome), firefox ( for Firefox). 
  21. To view internet options : inetcpl.cpl
Feel free to share commands that you know or if these does not work on particular operating system, I have tried these on Windows XP. 

Comments

  1. Task Mgr in WinXP I had always used cntrl/alt/del, but in Win7 your shortcut is more direct.

    ReplyDelete

Post a Comment

Popular posts from this blog

How to boot Samsung Galaxy SL( GT-I9003) in recovery mode

** I Will Not responsible for any damage done with use of below mentioned methods. ** Power off your Samsung Galaxy SL (GT- I9003) to start in recovery mode. Once you have power off the phone, press and Hold Volume UP and Home button. Make sure you have hold volume up, don't press in  the middle of the volume buttons.  Now keep pressing these two buttons(VOL UP + HOME) and presspower button for 2-3 seconds. Release only power button, but keep pressing Volume Up + Home Button, until you see the screen shown below. Once you see recovery screen release the Home button else your phone will restart as first selected option will be restart and pressing home will make that happen.

In the recovery mode, volume up & down act as a up scroll and down scroll buttons, by pressing Home button you will be able to click the selected option.

How to flash CWM Recovery to Samsung Galaxy SL( GT-I9003) using Odin

** I Will Not responsible for any damage done with use of below mentioned methods. ** To flash the CWM recovery to your Samsung Galaxy SL you will require to following things in place: Odin  : you can download it from here.CWM Recovery image : you can download it from here. Thanks to XDA-developers. USB driver to connect your phone with computer. Install Samsung Kias so it will install the USB driver. Once you have downloaded above required items and installed the USB driver, reboot you phone to download mode. You can read how to reboot phone in download mode from here. Now connect the phone with USB cable to computer. 
Extract the Odin from the zip file that you have downloaded at some location on your computer and launch the Odin executable by double clicking it. Wait for Odin to detect your phone.You will be able to see it in yellow once detected on odin screen as shown below.
Click the PDA button to select the CWM recovery image. Once you have selected the recovery image, check the od…

Exception handling with RestTemplate

Spring framework offers RestTemplate for consuming RESTful services. Recently I used RestTemplate for consuming one of the third party RESTful service.

RestTemplate offers 'ResponseErrorHandler'; which you can extend to decide which are errors for you and how to handle those error. You can override hasError and handleError methods of ResponseErrorHandler.
In handleError you can throw customException if you want, as outlined in below code.

import org.springframework.http.HttpStatus; import org.springframework.http.client.ClientHttpResponse; import org.springframework.web.client.ResponseErrorHandler; import java.io.IOException; public class RestTemplateErrorHandler implements ResponseErrorHandler { @Override public void handleError(ClientHttpResponse response) throws IOException { throw new MyCustomException(response.getStatusText(), response.getStatusCode()); } @Override public boolean hasError(ClientHttpResponse response) throws IOException …