Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^3: How print doc files in a row

by cdarke (Prior)
on Feb 29, 2008 at 08:19 UTC ( #671123=note: print w/replies, xml ) Need Help??

in reply to Re^2: How print doc files in a row
in thread How print doc files in a row

Not sure if that was a typo, but you have some back-slashes missing from your system call, should be:
system("c:\\program\\files\\microsoft\\office\\office10\\winword.exe", + "$file_name", "/q", "/n", "/mFilePrintDefault", "/mFileExit");
One option to stop the windows showing is to run the program with the C API CreateProcess and set the SW_HIDE attribute to the main Window, unfortunately it looks like Win32::Process does not support that.:(

Replies are listed 'Best First'.
Re^4: How print doc files in a row
by ikegami (Pope) on Feb 29, 2008 at 09:52 UTC
    No, he's trying to escaping spaces. Rather silly, though, since "\ " is the same thing as " ". Good thing, too, since Windows wouldn't understand "\" to mean space.

    If you wanted to hide the Window, you could use Win32::Process's CreateProcess instead of system.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://671123]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2021-09-28 02:16 GMT
Find Nodes?
    Voting Booth?

    No recent polls found