Computing.Net > Forums > Programming > Trying to find file in DOS through

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Trying to find file in DOS through

Reply to Message Icon

Name: Jay09
Date: April 14, 2009 at 23:35:49 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: ghostdog
Date: April 15, 2009 at 00:21:18 Pacific
Reply:

you would want to use things like telnet, or SSH to search for files remotely.

Unix Win32 tools | Gawk for Windows


0

Response Number 2
Name: Mechanix2Go
Date: April 15, 2009 at 00:49:11 Pacific
Reply:

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


0

Response Number 3
Name: ghostdog
Date: April 15, 2009 at 02:01:44 Pacific
Reply:

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


0

Response Number 4
Name: Mechanix2Go
Date: April 15, 2009 at 02:23:08 Pacific
Reply:

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


0

Response Number 5
Name: ghostdog
Date: April 15, 2009 at 02:44:19 Pacific
Reply:

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


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Trying to find file in DOS through

Batch file to delete files in a dir www.computing.net/answers/programming/batch-file-to-delete-files-in-a-dir/14599.html

Replacing file in Dos www.computing.net/answers/programming/replacing-file-in-dos/17225.html

batch to count files in DIR then send email www.computing.net/answers/programming/batch-to-count-files-in-dir-then-send-email/19628.html