MasterGenius.NET – Lambros Petrou Be Smart | Be Logic | Be A Genius

2Feb/100

{Tutorial} – Open Command Prompt Here (right click shortcut)

There are times when everyone wants to open a command prompt when he navigates a folder but it's kind of boring and time taking to open the command prompt and manually navigate to the folder he wants. Here i am going to show you how you can add a shortcut when you right click a folder in order to open that folder in command prompt or run a file in command prompt :P

  1. Open Regedit (Start->Run->Regedit  Or  Start->type in search box "regedit" without quotes)
  2. Navigate to HKEY_LOCAL_MACHINE/Software/Classes/Folder/Shell
  3. Now right click and ADD a key
    name Command Prompt
    default value Open the Directory in CMD (double click default value to change its value)
  4. Now right click inside that key and create a new key
    name command
    default value cmd.exe /k pushd %L (double click default value to change its value)

This works for every Windows System (xp/vista/7)!!! But in Vista and 7 there is new trick you can use if you are afraid of changing registry values.

You can right click the folder you want to open in command prompt by having the SHIFT key pressed and you will have the option in the new menu. (SHIFT + Right Click the folder)

I Made two files with the registry keys for you if you don't want to get smudged with regedit.
Download it and just run it.
Command Prompt Registry(directories) for Windows 98 and NT4.0 Systems
Command Prompt Registry(directories) for Windows 2000/ME/XP/VISTA/7

Now let's say you want to open a file into the command Prompt and not a directory we can do the same trick but with other KEYS. Download the files below or do it manually with Regedit.

  1. Open Regedit (Start->Run->Regedit  Or  Start->type in search box "regedit" without quotes)
  2. Navigate to HKEY_LOCAL_MACHINE/Software/Classes/*/Shell
  3. Now right click and ADD a key
    name Command Prompt
    default value Open the File in CMD (double click default value to change its value)
  4. Now right click inside that key and create a new key
    name command
    default value cmd.exe /k %1 (double click default value to change its value)

Download the .reg files below if you just want to import the shortcuts.!!!
Command Prompt Registry(files) for Windows 98 and NT4.0 Systems
Command Prompt Registry(files) for Windows 2000/ME/XP/VISTA/7

Nice tricks for anyone that uses command prompt a lot! :P

27Dec/090

{Tutorial} – Fix your Master Boot Record (MBR) in Windows XP/ VISTA/ 7

Hello my friends and Merry Christmas, wish you the best! :P

Today i am going to explain you how you can fix your master boot record (mbr) in your windows setup, either xp, vista or 7. When we have dual boot systems especially windows with linux or even windows versions and then you decide that you don't want the either problems at your booting might come along when you delete the one you don't want. We are here to Fix this issue now :)

Firstly starting with XP:

  1. First of all you want a cd of the windows XP installation.
  2. Insert it and boot your PC, choose your CD as the boot option and ait for the windows files to load.
  3. Now press R as we want to get into the recovery console of the disk.
  4. You will then asked to choose the operating system to log into. Usually it's the first option you want so press the number 1 and enter.
  5. Enter your password and enter.
  6. Ok now we are at the "Windows" location in the command prompt like below:
    c:\WINDOWS>
  7. Now enter the following commands
    c:\windows>fixmbr
    c:\windows>fixboot
  8. Now you can exit the console and restart your PC normally.

Now let's go over to Vista users:

  1. First of all you want a vista dvd on which you must boot in during the startup of your system.
  2. When Windows load every file and display you the screen where you can shoo Install, you must choose the Repair your computer option from bottom left corner
  3. Then it will want you to choose the System you want so choose your vista installation and OK
  4. Next choose the command prompt
  5. Now you must type these commands:
    Bootrec.exe /fixMBR
    Bootrec.exe /fixBoot
  6. It will say you that it was succesful, exit the command prompt and RESTART
  7. Now you are ready to go :P

Now we move over to Windows 7 users:

  1. Insert Win 7 installation DVD and boot from DVD drive.
  2. Choose your default "Language", "Time", and "keyboard Input" on the first window and click next.
  3. Now you have the option to Install, but what we want is to repair so choose the Repair Your Computer option.
  4. Choose the command prompt
  5. Now here we must go into the boot folder of the win7 DVD. To do this you must guess the dvd drive letter, for example if you only have one disk and one partition which is C: then probably the dvd drive will be D: . Once you find it enter the following

    cd d:\boot  and press enter

    if it doesn't work try typing just D: and then if the command prompt change to D:\> type cd boot

  6. Now that we are into the boot folder of our DVD we must type the following command to fix the master boot record (mbr):
    bootsect /nt60 C: /force /mbr

    Where C: is you can type two more keywords instead of that. Consider that C: is your system drive though. Ok the first one is the SYS (it will choose the partition that have the atrribute as system and fix that one) keyword and the second one is the ALL (it will fix all the partitions and disks). Also you can not use the /force and /mbr arguments but i think it's better to do.

Ok everybody now you can fix your MasterBoot Record on your own :P :)

12Dec/090

{Tutorial} – List the installed applications of your Windows PC!

Hello fellows :P , it's been a while since my last post. I have some tutorials today for you and this one is about your installed applications. Lets say for example you want to get all of your programs on your new system and you want the applications you had on your old one this is a way to get all of them listed and day to day download them all.

We will use the "Windows Instrumentation command-line interface (WMIC)" to do this and it's an easy task believe me.

let's start:

  1. Open your Command-Prompt (start->all programs->accessories->command prompt)
  2. Type in
    wmic

    and ENTER

  3. You will see a new prompt:
    wmic:root\cli>
  4. Type
    product get name,version

    This will list all the applications you have installed in the command prompt window.

  5. If you want to generate a text or HTM file for printing, execute the following:
    /output:d:\Applications.txt product get name,version        {this will create a TEXT file}
    /output:d:\Applications.html product get name,version        {this will create an HTML file}

    change the "d:\applist.txt" to your desired directory and filename!!!

THANKS for reading my tutorial and i hope you find it useful!!! :P