Author Topic: searching file...  (Read 2233 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
searching file...
« on: January 18, 2006, 09:56:57 PM »
Hi all...

Is it possible to search a file via LISP or VLISP
including subdirectory ?
Keep smile...

Andrea

  • Water Moccasin
  • Posts: 2372
Re: searching file...
« Reply #1 on: January 18, 2006, 11:01:03 PM »
for now..i have this...


Code: [Select]
;| Recherche de fichier .
Note: the hard disk drive must exist and must hace 2 points like this  -->  c: .
|;

(defun c:recherche_fichier (/ fichier lecteur)
  (setq fichier  (strcase (getstring "File name to search : "))
  lecteur (getstring "Hard drive : ")
  )
(command "shell" (strcat "dir " lecteur "\\" fichier "/on /s /b > " lecteur "\\dir.txt"))
(startapp "notepad.exe" (strcat lecteur "\\dir.txt"))
)
Keep smile...