each disk has its own concept of the current directory. CD changes the current directory, and if you specify a drive letter, it will change the current directory of that drive, and not (by default) the current drive.
If you want to change the current directory of another drive and switch the current drive to this drive, use /d :
CD /d D:\
source share