Accessing files on remote windows servers from EmacsW32
Facts - Editor: emacs
Friday, 05 December 2008 19:55

With EmacsW32 it is possible to edit files on a remote windows system. There are two ways to do this:

  • First create a connection to the remote machine using a mapped drive. Suppose you choose drive letter Z. Then you can use this drive letter from emacs in the minibuffer of the find-file command (Ctrl-x Ctrl-f) just as a drive letter resembling a disk drive on your local system.
  • Create a connection in the address section of Windows Explorer, using "\\remotehost\c$" for the c-drive of the system "remotehost". Then invoke find-file from emacs (Ctrl-x Ctrl-f). Then enter "//remotehost/c$$/...yourpath..." in the emacs minibuffer. Note that you have to use two dollar signs for the drive letter in the minibuffer of the emacs find-file command.

The advantage of the second method is that you don't need to map an extra drives to access other disk drives on the remote system: just enter them as "//remotehost/d$$/...." in the emacs find-file minibuffer.