当前位置:网站首页>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 .
边栏推荐
- 结合GHS MULTI使用瑞萨E1仿真器实现对瑞萨RH850单片机的仿真调试
- Good news! Ruiyun technology was awarded the member unit of 5g integrated application special committee of "sailing on the sea"
- 如何将exe文件添加到开机启动
- BiSeNet v1
- 国际权威认可!OceanBase入选Forrester Translytical数据平台报告
- “Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0”问题解决
- 一次备库的坏块的修复过程
- This is a quick look-up table of machine & deep learning code
- 中信证券低佣金开户免5是真的吗,安全吗
- Use of C language cjson Library
猜你喜欢

Detailed introduction and application of GaN (comprehensive and complete)

基于Caffe ResNet-50网络实现图片分类(仅推理)的实验复现

Auditing related notes

Save the image with gaussdb (for redis), and the recommended business can easily reduce the cost by 60%

MySQL 索引优化全攻略

结合GHS MULTI使用瑞萨E1仿真器实现对瑞萨RH850单片机的仿真调试

Cloud VR: the next step of virtual reality specialization

Update 3dcat real time cloud rendering V2.1.2 release

用GaussDB(for Redis)存画像,推荐业务轻松降本60%

408 Chapter 2 linear table
随机推荐
如何创建一个有效的帮助文档?
MATLAB中join函数使用
408 Chapter 2 linear table
pd.melt() vs reshape2::melt()
Safe operation instructions for oscilloscope probe that must be read by engineers
Use of join function in MATLAB
Tensor to img && imge to tensor (pytorch的tensor转换)
使用sqldeveloper连接mysql
Imx6 rtl8189ftv migration
nodejs 简单例子程序之express
There was an error while marking a file for deletion
Remember those two sentences
Update 3dcat real time cloud rendering V2.1.2 release
Construction of Huffman tree
Tkinter GUI address book management system
Oracle导入出错:IMP-00038: 无法转换为环境字符集句柄
1--- electronic physical cognition
Flexible current probe selection guide
Why the future of digitalization depends on 3D real-time rendering
国际权威认可!OceanBase入选Forrester Translytical数据平台报告