Ask Experts Questions for FREE Help !
Ask
    sn16154's Avatar
    sn16154 Posts: 2, Reputation: 1
    New Member
     
    #1

    Feb 23, 2011, 06:30 AM
    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.
    Curlyben's Avatar
    Curlyben Posts: 18,514, Reputation: 1860
    BossMan
     
    #2

    Feb 23, 2011, 06:34 AM
    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
    sn16154's Avatar
    sn16154 Posts: 2, Reputation: 1
    New Member
     
    #3

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

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Batch file- Copy current date files [ 3 Answers ]

Dear experts, How do I create a dos batch file to copy only todays(current date) files from the directory.

Question about using a date variable in a Pivot table [ 4 Answers ]

I'm trying to tweak a piece of my code to allow me to use a date as a variable in selecting information in my pivot table. Here's my code: Sub RS_IBOB_Open_Select() ' ' RS_IBOB_Open_Select Macro ' ' SelectDate = Format(Date - 1, "YYYYMMDD") WShtDate = Format(Date - 1, "mm.dd.yy")

Folder Lock 6= folder protection software [ 1 Answers ]

Folder Lock apparently creates a vault for files/folders that enables privacy via password protected "vault entry" and "file/folder extraction". I was fooled into thinking this was a new Microsoft product... Now I'm stuck... I moved folders into a "vault" and now I am unable to retrieve. Does...

Install folder is missing from my Windows (XP) folder [ 3 Answers ]

How odd. Tried to install a program and got "1607: Unable to install InstallShield Scripting Runtime". I found the fix options at microsoft.com but one of them refers to C:\Windows\Installer - and I realize I don't have it! How the heck it disappeared I have no clue :confused: Hope hope...

To-date total based on current date [ 1 Answers ]

:confused: I am trying to create a forumula that will give a cumulative or "to-date" total that will exclude future months from the total. i.e. ithe point in time is August and I need to show a to-date number Through August only even though September and October are included in The...


View more questions Search