MarkMeerten
Programmer
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'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