gettingstarted
[Top] [All Lists]

Can't seem to find files using locate

To: "Getting Started @RB" <gettingstarted at lists dot realsoftware dot com>
Subject: Can't seem to find files using locate
From: Brian Heibert <bheibert at verizon dot net>
Date: Sat, 31 Jul 2004 19:29:25 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
I have a find file project that I am using the shell to do it here's the
code:

  Dim s as shell
  Dim actualtexttolookfor as string
  s=New shell
  #if TargetCarbon or TargetLinux and Not(TargetPPC) and Not(TargetWin32)
then
    actualtexttolookfor = replaceall(""+searchfor.text," ","+")
    
    s.execute "locate " + actualtexttolookfor
  #else
    MSGBOX "This doesn't run on Windows or MacOS Classic!"
  #endif
  resultpath.text = s.result


But for some reason when I  enter a file name nothing happens I don't get
any results and I know I have that file on my computer I am using a file to
test the search program.  What gives?

Brian

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>