Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9221625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:37:02+00:00 2026-06-18T03:37:02+00:00

I´d like to make Windows .cmd script file. One of its commands makes use

  • 0

I´d like to make Windows .cmd script file. One of its commands makes use of the ftp command. When I execute the batch script, the commmand prompt does not wait for the user to type his user/password, so the next commands are not properly executed. How can I make it to pause?

Thanks.

Edited:

My question was more related to the interactive use of the command (-i option) than the automatic login (-n option). I want to wait for the user to enter their credentials.

Also, I have seen that by typing the command:

ftp -n -i -s:myFtpCommands.txt 192.168.0.20

and that myFtpCommands.txt contains:

use myUser
mget *
bye

There is no need to type the password to get files. Where is the associated security problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:37:03+00:00Added an answer on June 18, 2026 at 3:37 am

    You could ask the user for their details before hand, then build the command file based on their input.

    @echo off
    set /p un=Enter your FTP username:
    set /p pw=Enter your FTP password:
    echo open 192.168.0.20 >ftpscript.txt
    echo %un% >>ftpscript.txt
    echo %pw% >>ftpscript.txt
    mget * >>ftpscript.txt
    bye >>ftpscript.txt
    ftp -i -s:ftpscript.txt
    

    With regards to the auto login, this is a feature of FTP, it’s an anonymous login, that is setup on FTP servers to allow this sort of access.

    Whoever setup the FTP server would be able to control the accounts that are allowed to be used to access the server, and the permissions on the files that they don’t want everyone to have access to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need something like make i.e. dependencies + executing shell commands where failing command
How can I make a batch file execute multiple (Python) scripts sequentially, each in
I have a bat script that I'd like to make work on windows/Mac/linux, but
I have NAnt script which as part of its project calls a batch file
I would like to make my windows form app self updating when it starts.
I would like to make an small program in Windows to duplicate an android
I would like to make my drivers to install on x64 Windows without the
I'm currently in a .NET4 Windows Forms Application. I'm trying to make something like
I want to make a form like this in windows forms. To make a
If I have a path, like so: c:\windows\system32\inetsrv\abc.exe And I want to make a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.