Saturday, May 8, 2010

Command Prompt : All Command Prompt Commands

Command Prompt is best tool in windows.
Here are some of its commands .

ASSOC          Displays or modifies file extension associations.
ATTRIB         Displays or changes file attributes.
BREAK          Sets or clears extended CTRL+C checking.
BCDEDIT        Sets properties in boot database to control boot loading.
CACLS          Displays or modifies access control lists (ACLs) of files.
CALL           Calls one batch program from another.
CD             Displays the name of or changes the current directory.
CHCP           Displays or sets the active code page number.
CHDIR          Displays the name of or changes the current directory.
CHKDSK         Checks a disk and displays a status report.
CHKNTFS        Displays or modifies the checking of disk at boot time.
CLS            Clears the screen.
CMD            Starts a new instance of the Windows command interpreter.
COLOR          Sets the default console foreground and background colors.
COMP           Compares the contents of two files or sets of files.
COMPACT        Displays or alters the compression of files on NTFS partitions.
CONVERT        Converts FAT volumes to NTFS.  You cannot convert the
               current drive.
COPY           Copies one or more files to another location.
DATE           Displays or sets the date.
DEL            Deletes one or more files.
DIR            Displays a list of files and subdirectories in a directory.
DISKCOMP       Compares the contents of two floppy disks.
DISKCOPY       Copies the contents of one floppy disk to another.
DISKPART       Displays or configures Disk Partition properties.
DOSKEY         Edits command lines, recalls Windows commands, and
               creates macros.
DRIVERQUERY    Displays current device driver status and properties.
ECHO           Displays messages, or turns command echoing on or off.
ENDLOCAL       Ends localization of environment changes in a batch file.
ERASE          Deletes one or more files.
EXIT           Quits the CMD.EXE program (command interpreter).
FC             Compares two files or sets of files, and displays the
               differences between them.
FIND           Searches for a text string in a file or files.
FINDSTR        Searches for strings in files.
FOR            Runs a specified command for each file in a set of files.
FORMAT         Formats a disk for use with Windows.
FSUTIL         Displays or configures the file system properties.
FTYPE          Displays or modifies file types used in file extension
               associations.
GOTO           Directs the Windows command interpreter to a labeled line in
               a batch program.
GPRESULT       Displays Group Policy information for machine or user.
GRAFTABL       Enables Windows to display an extended character set in
               graphics mode.
HELP           Provides Help information for Windows commands.
ICACLS         Display, modify, backup, or restore ACLs for files and
               directories.
IF             Performs conditional processing in batch programs.
LABEL          Creates, changes, or deletes the volume label of a disk.
MD             Creates a directory.
MKDIR          Creates a directory.
MKLINK         Creates Symbolic Links and Hard Links
MODE           Configures a system device.
MORE           Displays output one screen at a time.
MOVE           Moves one or more files from one directory to another
               directory.
OPENFILES      Displays files opened by remote users for a file share.
PATH           Displays or sets a search path for executable files.
PAUSE          Suspends processing of a batch file and displays a message.
POPD           Restores the previous value of the current directory saved by
               PUSHD.
PRINT          Prints a text file.
PROMPT         Changes the Windows command prompt.
PUSHD          Saves the current directory then changes it.
RD             Removes a directory.
RECOVER        Recovers readable information from a bad or defective disk.
REM            Records comments (remarks) in batch files or CONFIG.SYS.
REN            Renames a file or files.
RENAME         Renames a file or files.
REPLACE        Replaces files.
RMDIR          Removes a directory.
ROBOCOPY       Advanced utility to copy files and directory trees
SET            Displays, sets, or removes Windows environment variables.
SETLOCAL       Begins localization of environment changes in a batch file.
SC             Displays or configures services (background processes).
SCHTASKS       Schedules commands and programs to run on a computer.
SHIFT          Shifts the position of replaceable parameters in batch files.
SHUTDOWN       Allows proper local or remote shutdown of machine.
SORT           Sorts input.
START          Starts a separate window to run a specified program or command.
SUBST          Associates a path with a drive letter.
SYSTEMINFO     Displays machine specific properties and configuration.
TASKLIST       Displays all currently running tasks including services.
TASKKILL       Kill or stop a running process or application.
TIME           Displays or sets the system time.
TITLE          Sets the window title for a CMD.EXE session.
TREE           Graphically displays the directory structure of a drive or
               path.
TYPE           Displays the contents of a text file.
VER            Displays the Windows version.
VERIFY         Tells Windows whether to verify that your files are written
               correctly to a disk.
VOL            Displays a disk volume label and serial number.
XCOPY          Copies files and directory trees.
WMIC           Displays WMI information inside interactive command shell.

Windows 7/Vista Trick : Adding the good old run option to start menu : Manual Way

To add run option to Start menu do the following :
* Press winkey + R to open run menu.
*Type : Regedit
*Press Enter
*The Registry editor windows opens up:
 * Move to : HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
* In right hand pane find entry : Start_ShowRun
* Double click on Start_ShowRun and type 1 .
* Click ok ,Press f5.
* Close regedit
* Open run by windows key + r .
* type cmd
* Command prompt window appears .
* type : taskkill /F /IM explorer.exe
* Now type : explorer.exe
* You see run option added .
Have funn..............
(Note : Playing with regedit is a dangerous thing for your computer if improperly done however its lots of fun.
The author holds no liability if something goes wrong ) 

Windows 7/Vista Trick : Adding the good old run option to start menu

When we install a brand new Windows 7 or Vista we find that there is no run option in the start menu.
However  , It can be added using one of following ways :

The easy way :
* Press Windows Key + R to open run menu .
* type : gpedit.msc
* The Group Policy Editor opens up as Following image 
* Under user configuration move to : Administrative Templates \ Start Menu and Taskbar.
* Scroll Down to: Add the run command to start menu
 * Double Click on it. The following dialog appears.
 *  Choose Enabled. Click Apply then OK .
 * You see that the run Menu appears in start menu .
Happy Running................
Have Fun

Friday, May 7, 2010

System Tweak : Changing a drive/pendrive icon in Windows OS

There is a way to change the drive or pendrive icon such that it appears the same on every computer :

Here We Go :

1)Take any icon file (*.ico).
2)Suppose it has name f.ico
3)Copy the icon into the pendrive or hard disk partition.
4)Open Notepad and type as follows :
[autorun]
icon=f.ico,0
Note: In above replace f.ico with your icon files name.

5)Save the above file as "autorun.inf"(Note : File should have autorun as name and inf as extension).
6)Copy this file directly into ur Hard drive and pendrive.

7)Now you may hide the icon and autorun.inf file.
8)In case of pendrive eject and reinsert it & For Hard Drive Restart ur pc.
See the result :

Thursday, May 6, 2010

J2ME : Getting softkey events in Canvas in MIDlet

Sometimes it gets an irritating experience when a MIDlet does not take keyEvents for softkeys.

Here is how to get the same :
i)Your canvas should not have any commands & should no implement a Command Listener.
ii)You should make the canvas in fullscreen mode before doing anything else.

Here Is The Code :
import javax.microedition.lcdui.*;
public class SoftK extends Canvas
{
//Constructor
public SoftK()
{
 this.setFullScreenMode(true);
//Other code here
}
public void paint(Graphics g)
{
//paint code here
}
public void keyPressed(int keyCode)
{
if(keyCode==-7)
{
//Right SoftKey
}
if(keyCode==-6)
{
//LeftSoftKey
}
}
}

Add Items To Vista and windows7 context menu : Easy Way

 FContext Tweaker is a simple application, written in C# designed to help you edit the context menu in Vista and  7.
Simply Choose the program , icon and text and thatz all to do ... Have Fun








Change Windows 7 Logon Screen : Easy Way

A utility Se7en Logon Changer v1.1 allows Win 7 users to change logon screen.
Download it from here .
Its very easy to use just choose a jpg file and it will do rest for u...








It got Softpedia's Award

Have fun........