Solved

windows ftp syntax, how do I upload all files in a directory?

Posted on 2004-10-25
603 Views
Last Modified: 2013-12-28
I have a script which looks like:

username
pw
cd /usr/www/users/username/folder/
bin
put C:\Archives\*.xls
quit

this script works with another script to upload files to my remote web server. Everything is working fine, except I need to be able to upload ALL the .xls files in the "Archives" directory. Right now it only uploads one. Ideas?
0
Question by:horstuff
    2 Comments
     
    LVL 95

    Accepted Solution

    by:
    use "mput" instead of "put" - Also, you might want to add "prompt" in a line right before the put statement.  By default, you would be prompted to upload each file, prompt turns that off.
    0
     

    Author Comment

    by:horstuff
    Thanks. Works perfect.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
    Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
    This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    856 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now