It is impossible to be compatible. You can try to use ext2fsd to mount the ext partition in Windows, copy the soft link file inside and use hex editor to view the content, and analyze the file structure to parse it. Or try msys Can readlink be read in +mingw, or can the win10 preview version be installed with the linux subsystem (ubuntu), give it a try?
What you should consider is to first mount the Linux partition under Windows, and then try to use shortcuts or mklink to create a pointing connection from the Linux partition, instead of considering whether copying the soft connection that has been created under Linux can be compatible under Windows . Theoretically, soft links overcome the compatibility issues of hard links on different file systems. We can create soft links on different file partitions or even network file systems. However, considering the differences in the operating systems of Windows and Linux, you Soft links created under Linux are not necessarily guaranteed to be correctly recognized and referenced under Windows. So, don’t think about copying. If you really need it, try mounting the partition directly, and then use mklink to create a soft connection from the Linux partition to Windows!
I just recently saw that Git for Windows has added soft link support. You can think of git clone as a complex file copy.
Under linux:
Then submit it to github, and then git clone it with administrator rights under windows:
Result:
Writing content to link-to-readme.md will appear in readme.md (using powershell):
Mode contains l:
So it is possible to copy soft links, the general process is:
Record the information of the soft link under Linux when copying, for example, this is a soft link and points to that file
When pasting to windows, use the Windows Symbolic link to reconstruct the file based on the saved soft link information
A little addition: If you only copy the soft link and not the file it points to, or the soft link is an absolute path, this method will not work.
It is impossible to be compatible.
You can try to use ext2fsd to mount the ext partition in Windows, copy the soft link file inside and use hex editor to view the content, and analyze the file structure to parse it.
Or try msys Can readlink be read in +mingw,
or can the win10 preview version be installed with the linux subsystem (ubuntu), give it a try?
What you should consider is to first mount the Linux partition under Windows, and then try to use shortcuts or mklink to create a pointing connection from the Linux partition, instead of considering whether copying the soft connection that has been created under Linux can be compatible under Windows .
Theoretically, soft links overcome the compatibility issues of hard links on different file systems. We can create soft links on different file partitions or even network file systems. However, considering the differences in the operating systems of Windows and Linux, you Soft links created under Linux are not necessarily guaranteed to be correctly recognized and referenced under Windows. So, don’t think about copying. If you really need it, try mounting the partition directly, and then use mklink to create a soft connection from the Linux partition to Windows!