FTP Batch File

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
rholn
Posts: 3
Joined: 20 Aug 2014 07:21

FTP Batch File

#1 Post by rholn » 20 Aug 2014 07:34

Simple question for the DOS command elite!

I'm trying to create an FTP batch file where my username is my 'domain\username'. The problem is that the "\" is causing problems.

What do I need to do in order to make the login process successful?

Example:

FTP_HOST = "172.nn.nn.nn"
FTP_USER = "domain\username"
FTP_PASS = "password"

Thanks,
Randy

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: FTP Batch File

#2 Post by foxidrive » 20 Aug 2014 08:10

Does that username work when you log in manually?

What error do you get? A slash isn't a poison character.

rholn
Posts: 3
Joined: 20 Aug 2014 07:21

Re: FTP Batch File

#3 Post by rholn » 20 Aug 2014 08:42

I am able to log into it manually, yes.

The error that i receive is: "331 Password required for domainusername.

I assumed that it was the "\" since it stripped it out when displaying the error message.

newklear
Posts: 7
Joined: 20 Aug 2014 08:06

Re: FTP Batch File

#4 Post by newklear » 20 Aug 2014 08:42

You can try: FTP_USER = "username@domain"

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: FTP Batch File

#5 Post by foxidrive » 20 Aug 2014 09:01

rholn wrote:I am able to log into it manually, yes.

The error that i receive is: "331 Password required for domainusername.

I assumed that it was the "\" since it stripped it out when displaying the error message.



A slash might be an illegal character in a username, not a batch issue.
The FTP server you logged into manually might have less rigorous error checking.

rholn
Posts: 3
Joined: 20 Aug 2014 07:21

Re: FTP Batch File

#6 Post by rholn » 20 Aug 2014 09:16

newklear wrote:You can try: FTP_USER = "username@domain"


That wound up working.

Thank you both for your time and efforts in helping me.

Randy

Post Reply