Find the answer to your Linux question:
Results 1 to 4 of 4
I guess I could go to a Windows forum and ask my question but many of you also know dos. I didn't think it would hurt to ask the folks ...
  1. #1
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562

    Need a little Linux help with dos commands...

    I guess I could go to a Windows forum and ask my question but many of you also know dos. I didn't think it would hurt to ask the folks I know best first.

    I've tried Googling for this but so far have come up empty as every site I visit tries to sell me a Windows program and I'm running out of time. I'm trying to make a dos script that download files into a specific directory. In Linux it would be:

    Code:
    cd /home/user/downloads &&
    wget ftp://user:password@ftp_server.net/directory/*.mp2
    Wget is already installed in Windows. I need an example of how this is done with in dos. Thanks!
    Linux Mint + IceWM Registered:#371367 New Members: click here

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    i'd just install cygwin then use bash scripts instead of trying to muck around in batch

  3. #3
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,091
    Maybe powershell would be the tool of choice, aka natively available.

    You might take some inspiration from that script here:
    Download SharePoint 2010 Pre-Requisites

    Bitstransfer itself is described:
    Using Windows PowerShell to Create BITS Transfer Jobs (Windows)

    It seems to support globbing (at least on local files),
    but I couldnt find anything about ftp after a quick scan.
    You must always face the curtain with a bow.

  4. #4
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    Thanks guys. It turned out to be as simple as:

    cd C:\directory\directory.
    Linux Mint + IceWM Registered:#371367 New Members: click here

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •