How to download and rename multi-files at ftp command line



Hi,

I'm trying to write a script to download *.csv file and rename all to *.csv
to *.bak. How would I do this? Please see my script:

open 192.168.2.1
username
password
cd /temp
lcd x:\
mget *.csv
ren *.csv *.bak
quit

Of course mget and ren at this point wouldn't work. Please help.
Thanks in advance,

Sarah


.



Relevant Pages

  • Re: Have username - need DN
    ... Both can be configured to match user accounts from the CSV file based on the username rather than the DN. ... The script would allow for more customization, but doesn't have the benefit of the XML log file/rollback feature. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Have username - need DN
    ... Both can be configured to match user accounts from the CSV file based on the username rather than the DN. ... The script would allow for more customization, but doesn't have the benefit of the XML log file/rollback feature. ...
    (microsoft.public.windows.server.active_directory)
  • Re: CSVDE Password Limitations - [WP]
    ... Your script was greata!!!! ... I am importing users into AD from CSV file and ran into password ... ' delimited by a quote followed by a comma. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Moving user to another container
    ... I really only want those students to use the ... So I think I'll change my idea and write a script ... I have created a csv file with the user names of students to be moved. ... ' Constants for the NameTranslate object. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Moving user to another container
    ... Thanks for your response and script suggestion Richard. ... Each school has it's own OU with other OUs underneath. ... I have created a csv file with the user names of students to be moved. ... The DN of the target OU might be: ...
    (microsoft.public.windows.server.active_directory)