help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

find a file and put it in a window


From: Jasen
Subject: find a file and put it in a window
Date: Sun, 25 Jul 2004 19:28:38 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)

Hi all,

Would someone please advise me how can I resolve this problem:

I would like to find a file in a directory through a shell command:

;; Get the newest version of file
(setq file (string (shell command "ls -tc C:\\dir1\\dir2\\dir3/file*.txt | head -1")))

;; Put the file is a windows
  (find-file-other-window file)

The problem is that either Emacs or Windows can't interpret the full
file name along with directory path correctly and I don't know how to
fix it?

Thanks,
Austin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]