Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Sending blank password with ftp

- - - - -

  • Please log in to reply
4 replies to this topic

#1
Gonzo

Gonzo
  • Member
  • 3 posts
  • Joined 21-January 04
Hello,
I'm trying to 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
2B | !2B


How to remove advertisement from MSFN

#2
Fuzzy Viking

Fuzzy Viking

    Newbie

  • Member
  • 17 posts
  • Joined 26-February 04
What printer is this ?

Can you work around the problem by setting a password ?

Blank passwords are generally not advisable :)

#3
Gonzo

Gonzo
  • Member
  • 3 posts
  • Joined 21-January 04

Can you work around the problem by setting a password ?

Blank passwords are generally not advisable :)

What printer is this ?
a Kyocera mita fs-3800

Can you work around the problem by setting a password ?
Yes but i want to fully automate the customisation of the printer (because were replacing 300 printers now and another 600 in the future...)

Blank passwords are generally not advisable :rolleyes:
I know but Kyocera's factory default has a blank password!
2B | !2B

#4
Doggie

Doggie

    I'm very inactive :(

  • Patrons
  • 2,676 posts
  • Joined 13-October 02
well visual basic is a carrage return "vbCrLf"

#5
Fuzzy Viking

Fuzzy Viking

    Newbie

  • Member
  • 17 posts
  • Joined 26-February 04
I created a test user on our dev ftp just to test this, and gave it a blank password.

I then successfully logged on with

ftp -i -g -s:script.txt

script.txt containing :
---
open ourservername
test

---
So leaving the password line blank should work...

The FTP server used for testing is the MS FTP service 5.0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users