当前位置:网站首页>Insufficient space on Disk C mklink solves vscode expansion migration to other disks
Insufficient space on Disk C mklink solves vscode expansion migration to other disks
2022-07-25 18:23:00 【JackieZhengChina】
First step
take C disc C:\Users\JackieZheng\.vscode Cut the folder to D:\vscode In the middle
The second step
Run as administrator cmd, Execute the following command , Establish symbolic links under the identity of administrator cmd Enter the following command
mklink /D "C:\Users\JackieZheng\.vscode" "D:\vscode\.vscode"
There is a space between two double quotation marks
Similarly, the migration of larger software can be achieved through mklink Establish symbolic links
attach :mklink Usage of
mklink yes Windows The next one is similar to linux Next In The order of , Its function is to NTFS Create links to files or directories in the file system ( Similar to desktop shortcuts ). If it is used, it will play a very big role , It can not only help us save a lot of time , And we can reinstall the system without losing user files .
Mklink Command details
Windows Under the mklink Command can establish different forms of file or directory links by specifying parameters , Divided into hard links (hard link)、 A symbolic link (symbolic link) And soft links ( join )(junction) Three .
1. A symbolic link (symbolic link)
Creating a soft link is equivalent to creating a file ( Or directory ), This file ( Or directory ) Used to point to other files ( Or directory ), and win The shortcut to is somewhat similar . Delete this link , For the original file ( Or directory ) No image, no effect ; And when you delete the original file ( Or directory ) when , If you open the link again, you will be prompted “ Location not available ”.
2. Soft link ( join )(junction)
The function is basically similar to symbolic links . The difference lies in , The soft link will automatically reference the original file when it is established ( Or directory ) The absolute path of , Symbolic links allow references to relative paths .
3. Hard links (hard link)
Establishing a hard link is equivalent to establishing an alias for the file , For example 1.TXT Created the name 2.TXT A hard link , If you use Notepad for 1.TXT Make changes , be 2.TXT Also modified at the same time , If delete 1.TXT, be 2.TXT There is still a , And the content is similar to 1.TXT equally .
Please note that when establishing links :
1、 Establish file or directory links NTFS file system , Symbol ( soft ) Links can be established across file systems ;
2、 Hard links can only be used for files , Cannot be used for directory , Symbol ( soft ) Links can establish links for directories ;
3、 Hard links can only establish files in the same partition to point to ;
4、 Hard links do not allow links to empty files , Symbol ( soft ) Links can .
Mklink Parameter definition of
No parameter assignment : Establish symbolic links to files . No parameter is specified by default , Establish symbolic links to documents , Deleting the linked file will not affect the source file ,
/d: Establish symbolic links of the directory symbolic links (symbolic link)
/j: Establish soft links to directories ( join )(junction)
/h: Establish hard links to files (hard link)
Command format :MKLINK [[/D] | [/H] | [/J]] Link Target
Last , As for deleting established links , Use the same as deleting files ”DEL” command .
边栏推荐
- ORB_ Slam3 recurrence - Part I
- OV7725 yuv 640*[email protected] 配置文件
- Combined with GHS multi, use Reza E1 simulator to realize the simulation and debugging of Reza rh850 single chip microcomputer
- List conversion problem
- Number two 2010 real test site
- The new version of 3dcat v2.1.3 has been released. You can't miss these three function updates!
- Imx6 rtl8189ftv migration
- SQL那些事
- "Deprecated gradle features were used in this build, making it incompatible with gradle 6.0" problem solving
- CH582 BLE 5.0 使用 LE Coded 广播和连接
猜你喜欢
随机推荐
这是一张机器&深度学习代码速查表
Save the image with gaussdb (for redis), and the recommended business can easily reduce the cost by 60%
Circulaindicator component, which makes the indicator style more diversified
BiSeNet v1
Taishan Office Technology Lecture: conversion relations of inch, centimeter, pound, pika, Ti, line, word line and pixel
Why the future of digitalization depends on 3D real-time rendering
c语言---25 扫雷游戏
Related operations of figure
数二2010真题考点
STM8S003F3 内部flash调试
nodejs 简单例子程序之express
工程师必看的示波器探头安全使用说明书
7. 依赖注入
SQL optimizer parsing | youth training camp notes
C盘空间不够 mklink解决VScode扩展迁移到其他盘
使用sqldeveloper连接mysql
pd.melt() vs reshape2::melt()
NC15 求二叉树的层序遍历
JZ32 从上往下打印二叉树
Tensor to img && imge to tensor (pytorch的tensor转换)








