Hello, I think by default Windows tries to treat C:\ as ~ when it isn't explicitly defined beforehand.
If you evaluate the following, does it give the same Windows path as to the actual folder? #+begin_src emacs-lisp (expand-file-name "~/Dropbox/MobileOrg") #+end_src If not you'll want to try one of the following: 1) Set the Windows Environment Variable "HOME" to the desired location (C:\Users\<username> for example) 2) Move your Dropbox folder to the location shown by the above code snippet, it should then recognize it. 3) Replace =~/Dropbox/= in your configuration with the full path to the Dropbox folder. Regards, Jonathan On Tue, May 29, 2012 at 3:17 AM, Ian Barton <li...@wilkesley.net> wrote: > On 28/05/12 15:45, Orlando wrote: >> >> Ian Barton<lists<at> wilkesley.net> writes: >> >>> >>> On 26/05/12 20:00, Orlando López D. wrote: >>>> >>>> I configured emacs org-mode on a Mac, working properly, having my org >>>> files and MobileOrg file within my DropBox folder ( ~/DropBox/ ). >>>> >>>> Now, I will like to get my emacs setup working properly on my Windows >>>> box. I have been able to get it working in terms of reading my .emacs >>>> file and emacs.d folder, shared through simlink config. >>>> >>>> Everything seems to be working properly, except that when I want to >>>> execute org-mobile-pull or org-mobile-push on Windows, I get the >>>> following error: "Variable `org-mobile-directory` must point to an >>>> existing directory " >>>> >>>> The problem seems to be that emacs isn't configured to read or point to >>>> the org-mobile directory , per the paths set in .emacs (eg. = >>>> "~/DropBox/ ..........."). >>>> >>> >>> Running on Linux I found I needed the following in my .emacs: >>> >>> (setq org-directory "~/dropbox/org/org_files") >>> (setq org-mobile-directory "~/dropbox/MobileOrg") >>> (setq org-mobile-inbox-for-pull >>> "~/dropbox/org/org_files/tasks/org_inbox.org") >>> >>> Have you got all these set? Somewhere there is a possible bug where a >>> misleading error message gets displayed referring to >>> org-mobile-directory, when it means org-directory. I keep meaning to try >>> and track it down. >>> >>> Ian. >>> >>> >> >> >> Ian, thanks for your e-mail. >> >> I have the following configuration, which doesn´t seems to defer in >> concept with >> yours: >> >> ;; Set to the location of your Org files on your local system >> (setq org-directory "~/DropBox/org") >> ;; Set to the name of the file where new notes will be stored >> (setq org-mobile-inbox-for-pull "~/DropBox/org/flagged.org") >> ;; Set to<your Dropbox root directory>/MobileOrg. >> (setq org-mobile-directory "~/Dropbox/MobileOrg") >> >> Which could be the reason why Windows isn´t locating the path to the >> existing >> directory? Do I need to have any specific configuration on .emacs for Mac >> and >> for Windows? >> > > Orlando, > > I haven't used emacs on Windows for a long time. However, I don't know if > Windows understands the concept of "~/", unless there is some emacs > configuration that allows this. Have you tried setting the paths explicitly > e.g. (setq org-directory "C:/DropBox/org") > > Ian. > >