# Use ImDisk to create a virtual disk
# The following command creates a 4 GB virtual disk and mounts it as M: drive
imdisk -a -s 4G -m M: -p "/fs:ntfs /q /y"rd /q /s "C:\Users\Administrator\AppData\Local\Microsoft\Edge\User Data\Default\Cache"rd /q /s "C:\Users\Administrator\AppData\Local\Microsoft\Edge\User Data\Default\Code Cache"md M:\Edge_Cache\
md M:\Edge_CodeCache\
mklink /D "C:\Users\Administrator\AppData\Local\Microsoft\Edge\User Data\Default\Cache""M:\Edge_Cache\"mklink /D "C:\Users\Administrator\AppData\Local\Microsoft\Edge\User Data\Default\Code Cache""M:\Edge_CodeCache\"# Restore browser cache to default location
rd"C:\Users\Administrator\AppData\Local\Microsoft\Edge\User Data\Default\Cache"rd"C:\Users\Administrator\AppData\Local\Microsoft\Edge\User Data\Default\Code Cache"md"C:\Users\Administrator\AppData\Local\Microsoft\Edge\User Data\Default\Cache"md"C:\Users\Administrator\AppData\Local\Microsoft\Edge\User Data\Default\Code Cache"# Unmount the virtual disk
# To remove the virtual disk, use the following command
imdisk -D -m M: