pass Username and password automaticlly using a batch script

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
mkparasar
Posts: 1
Joined: 29 Jan 2009 05:08
Contact:

pass Username and password automaticlly using a batch script

#1 Post by mkparasar » 02 Feb 2009 09:33

Hi experts,

i am writing a bach where i will FTP to a machine and at the prompt it will ask me for username and password. how can i code this in my batch.

please advice.

DccD
Posts: 23
Joined: 26 Aug 2009 19:34

#2 Post by DccD » 26 Aug 2009 23:42

If you want to be ask for user/pass then simply add this to a batch file:

Code: Select all

@echo off
ftp server

Post Reply