Printing via FTP

Discussion in 'General Hardware' started by Powerchordpunk, Apr 19, 2002.

  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?
     
  2. JJB6486

    JJB6486 Retired Mod Political User

    Messages:
    1,207
    Location:
    West Lafayette, IN, USA
    How do you print using FTP? Do you mean a Windows shared printer?

    JJB6486
     
  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. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    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.
     
  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. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    I'm pretty sure you can't run system command via FTP. That would be a serious security hole.
     
  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. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    ... 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.