0

I can change every file or directory under the same C:\ or E:.

But I find I cannot change the file C:/User/**/myfile.cpp to E:/code/yourfile.cpp.

How can I change the file buffer between C: and E: on Windows?

linrongbin
  • 2,967
  • 6
  • 31
  • 59
  • What problem are you having exactly? I just tried opening and saving files across drives on an unmodified Emacs install, and I didn't have any problem. As an aside, I have a suspicion that your question is off-topic for Stackoverflow, and you may want to move it to [the Emacs stackexchange](http://emacs.stackexchange.com/) or to [Superuser](http://superuser.com/). – Aaron Harris Oct 04 '15 at 15:19
  • `But if I find I cannot change . . .` does not convey anything meaningful because it is not proper English -- consider better explaining what that sentence fragment is supposed to mean. For example, does that mean you have an open file-visiting buffer and you want to rename/move it from c:/myfile.cpp to e:/myfile.cpp? – lawlist Oct 04 '15 at 17:27
  • 1
    Possible duplicate of [How do I rename an open file in Emacs?](http://stackoverflow.com/questions/384284/how-do-i-rename-an-open-file-in-emacs) I use a modified version of one of the answers in the aforementioned thread, and I just tested it on a current version of Emacs trunk master branch built on Windows 32-bit with MinGW and ezwinports -- I had no problems renaming an open file-visiting buffer to a different drive. – lawlist Oct 04 '15 at 17:38
  • Sorry for all, English is my second language, so there may be some errors. What I exactly mean is, When I start my Emacs, I'm in C:/User/**/ ( ~/ ), But I cannot visit a file in E:/myfile.txt. – linrongbin Oct 05 '15 at 00:39
  • Does this work?: `M-x find-file RET E:/myfile.txt RET` – lawlist Oct 05 '15 at 15:51

0 Answers0