Printing via FTP

P

Powerchordpunk

Guest
#1
ok I already know how to send documents to be printed to my printer via ftp. The only problem is the documents come to the printer spooler viewer thing (where you see what items are printing and what are queued) and stay for only a second; reason being there are no pages to be printed, and the document name is "No Document Name." I have tried .txt files, .doc files, both with and without text inside. Can someone help or tell me who I should turn to next?
 
P

Powerchordpunk

Guest
#3
no. Using an ftp server (Serv-U) you allow access to a port (LPT1) so when documents are sent to that port (command line - put page.txt LPT1) it actually prints them out. Now you should be able to print to a printer from anywhere with an internet connection. Print Servers do the exact same thing, but have a hardware ftp server. software ftp is a lot cheaper.
 
#4
Ok, are you sure you don't need special headers of any kind? I really don't think it will cope with .doc documents (unless the printer is really expensive). Have you tried .ps or .prn files (postscript)? .txt should work in guess.
 
P

Powerchordpunk

Guest
#5
Yeah I tried .prn files. They didn't have success.

I know one command line to print a txt file is

C:\WINDOWS\system32\notepad.exe /pt "C:\yourdocument.txt" "(Printer Name)" "LPT1:"

maybe there is a way to do that via ftp. Should I try using execute rights? Upload the file to like C:\filename.txt. That might work.
 
#6
Originally posted by Powerchordpunk
I know one command line to print a txt file is

C:\WINDOWS\system32\notepad.exe /pt "C:\yourdocument.txt" "(Printer Name)" "LPT1:"

maybe there is a way to do that via ftp. Should I try using execute rights? Upload the file to like C:\filename.txt. That might work.
I'm pretty sure you can't run system command via FTP. That would be a serious security hole.
 
P

Powerchordpunk

Guest
#7
yeah i don't think i will. I hate it. the document actually reaches the print spooler, but it is just a nameless document with no pages.
 
#8
... which means that data gets there but can't be understood.

Are you sure this can work? Isn't there more to the hardware print servers? I mean just because they use FTP as a front doesn't mean you can replace them by an FTP server.
 

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,971
Messages
673,300
Members
89,016
Latest member
Poseeut