Trying to find file in DOS through

April 14, 2009 at 23:35:49
Specs: Windows XP
Need help locating a file through DOS using FTP. There are so many directories until i have exhausted all possibles. Please help with a command or batch that will search the UNIX server for either the latest created files or a partial name of the file.

See More: Trying to find file in DOS through

Report •


#1
April 15, 2009 at 00:21:18
you would want to use things like telnet, or SSH to search for files remotely.

Unix Win32 tools | Gawk for Windows


Report •

#2
April 15, 2009 at 00:49:11
This will put the names into a file called ftplist:

=============================
@echo off & setlocal enabledelayedexpansion

> s.ftp echo o ftp.nai.com
>> s.ftp echo anonymous
>> s.ftp echo anonymous
>> s.ftp echo ls -alR
>> s.ftp echo bye

ftp -s:s.ftp > ftplist


=====================================
If at first you don't succeed, you're about average.

M2


Report •

#3
April 15, 2009 at 02:01:44
OP wants to "search" directories. I don't think simply listing out the current directory is enough. anyway, don't think FTP is the right method to use.

Unix Win32 tools | Gawk for Windows


Report •

Related Solutions

#4
April 15, 2009 at 02:23:08
Call me crazy but doesn't ls -alR get ALL the file names?

And most public access sites won't allow telnet or rlogin without user and pass.


=====================================
If at first you don't succeed, you're about average.

M2


Report •

#5
April 15, 2009 at 02:44:19
yes it does. if you are talking about searching the filenames AFTER the FTP, then i guess you can use this method. I am talking about searching the files when inside the FTP session, where OP can use grep etc to search for file names. Even better, if only he can use find command. That's why i propose telnet/SSH instead of FTP.

Unix Win32 tools | Gawk for Windows


Report •


Ask Question