Lets assume you need to move the exchange database and logs files to different drive because of lack of space. The easiest way is with Powershell using Move-DatabasePath :
To Move Just The Transaction Logs execute :
Move-DatabasePath -Identity DATABASE_NAME -LogFolderPath Full_Path
Normally this command will automatically dismount the database, move the logs for the folder of you choice and re-mount again . to move the database files altogether, execute :
Move-DatabasePath DATABASE_NAME -EdbFilePath "Full_Path_To_DATABASE_NAME.edb" -LogFolderPath Full_Path
For example :