rem My Windows PC has 250GB SSD for C: and 1TB HDD for D:
rem Drive C: was filling up so I made this Windows .BAT file
rem to move Daedalus chain folder from drive C: to drive D:
rem It uses ROBOCOPY to MOVE files and MKLINK /D to create a directory symbolic link.
rem Replace <UserName> with your user name before executing.
rem Ensure sufficient space on D: before executing.
rem Ensure Daedalus is not running.
rem Execute from Admin command prompt.
DIR /S "C:\Users\<UserName>\AppData\Roaming\Daedalus Mainnet\chain"
@PAUSE
MD D:\DaedalusChain
@PAUSE
ROBOCOPY "C:\Users\<UserName>\AppData\Roaming\Daedalus Mainnet\chain" D:\DaedalusChain /COPYALL /E /MOVE
@PAUSE
DIR /S "C:\Users\<UserName>\AppData\Roaming\Daedalus Mainnet\chain"
@PAUSE
DIR /S D:\DaedalusChain
@PAUSE
MKLINK /D "C:\Users\<UserName>\AppData\Roaming\Daedalus Mainnet\chain" D:\DaedalusChain
@PAUSE
DIR /S "C:\Users\<UserName>\AppData\Roaming\Daedalus Mainnet\chain"
@PAUSE
@ECHO Move complete.
2 Likes