FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 8th, 2012, 03:18 AM
jaidev.anand jaidev.anand is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 37 jaidev.anand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 45 m 28 sec
Reputation Power: 1
Downloading Specific Files from FTP

Hi All,

I need some help to extract a specific number of files from an FTP link. The files are in wav format, and get stored on an FTP link.

All I need is to be able to download a specific number of files using the unique number in each of the files.

There are thousands of recordings that get saved on the link each day, and I need to extract only about 150-300 out of that lot.

Being a non-technical person, to date at this stage I'm downloading each of them manually that takes good 2-3 hours.

I would really appreciate, If someone could help me with a easy way, that I can include and save time.

Look forward to your expertise.

Thanks,
Jai

Reply With Quote
  #2  
Old October 8th, 2012, 03:47 PM
spacebar208's Avatar
spacebar208 spacebar208 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: spaceBAR Central
Posts: 188 spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 9 h 5 m
Reputation Power: 41
Try using a FTP client( ex. FileZilla), that way you can just select the ones you want to download either individually or a block of them.

Reply With Quote
  #3  
Old October 8th, 2012, 06:50 PM
jaidev.anand jaidev.anand is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 37 jaidev.anand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 45 m 28 sec
Reputation Power: 1
Thanks for the insights.

So would It allow me to create a directory or sommmething using an xls file with all the IDs of the recordings (MP3 WAV files), and then just download them by right clicking on the directory folder etc...In otherwords is there a link that you could possibly direct mme too, which gives me a stepwise process of getting to the net result.

I'm a newbe so would need some additional help, and expertise to go about this. Appreciate you paitence and help on this one!

Thanks a ton in advance!

Thanks,
Jai

Reply With Quote
  #4  
Old October 8th, 2012, 08:26 PM
spacebar208's Avatar
spacebar208 spacebar208 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: spaceBAR Central
Posts: 188 spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 9 h 5 m
Reputation Power: 41
When you connect to the ftp server with the ftp client, it will list the files in the folder you choose and let you select one file, multiple files, or select a block of files and then you select download.

Reply With Quote
  #5  
Old October 8th, 2012, 09:01 PM
jaidev.anand jaidev.anand is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 37 jaidev.anand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 45 m 28 sec
Reputation Power: 1
Hmmmm....but, my question is how do I select multiple files. There are 10000 odd files in the respective date folder, and I need only about 300 of those. The files have a unique numeric code, so that's what I think I can use.

These are all MP3 WAV audio files.

Selecting mannualy by numbers would be a cumbersome/time consuming job. I spend about 3-5-hours just selecting and downloading them one-by-one.

Please help! Sorry for coming back again, but just want to make sure I'm on the right track with understanding how it is to be done!

Respect your paitence and appreciate your help!

Thanks much!

Reply With Quote
  #6  
Old October 8th, 2012, 09:50 PM
spacebar208's Avatar
spacebar208 spacebar208 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: spaceBAR Central
Posts: 188 spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 9 h 5 m
Reputation Power: 41
Post some(at least 10) of what the file names look like.
The reason I ask is maybe you can use the 'mget' ftp directive using the ftp client you currently use to download all files matching a certain pattern.

What is the operating system of the client machine and server(host you are connecting to)?

Reply With Quote
  #7  
Old October 10th, 2012, 01:46 PM
jaidev.anand jaidev.anand is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 37 jaidev.anand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 45 m 28 sec
Reputation Power: 1
Quote:
Originally Posted by spacebar208
Post some(at least 10) of what the file names look like.
The reason I ask is maybe you can use the 'mget' ftp directive using the ftp client you currently use to download all files matching a certain pattern.

What is the operating system of the client machine and server(host you are connecting to)?


Hi Sir,

Sorry for the delayed response!

Here's what the MP3 WAV format looks like:

1. 20121008-0650-36614191-in.wav
2. 20121008-0650-36614191-out.wav
3. 20121008-0844-36614525-in.wav
4. 20121008-0844-36614525-out.wav
5. 20121008-1027-36612209-in.wav
6. 20121008-1027-36612209-out.wav
7. 20121008-1056-36631178-in.wav
8. 20121008-1056-36631178-out.wav
9. 20121008-1253-36634929-out.wav
10. 20121008-1259-36646635-in.wav

The numeric 8 values starting with 3 (36646635, 36614191 etc) are the unique numbers for each of those...

I'll post the names of the Operating System of the client machine and the Server (host we are connecting to) shortly!

Thank you!

Reply With Quote
  #8  
Old October 10th, 2012, 03:30 PM
spacebar208's Avatar
spacebar208 spacebar208 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: spaceBAR Central
Posts: 188 spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 9 h 5 m
Reputation Power: 41
If you are running the ftp command from you command line, you should be able to get all the file(s) with the 'mget' ftp command.
So after connecting, at the ftp prompt, enter these commands:

Code:
prompt
mget 20121008-*-3*.*


The prompt command will turn off prompting(i.e. will not ask you for each file if you want to download it) and the mget command will download ALL file(s) matching the file name pattern.
Code:
20121008-0650-36614191-in.wav
20121008-0650-36614191-out.wav
20121008-0844-36614525-in.wav
20121008-0844-36614525-out.wav
20121008-1027-36612209-in.wav
20121008-1027-36612209-out.wav
20121008-1056-36631178-in.wav
20121008-1056-36631178-out.wav
20121008-1253-36634929-out.wav
20121008-1259-36646635-in.wav

Reply With Quote
  #9  
Old October 10th, 2012, 09:43 PM
jaidev.anand jaidev.anand is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 37 jaidev.anand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 45 m 28 sec
Reputation Power: 1
Quote:
Originally Posted by spacebar208
If you are running the ftp command from you command line, you should be able to get all the file(s) with the 'mget' ftp command.
So after connecting, at the ftp prompt, enter these commands:

Code:
prompt
mget 20121008-*-3*.*


The prompt command will turn off prompting(i.e. will not ask you for each file if you want to download it) and the mget command will download ALL file(s) matching the file name pattern.

Code:
20121008-0650-36614191-in.wav
20121008-0650-36614191-out.wav
20121008-0844-36614525-in.wav
20121008-0844-36614525-out.wav
20121008-1027-36612209-in.wav
20121008-1027-36612209-out.wav
20121008-1056-36631178-in.wav
20121008-1056-36631178-out.wav
20121008-1253-36634929-out.wav
20121008-1259-36646635-in.wav



Thank you Sir!

I'll try the above and come back with a "BIG THANK YOU". I'm sure your suggestion will work.

Just in case I face any challanges I'll seek more inputs from you. Hope that will be okay!

As I mentioned in my first trail, I'm not a techiqe, so might mess-up on something. I''m assuming that it will not affect the ftp, unless I delete anything or do something terribly wrong. Right? Just want to be safe than sorry later.

Really appreciate your guidance and help!

Thanks a ton!

Best regards,
Jai

Reply With Quote
  #10  
Old October 10th, 2012, 10:01 PM
jaidev.anand jaidev.anand is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 37 jaidev.anand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 45 m 28 sec
Reputation Power: 1
Quote:
Originally Posted by spacebar208
If you are running the ftp command from you command line, you should be able to get all the file(s) with the 'mget' ftp command.
So after connecting, at the ftp prompt, enter these commands:

Code:
prompt
mget 20121008-*-3*.*


The prompt command will turn off prompting(i.e. will not ask you for each file if you want to download it) and the mget command will download ALL file(s) matching the file name pattern.

Code:
20121008-0650-36614191-in.wav
20121008-0650-36614191-out.wav
20121008-0844-36614525-in.wav
20121008-0844-36614525-out.wav
20121008-1027-36612209-in.wav
20121008-1027-36612209-out.wav
20121008-1056-36631178-in.wav
20121008-1056-36631178-out.wav
20121008-1253-36634929-out.wav
20121008-1259-36646635-in.wav



One more thing Sir-

Just to calrify, I have 10000's of files with a similar name pattern. But different 8 digit unique number in a folder. This will enable me to download the ones I want to after enetring the file name pattern. In other words, if I follow the process, it will only download these 10 files out of the entire bulk and not all. Please confirm!

Thank you in advance!

Reply With Quote
  #11  
Old October 10th, 2012, 11:50 PM
spacebar208's Avatar
spacebar208 spacebar208 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: spaceBAR Central
Posts: 188 spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 9 h 5 m
Reputation Power: 41
Yes it will only download(i.e. get) the files that match the file name pattern you enter.
As a test, You can do it without using the 'prompt' command and it should prompt you validating you want to download the file and if it prompts you with a file name that should not be downloaded then you know you are not using the right pattern.
hth

Reply With Quote
  #12  
Old October 10th, 2012, 11:55 PM
jaidev.anand jaidev.anand is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 37 jaidev.anand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 45 m 28 sec
Reputation Power: 1
Superduper! I'll try it today, and get back to you with the outcome. You are the best sir!

Sorry, 1 more...what commands on DOS will be required to convert the unique 8 digit IDs into such a pattern. I ask this because, I have these IDs seprately on a spreadsheet. The other way, I think of is using the concatenate funcion in excel to arrive at this name pattern.

But, I'm sure DOS can do this for me, so thought of checking!

Sorry for being a painful student

Thank you!

Reply With Quote
  #13  
Old October 11th, 2012, 06:13 AM
jaidev.anand jaidev.anand is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 37 jaidev.anand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 45 m 28 sec
Reputation Power: 1
Dear Sir,

I thought it would be easy, but seems I'm really missing a trick or more. Though being a non techiqe this is quite understandable.

Don't know, if I'm asking too much, but since have no other option wanted to request / check if at all it would be possible for you to guide me with the procedure...

The FTP link I've starts with https://...

I can't get any further than the cmd...

Help please!

Reply With Quote
  #14  
Old October 11th, 2012, 04:57 PM
spacebar208's Avatar
spacebar208 spacebar208 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: spaceBAR Central
Posts: 188 spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 9 h 5 m
Reputation Power: 41
Are you using a browser(i.e. FireFox, Internet Explorer, etc.) to get to this link(https://...)?
And you then click on a file to download?

Reply With Quote
  #15  
Old October 11th, 2012, 05:23 PM
jaidev.anand jaidev.anand is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 37 jaidev.anand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 45 m 28 sec
Reputation Power: 1
Quote:
Originally Posted by spacebar208
Are you using a browser(i.e. FireFox, Internet Explorer, etc.) to get to this link(https://...)?
And you then click on a file to download?


Internet Explorer, but Comand Promt is not asking me user name and password. It shows ftp> but says not connected. I have noo clue.

Can you assist me with a step by step process...

Thanks!

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Downloading Specific Files from FTP

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap