Concept of Person Accout and Business Account in Salesforce.com

Salesforce.com has of two types of Accounts :-

  1. Business Account or normally termed as an Account 
  2. Person Account
The basic difference between these two types of accounts is the business model on which they are based. One needs to understand the business model of the Organization and decide which type of account will meets it requirements. Business Account will work in the B2B Industry i.e. Business to Business whereas Person Account will work in the B2C Industry i.e. Business to Consumer.
 
In Person Account i.e. Business to Consumer Industry there is no concept of Contacts as you are dealing with one individual who is termed as an Account. Example of B2C is loan taken by an individual from a company. 
 
For enabling person accounts, a feature request needs to be raised with salesforce.com and they do the need full. Please remember Person Account once enabled can not be disabled, but they can be used in parallel with the Business Accounts. 
 
The change that happens in your Organization on the enabling of person account is that a new record type is created on account with the name as person account. In Person account record type contacts related list on account will be missing whereas in case of business account record type contacts related list will be present.
 
For both scenarios the contacts and accounts will be saved as two different records in the database. For Person Accounts the contact information will come from the standard account fields which are internally holding the contact information. This is the reason person account record still occupies 4 KB of data; 2 KB of space for account and 2 KB of space for the contact record. For business Account we have no such issues as two separate placeholders for keeping the account and contact information.

Comment All the code of a file

@echo off &setlocal
Set "cc=//"
set /p "search=TextToReplace:"
set /p "replace=TextToReplaceWith:"
set  "IOfile=TextSearch.java"
(for /f "delims=" %%i in (%IOfile%) do (
    set "line=%%i"
    setlocal enabledelayedexpansion
    echo(%cc%!line!
    endlocal
))>C:\Users\Krishna\Desktop\CMD\TextSearch_commented.java

Replace specified texts in a file using CMD

Save this .bat Files:
replaceprocess.bat
=================================

@echo off &setlocal
set /p "search=TextToReplace:"
set /p "replace=TextToReplaceWith:"
(for /f "delims=" %%i in (TextSearch.java) do (
    set "line=%%i"
    setlocal enabledelayedexpansion
    set "line=!line:%search%=%replace%!"
    echo(!line!
    endlocal
))>C:\Users\Krishna\Desktop\CMD\TextSearch_Modified.java

==================================

Run above batch file as:

C:\Users\Krishna\Desktop\CMD>call replaceprocess.bat
TextToReplace:public
TextToReplaceWith:private


List all Sub Folders|| Files into Excel of a Folder

Suppose We have a folder names MyFiles that contains thousends folders and we want to list down all the folder.So it is a bit time taking prcess to list all the folders into excel.
But there is 2 Sec which list all in seconds.
Use this Command
C:\Users\Krishna\Downloads\src\aura>dir /a /b /o >C:\Users\Krishna\Desktop\CMD\f.xls
OR
C:\Users\Krishna\Desktop\CMD>dir /a /b /o *.txt
OR
C:\Users\Krishna\Desktop\CMD>dir /a /b /o *.*

where:


/ADisplays files with specified attributes.
attributes
D DirectoriesR Read-only files
H Hidden filesA Files ready for archiving
S System filesI Not content indexed files
L Reparse Points- Prefix meaning not
  
/BUses bare format (no heading information or summary).
/CDisplay the thousand separator in file sizes, which is the default setting. Use /-C to disable display of separator.
/DSame as wide but files are list sorted by column.
/LUses lowercase.
/NNew long list format where file names are on the far right.
/OList by files in sorted order.
sortorderN By name (alphabetic) S By size (smallest first) E By extension (alphabetic) D By date/time (oldest first) G Group directories first - Prefix to reverse order
/PPauses after each screenful of information.
/QDisplay the owner of the file.
/RDisplay alternate data streams of the file.
/SDisplays files in specified directory and all subdirectories.
/TControl what time field displayed or used for sorting
timefieldC Creation
A Last Access
W Last Written
/WUses wide list format.
/XDisplays the short names generated for non-8dot3 file names. The format is that of /N with the short name inserted before the long name. If no short name is present, blanks are displayed in its place.

DOS Programming

@echo off
rem demo all arithmetic operator

rem set /p is used for prompt reading on variable
set /p val1="Enter first value :"
set /p val2="Enter second value :"

echo ********* arithmetic operator demo ************
rem set /a is used for arithmetic calculation
set /a res=%val1%+%val2%
echo Sum of %val1% and %val2% is %res%

set /a res=%val1%-%val2%
echo Subtraction of %val1% and %val2% is %res%

set /a res=%val1%*%val2%
echo Multiplication of %val1% and %val2% is %res%

set /a res=%val1%/%val2%
echo Division of %val1% and %val2% is %res%

set /a res=%val1%%%val2%
echo Modulo division of %val1% and %val2% is %res%

echo ********* relational operator demo @@ geq,gtr,equ,lss,leq @@************
if %val1% gtr %val2% (
echo %val1% is greater than %val2%
) else (
if %val1% lss 10 (
echo %val1% is even less than 10
) else (
echo %val1% is less than %val2%
)
)

=======================================================

@echo off
rem check for leap year using if else
set /p yval= "Enter year value :"
set /a res=%yval%%%4
if %res%==0 (
echo "%yval% is a leap year"
) else (
echo "%yval% is not a leap year"
)

rem check if file is available or not
set filename=savecustomer1.sql
if exist %filename% (
echo File exist
) else (
echo File does not exist
)

rem check exit status of last running command
DEL test.txt
if %ERRORLEVEL%==1 (
echo last operation was successful
) else (
echo problem in last operation
)

===========================================================

@echo off
echo *****Simple numeric for loop*****
FOR /L %%G IN (2,1,5) DO echo %%G

echo *****for loop working on collection*****
FOR %%G IN (Sun Mon Tue Wed Thur Fri Sat) DO echo %%G

echo *****for loop /R reading files of current directory recursively *****
For /R %%G in (*.*) do Echo "%%G"

echo ***** looping file contents @@@ Reading comma separated file @@@@******

FOR /F "tokens=1,2,3 delims=," %%G IN (persondata.txt) DO @echo %%G %%H %%I

==============================================================


CMD Commands || DOS 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.
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.

For more information on tools see the command-line reference in the online help.

Counters