Step 1: Copy everything regarding D3 from C:\program files to H:\program files
Step 2: Since we copied everything off of the C drive, delete the program from C:\program files
Step 3: Create a Symbolic link using a directory junction. This creates an alias between the 2 directories. So, if the blizzard launcher is looking for C:\program files\d3, it will be forwarded to h:\program files\d3. This step is important so that other applications do not have to look in the new place for the files.
xcopy is able to copy folder hierarchies and copy is intended for just files (usually).
So, what you have here is:
xcopy
/E (Copy folders and subfolders)
/V (Verify that the new files were written correctly)
/I (If in doubt always assume the destination is a folder, e.g. when the destination does not exist.)
/F (Display full source and destination file names while copying.)
/Y (Suppress prompt to confirm overwriting a file.)
from c:\program files\d3
to h:\program files\d3
_____
cmd (Start a new CMD shell and (optionally) run a command/executable program.)
/C (Run Command and then terminate)
rd (remove directory (delete the folder we are about to specify))
/S (Delete all files and subfolders in addition to the folder itself. Use this to remove an entire folder tree.)
/Q (Quiet - do not display Y/N confirmation)
for the old game directory c:\program files\d3
______
cmd (Start a new CMD shell and (optionally) run a command/executable program.)
/C (Run Command and then terminate)
mklink (Create a symbolic link to a directory or a file, or create a hard file link or directory junction.)
/J (Create a Directory Junction.)
between C:\program files\d3 and h:\program files\d3