Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sending blank password with ftp

Status
Not open for further replies.

MarkMeerten

Programmer
Aug 20, 2003
37
0
0
BE
Hello,
I'm not sure if this is the propper forum to post my question but i don't find another which is better.

I send a series of ftp commands via a script to a printer.
In the script i do the following:

var Shell = new ActiveXObject("wscript.shell");
Shell.Run ("ftp -i -g -s:set.txt " + IPadres,0,true)

the file set.txt contains the following:

admin
adminpassword
put c:\Temp\config
put defaults.txt
close
bye

This works fine and without any problem.
BUT...
when i have a printer which has a blank password i've got a problem.
i can't send an "enter" or a blank in my set.txt file and in result i cannot PUT my config file.

Does anyone know how i can send an "enter" or a blank password.

I've tried:
admin

put c:\Temp\config
put defaults.txt
close
bye
=> no result

admin
&CR&LF
put c:\Temp\config
put defaults.txt
close
bye
=> no result

all other ascii codes don't work either.

Thanx in advance
 
I've tried it allready but all those things don't work.
i need an ftp command for sending an enter.
all "text" commands are interpreted as plain text!

thanx anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top