Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 49146

Re: vmrun: how to run non-executable file (txt, doc, pdf)?

$
0
0

Nothing special. The file PDf is just opened without any error. Explorer.exe is responsible for the file manager, so the system sees it as if the user simply clicked the mouse on the file and opened it in the normal gui-way.

 

Probably I have found the solution, but I don't understand the differences.

 

1. When file.pdf is opening by explorer.exe with -NoWait argument:

vmrun.exe -T ws -gu perun -gp xxxxxx runProgramInGuest E:\VMWare\sdbx15\sdbx15.vmx -NoWait c:\windows\explorer.exe c:\2.pdf

The error "Guest program exited with non-zero exit code: 1" not exist. Seems works properly.

 

2. But when file.pdf is opening by explorer.exe with -interactive or -ActiveWindows argument:

The error "Guest program exited with non-zero exit code: 1" is exist.

 

Could someone explain me differences why error code exist or not?


Viewing all articles
Browse latest Browse all 49146

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>