Send postscript file to 4 tray of printer - ghostscript

I have code for sending ps file to printer but I need to sent ps file to tray 4. How can i do it ?
My code:
c:\Program Files\gs\gs9.27\bin>gsprint "c:\1\1.ps" -printer "RICOH Pro C5300SL"
Thanks mArek

Related

Windows 7 pipes and Symlink - com port

That's the situation: I've a program that sends data to a text file. Those are just information about lights state of an arcade machine. I need to send this information on a COM port, so I've replaced the txt file with a symbolic link to a pipe. I don't have access to the source code of this main program. The only way I've found to do that in Windows 10 is creating a symbolic link using pipes like this:
mklink SymlinkName \\.\pipe\pipename
Then I've create a program that reads the pipe and sends it to the COM port. It works fine on Windows 10 without any kind of problem and I've worked on that OS for my development.
Today I've tried all this stuff on the arcade machine (windows 7 Ultimate based) but the Symlink doesn't work. I can send data to my COM port simpy using command line, for example
echo foo > COM1
But if I try to do that throught the Symlink, it sais:
echo foo > Symlink
The data present in the reparse point buffer is invalid.
Any suggestion? I've already tried to Google it but no luck!

autorun.inf won't open file

I want to run the open file in autorun.inf, but I can not. When I tried to shellexecute a .txt file, it opened, but in hidden mode. I found notepad.exe processes in Task Manager. I can't shellexecute .vbs file. But I can change the label and icon at my USB. Can anybody help me in this situation?

Sending an ZPL Label to a Zebra printer

I want to send a text file containing ZPL to a Zebra GC420 printer. The ZPL Manual asks me to send it to the printer from the DOS command prompt, but doesn't say how. I can send through the parallel port using PRN, and it works. But I cannot print through USB, and I cannot print from any Windows version above XP.
make zpl commmand text file
type 'copy printsample.txt lpt1' in dos command window
In the network printer, you can use the netcat (nc). It is available in Linux and in windows too.
netcat -N your.printer.ip 9100 <text_file_you_want
I checked it few minutes ago...

Open Excel With Batch

I am trying to open an excel file for processing using batch. The code I run on batch is correctly opening the file. The problem is when I try to trigger the same batch file remotely using Jenkins(I have a windows slave). The Jenkins job gets stuck infinitely there after running the command. It does nothing, just shows a message on the screen that says: "A program running on this computer is trying to display a message."[can't post image because of low reputation],
and nothing more.
On clicking view message you get a message that Excel cannot open this file because of the following reasons. which is, i know nothing but a false alarm. How can I modify batch command or Jenkins job or something else on the virtual machine to make the code run?
This is my current command:
"C:\Program Files\Microsoft Office\Office15\EXCEL" /r "C:\file_name.xlsm"
The solution that worked for me was to create a folder named "Desktop" in system32 and SysWow64 (windows 7 64 bit)
C:\Windows\System32\config\systemprofile
C:\Windows\SysWOW64\config\systemprofile
so the full path will be:
C:\Windows\SysWOW64\config\systemprofile\Desktop
C:\Windows\System32\config\systemprofile\Desktop
IIf this doesn't work, you can check the solution by Slav: Open Excel on Jenkins CI.
it pointed me in the right direction

Printing pdf file directly from dos command line

I am trying to print a pdf file from dos, in windows xp.
C:\>print c:\dos.pdf /D:"\\jayaprada-pc\HP LaserJet 1018"
C:\dos.pdf is currently being printed
Its saying doc is being is printed. but no print is coming my printer.
Its showing the document in printer spooler window.
When giving print normally from adobe reader , print is coming fine.
What is wrong with my config.
Actually i want to print a pdf document from command line , so it wont pop up printer properties.
Suggest me any other alternative or third party tool that can be used print from command line in windows.
Use this:
AcroRd32.exe /t <file.pdf> <printer_name> <printer_driver> <printer_port>
For example:
"C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /t "D:\File.pdf" "Brother MFC-7820N USB Printer" "Brother MFC-7820N USB Printer" "IP_192.168.10.110"
Note: To find the printer information, right click your printer and choose properties.
In my case shown above, the printer name and driver.

Resources