Hi,
I use winecfg to map a drive letter to a path, e.g. K:\ --> /mnt/usbstick
Is a command that could do the same thing?
Thanks.
Map a drive letter from command line
Re: Map a drive letter from command line
The virtual harddrives are stored in ~/.wine/dosdevices as a symbolic link
You can create a symbolic link with
Code: Select all
~/.wine/dosdevices$ ls -asl
4 drwxr-xr-x 2 jkfloris jkfloris 4096 19 jan 09:04 .
4 drwxr-xr-x 4 jkfloris jkfloris 4096 19 jan 09:04 ..
0 lrwxrwxrwx 1 jkfloris jkfloris 10 8 mrt 2020 c: -> ../drive_c
0 lrwxrwxrwx 1 jkfloris jkfloris 10 19 jan 09:04 com1 -> /dev/ttyS0
0 lrwxrwxrwx 1 jkfloris jkfloris 10 19 jan 09:04 com2 -> /dev/ttyS1
0 lrwxrwxrwx 1 jkfloris jkfloris 10 19 jan 09:04 com3 -> /dev/ttyS2
0 lrwxrwxrwx 1 jkfloris jkfloris 10 19 jan 09:04 com4 -> /dev/ttyS3
0 lrwxrwxrwx 1 jkfloris jkfloris 1 8 mrt 2020 z: -> /
Code: Select all
ln -s /mnt/usbstick k:
Re: Map a drive letter from command line
Excellent, thanks!