Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Windows (https://www.askmehelpdesk.com/forumdisplay.php?f=237)
-   -   Current date folder variable in ftp (https://www.askmehelpdesk.com/showthread.php?t=557115)

  • Feb 23, 2011, 06:30 AM
    sn16154
    current date folder variable in ftp
    I have files in the current date folder. I want to ftp it to a remote server. Can anyone *** help me to write a dos bat file?

    Thanks.
  • Feb 23, 2011, 06:34 AM
    Curlyben
    Try this:

    I have a simple .bat that points at another file.
    Makes editing easier.

    So code for bat:

    Code:

    ftp -i -s:LOCATION OF INSTRUCTION FILE\INSTRUCTION.txt
    Text of INSTRUCTION file
    Code:

    open IP of FTP
    USERNAME
    PASSWORD
    mput flag.txt (simple flag file)
    y
    mput YOUR_FILES
    y
    delete flag.txt
    bye
    exit

  • Feb 24, 2011, 12:35 PM
    sn16154
    Comment on Curlyben's post
    Thanks. Within the ftp commands, can we specify a date variable?

  • All times are GMT -7. The time now is 01:35 AM.