We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 736e8cc commit a0c4350Copy full SHA for a0c4350
main.js
@@ -121,8 +121,8 @@ function prinTesTicket(printerName) {
121
function prinTicket(printerName) {
122
var printCmd = "lp -d " + printerName + " pos.txt";
123
if(os.platform() == 'win32') {
124
- var fullPath = app.getAppPath() + "\\";
125
- printCmd = fullPath + 'RawPrint.exe "' + printerName + '" ' + fullPath + 'pos.txt';
+ var fullPath = '"' + app.getAppPath() + "\\";
+ printCmd = fullPath + 'RawPrint.exe" "' + printerName + '" pos.txt';
126
}
127
128
exec(printCmd, (error, stdout, stderr) => {
0 commit comments