Monday, October 15, 2012

To get Asp.net Framework installed in PC

In windows operating system many websites or software requires asp.net framework installed in the PC.
So sometimes we find it difficult to know which framework is installed in our PC.
Using below command in command prompt we can easily identify which framework is installed.

Open your command prompt using
1. Windows key + R
2 Type "Run" then Enter

It will open your command prompt then copy paste below commands in command prompt.
wmic product where "name like 'Microsoft .Net Framework% ' " get name, version
You can click on image to show larger image in your browser.

Thursday, September 13, 2012

Recover data from hidden directories or pendrive

Command prompt is very useful to recover files from pendrive.
Some times virus makes pend drive folders hidden or disable, so users are not able to open particular folder.
To recover all the data from pen drive is possible using following command.
These are the steps:
1. Open USB pen drive using drive name:
    For example :
    G drive is for USB then give command  
    G : enter
    G:\>  
    Now you are in G drive of USB in command prompt.
2. Here enter command
    attrib -r -h -s *.* /s /d
3. Now enter dir command to view all the directories of pen drive.
Now all directories are accessible.

Command prompt IPconfig command not working in Windows 7

Command prompt in windows 7

C:\Users\Admin>ipconfig
'ipconfig' is not recognized as internal or external command, operable program or batch file.

There are some basic commands like ipconfig,netstat, pint, traceout etc.
These all command gives above error.

Steps to solve the error.
1. Check the current Paht by giving command
    echo %PATH%
    It will show the current path.
2. Add this Path variable to C:\WINDOWS\SYSTEM32;
    Control panel--->System and Security--->System--->Advanced System Settings
    Select Environment Variables--->System variables
    Edit the PATH  variable as follows
  



Now exit from command prompt and restart it as "Run as Administrator"

Now all command should work.

Wednesday, September 5, 2012

Wamp server & MySql

  • Error : 1045 
  • Access Denied for user 'root@localhost'(using Password : NO) 
There are more than one reason for above error  wamp server has not  assigned port porperly or username and password has not set.
Steps to solve the above error:
We may have  reset the root password in MySql
The phpMyAdmin with Wamp Server gives above error 1045.


1. MySql Command prompt give the blow command to set the root password.
    UPDATE mysql.user SET Password=PASSWORD('NewPass') WHERE User = 'root';
    FLUSH PRIVILEGES;

2. After changing the command in MySql also change the password in wamp server as follows:
       c:\wamp\apps\config.inc.php
    In config.inc.php file find the below syntax and give the password.
      $cfg['Server'][$i]['user']='root';
      $cfg['Server'][$i]['password']='NewPass';

3. If you want to come out from your current installed password then delete current password and   make null password in the file. C:\wamp\apps\config.inc.php
   
  
      $cfg['Server'][$i]['user']='root';
      $cfg['Server'][$i]['password']=' ';

 

IANA timezone details in short

  The IANA Time Zone Database (often called tzdata , zoneinfo , or the Olson database ) is the global standard for representing time zones ...