On 12/02/2010 12:17, prakash jp wrote:
Hi all,
can any of u help to search a file say abc.txt in entire c drive (windows)
and print the path/s stating such a files presence.
This sounds rather like homework...
Have a look at os.walk
TJG
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
can any of u help to search a file say abc.txt in entire c drive (windows)
and print the path/s stating such a files presence.
Thanks in advance
Regards
Prakash
--
http://mail.python.org/mailman/listinfo/python-list
can any of u help to search a file say abc.txt in entire c drive (windows)
and print the path/s stating such a files presence.
Well, you can just do it from DOS:
c:\ dir /s/b/a abc.txt
Just use os.walk() and check the list of files returned at each
directory-level iteration.
ROOT =
On 12 February 2010 12:17, prakash jp prakash.st...@gmail.com wrote:
can any of u help to search a file say abc.txt in entire c drive (windows)
and print the path/s stating such a files presence.
http://code.activestate.com/recipes/499305/ might be a useful start.
--
Cheers,
Simon B.
--
Thank u Tim Case,
all,
Also how to run the standalone generated from script taking unc path names
to account
regards
Prakash
On Fri, Feb 12, 2010 at 6:31 PM, Tim Chase python.l...@tim.thechases.comwrote:
can any of u help to search a file say abc.txt in entire c drive
(windows)
and print