1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Need a bat script to rename a file based on date while doing ftp

Discussion in 'DOS/Other' started by saadmannan, Jan 18, 2013.

Thread Status:
Not open for further replies.
  1. saadmannan

    saadmannan Thread Starter

    Joined:
    Jan 18, 2013
    Messages:
    2
    Here is my situation.

    I have a server which is saving file everyday in the following format: TACO_2012-Dec-30__21-50-00_UTC.csv

    I want to rename this file to following format using bat script: TACO_20121230_215000.csv TACO_yyyymmdd_hhmmss.csv

    Here is what I want to do as a script 1. Login to ftp server 2. rename file to the new format as above

    Please help...
     
  2. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,786
    Have to assume that the file name is going to be different each day. How are we suppose to know what the file name is to rename on the ftp server?
     
  3. saadmannan

    saadmannan Thread Starter

    Joined:
    Jan 18, 2013
    Messages:
    2
    Yes file name will be different everyday as it takes date from the sever. About the FTP rename I tried to rename a file using Command prompt and it did it Successfully
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Similar Threads - Need script rename
  1. gbmktg
    Replies:
    11
    Views:
    751
  2. geno368
    Replies:
    7
    Views:
    529
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1085873

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice