Is this possible via FTP?

Discussion in 'General Programming Chat' started by efficients, Nov 14, 2008.

  1. efficients

    efficients Newbie

    Joined:
    Nov 10, 2008
    Messages:
    47
    Likes Received:
    10
    Hi guys,

    I got certain files uploaded onto a server and I wish to batch rename them with a suffix,

    For example, say I got 150 PDFs on the servers with names like PDF54654.pdf, PDF45646.pdf, PDF54654.pdf - I want each one of them to have a suffix like PDF54654 [clean].pdf, PDF45646 [clean].pdf, PDF54654 [clean].pdf and so on.

    Is this possible?

    Also, is it possible to accrue a file list out of an FTP program. As in the above case can I have a text file with the names, PDF54654.pdf, PDF45646.pdf, PDF54654.pdf on seperate lines.

    Please let me know!
     
  2. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,234
    Occupation:
    Retired
    Location:
    Old Peoples Home
    Only way I can think of is if you use a command line FTP client.

    Log in and then do a 'ls', you will then get a list you can copy and paste into a text file and change names etc.
     
  3. tugax3

    tugax3 BANNED BANNED

    Joined:
    Nov 20, 2008
    Messages:
    61
    Likes Received:
    8
    what i can think of is
    you download to you pc all those files, select all (Ctrl+a) those files and right click > rename > then put "PDF [clean]" you will get "PDF [clean] (1).pfd" , "PDF [clean] (2).pfd" , "PDF [clean] (3).pfd" etc..